Kbuild: Additional Kconfig symbols.

This commit adds the following Kconfig symbols:
 - INIT_STACKS
 - UART_INTERRUPT_DRIVEN
 - CONSOLE_HANDLER
 - BUILD_TIMESTAMP
 - TICKLESS_KERNEL
 - CONTEXT_CUSTOM_DATA

Change-Id: Id96a7e759c8beac73f27193df07b5c7562379b2f
Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
This commit is contained in:
Juan Manuel Cruz 2015-05-05 10:12:02 -05:00 committed by Anas Nashif
parent 068ebc0529
commit c818cd288c
8 changed files with 66 additions and 2 deletions

View file

@ -111,6 +111,14 @@ config SECTION_GARBAGE_COLLECTION
Enabling this option may cause these host tools to end abnormally
if the expected symbols have been discarded.
config BUILD_TIMESTAMP
bool
prompt "Build timestamp"
default n
help
This option embeds a string into the project image that indicates
the date and time the image was created.
endmenu
source "drivers/Kconfig"

View file

@ -4,6 +4,10 @@ config DRV_CONSOLE
help
This option enables the UART console driver.
if DRV_CONSOLE
source "drivers/console/Kconfig"
endif
config DRV_SERIAL
bool
default n

16
drivers/console/Kconfig Normal file
View file

@ -0,0 +1,16 @@
config UART_INTERRUPT_DRIVEN
bool
prompt "Interrupt driven UART support"
default n
help
This option enables interrupt support for UART allowing console
input and UART based drivers.
config CONSOLE_HANDLER
bool
prompt "Enable console input handler"
select UART_INTERRUPT_DRIVEN
default n
help
This option enables console input handler allowing to write simple
interaction between serial console and the OS.

View file

@ -21,3 +21,11 @@ config DRV_STELLARIS_UART
This option enables the Stellaris serial driver.
This specific driver can be used for the serial hardware
available at the Texas Instrument LM3S6965 BSP.
config UART_INTERRUPT_DRIVEN
bool
prompt "Interrupt driven UART support"
default n
help
This option enables interrupt support for UART allowing console
input and UART based drivers.

View file

@ -27,6 +27,25 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
Frequency of the hardware timer used for the system clock
(in Hz).
config TICKLESS_KERNEL
bool
# omit prompt to signify a "hidden" option
default y if (SYS_CLOCK_TICKS_PER_SEC = 0)
default n
help
This option specifies that the kernel lacks timer support.
config INIT_STACKS
bool
prompt "Initialize stack areas"
default n
help
This option instructs the kernel to initialize stack areas with a
known value (0xaa) before they are first used, so that the high
water mark can be easily determined. This applies to the stack areas
for both tasks and fibers, as well as for the K_swapper's command
stack.
config XIP
bool
prompt "Execute in place"

View file

@ -66,7 +66,8 @@ config NUM_COMMAND_PACKETS
config NUM_TIMER_PACKETS
int
prompt "Number of timer packets"
prompt "Number of timer packets" if !TICKLESS_KERNEL
default 0 if TICKLESS_KERNEL
default 10
depends on MICROKERNEL
help

View file

@ -5,7 +5,7 @@ config TIMESLICING
bool
prompt "Task time slicing"
default y
depends on MICROKERNEL
depends on MICROKERNEL && !TICKLESS_KERNEL
help
This option enables time slicing between tasks of equal priority.

View file

@ -35,3 +35,11 @@ config ISR_STACK_SIZE
help
This option specifies the size of the stack used by interrupt
service routines (ISRs), and during nanokernel initialization.
config CONTEXT_CUSTOM_DATA
bool
prompt "Task and fiber custom data"
default n
help
This option allows each task and fiber to store 32 bits of custom data,
which can be accessed using the context_custom_data_xxx() APIs.