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:
parent
068ebc0529
commit
c818cd288c
8 changed files with 66 additions and 2 deletions
8
Kconfig
8
Kconfig
|
@ -111,6 +111,14 @@ config SECTION_GARBAGE_COLLECTION
|
||||||
Enabling this option may cause these host tools to end abnormally
|
Enabling this option may cause these host tools to end abnormally
|
||||||
if the expected symbols have been discarded.
|
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
|
endmenu
|
||||||
|
|
||||||
source "drivers/Kconfig"
|
source "drivers/Kconfig"
|
||||||
|
|
|
@ -4,6 +4,10 @@ config DRV_CONSOLE
|
||||||
help
|
help
|
||||||
This option enables the UART console driver.
|
This option enables the UART console driver.
|
||||||
|
|
||||||
|
if DRV_CONSOLE
|
||||||
|
source "drivers/console/Kconfig"
|
||||||
|
endif
|
||||||
|
|
||||||
config DRV_SERIAL
|
config DRV_SERIAL
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
16
drivers/console/Kconfig
Normal file
16
drivers/console/Kconfig
Normal 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.
|
|
@ -21,3 +21,11 @@ config DRV_STELLARIS_UART
|
||||||
This option enables the Stellaris serial driver.
|
This option enables the Stellaris serial driver.
|
||||||
This specific driver can be used for the serial hardware
|
This specific driver can be used for the serial hardware
|
||||||
available at the Texas Instrument LM3S6965 BSP.
|
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.
|
||||||
|
|
|
@ -27,6 +27,25 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
Frequency of the hardware timer used for the system clock
|
Frequency of the hardware timer used for the system clock
|
||||||
(in Hz).
|
(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
|
config XIP
|
||||||
bool
|
bool
|
||||||
prompt "Execute in place"
|
prompt "Execute in place"
|
||||||
|
|
|
@ -66,7 +66,8 @@ config NUM_COMMAND_PACKETS
|
||||||
|
|
||||||
config NUM_TIMER_PACKETS
|
config NUM_TIMER_PACKETS
|
||||||
int
|
int
|
||||||
prompt "Number of timer packets"
|
prompt "Number of timer packets" if !TICKLESS_KERNEL
|
||||||
|
default 0 if TICKLESS_KERNEL
|
||||||
default 10
|
default 10
|
||||||
depends on MICROKERNEL
|
depends on MICROKERNEL
|
||||||
help
|
help
|
||||||
|
|
|
@ -5,7 +5,7 @@ config TIMESLICING
|
||||||
bool
|
bool
|
||||||
prompt "Task time slicing"
|
prompt "Task time slicing"
|
||||||
default y
|
default y
|
||||||
depends on MICROKERNEL
|
depends on MICROKERNEL && !TICKLESS_KERNEL
|
||||||
help
|
help
|
||||||
This option enables time slicing between tasks of equal priority.
|
This option enables time slicing between tasks of equal priority.
|
||||||
|
|
||||||
|
|
|
@ -35,3 +35,11 @@ config ISR_STACK_SIZE
|
||||||
help
|
help
|
||||||
This option specifies the size of the stack used by interrupt
|
This option specifies the size of the stack used by interrupt
|
||||||
service routines (ISRs), and during nanokernel initialization.
|
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue