2017-10-27 21:43:34 +08:00
|
|
|
# Enable debug support in mdb
|
|
|
|
# Dwarf version 2 can be recognized by mdb
|
|
|
|
# The default dwarf version in gdb is not recognized by mdb
|
|
|
|
zephyr_cc_option(-g3 -gdwarf-2)
|
|
|
|
|
|
|
|
# Without this (poorly named) option, compiler may generate undefined
|
|
|
|
# references to abort().
|
|
|
|
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63691
|
|
|
|
zephyr_cc_option(-fno-delete-null-pointer-checks)
|
|
|
|
|
|
|
|
zephyr_cc_option_ifdef (CONFIG_LTO -flto)
|
|
|
|
|
2017-12-22 12:43:48 +08:00
|
|
|
set_property(GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY})
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
add_subdirectory(soc/${SOC_PATH})
|
|
|
|
add_subdirectory(core)
|