Skip to content

Commit

Permalink
boards: enable object verification for QEMU builds
Browse files Browse the repository at this point in the history
This will help catch bugs when running sanitycheck if an
application or subsystem tries to make kernel calls on
something that is not a valid kernel object.

This adds a bit of overhead but we don't gather performance
metrics in QEMU anyway, it's too dependent on the
characteristics of the host system.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information
Andrew Boie committed Jul 19, 2017
1 parent ec939fd commit f768509
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/arm/qemu_cortex_m3/qemu_cortex_m3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_UART_STELLARIS=y
CONFIG_KERNEL_OBJECT_VERIFY=y
1 change: 1 addition & 0 deletions boards/nios2/qemu_nios2/qemu_nios2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ CONFIG_UART_CONSOLE=y
CONFIG_UART_CONSOLE_ON_DEV_NAME="jtag_uart0"
CONFIG_INCLUDE_RESET_VECTOR=n
CONFIG_EXTRA_EXCEPTION_INFO=y
CONFIG_KERNEL_OBJECT_VERIFY=y
1 change: 1 addition & 0 deletions boards/riscv32/qemu_riscv32/qemu_riscv32_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ CONFIG_UART_CONSOLE=y
CONFIG_UART_CONSOLE_ON_DEV_NAME="uart0"
CONFIG_RISCV_MACHINE_TIMER=y
CONFIG_BOOT_BANNER=y
CONFIG_KERNEL_OBJECT_VERIFY=y
1 change: 1 addition & 0 deletions boards/x86/qemu_x86/qemu_x86_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_XIP=y
CONFIG_X86_MMU=y
CONFIG_KERNEL_OBJECT_VERIFY=y
1 change: 1 addition & 0 deletions boards/x86/qemu_x86/qemu_x86_iamcu_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ CONFIG_TOOLCHAIN_VARIANT="iamcu"
CONFIG_X86_IAMCU=y
CONFIG_XIP=y
CONFIG_X86_MMU=y
CONFIG_KERNEL_OBJECT_VERIFY=y
1 change: 1 addition & 0 deletions boards/xtensa/qemu_xtensa/qemu_xtensa_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ CONFIG_CONSOLE=y
CONFIG_SOC_XTENSA_SAMPLE_CONTROLLER=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=10000000
CONFIG_TOOLCHAIN_VARIANT=""
CONFIG_KERNEL_OBJECT_VERIFY=y

0 comments on commit f768509

Please sign in to comment.