zephyr/misc
Sebastian Bøe 600c8f7d85 kconfig: Change how optimization level is set
This patch does several things, most notably it changes the semantics
of CONFIG_DEBUG. CONFIG_DEBUG continues to behave as a vaguely defined
"debug mode" that enables printf's, -Og, etc. but now the user may
choose to be in "debug mode" while using a different optimization
level than -Og.

Tp support this a new config is defined to enable -Og;
CONFIG_DEBUG_OPTIMIZATIONS.

Additionally CONFIG_SIZE_OPTIMIZATIONS is introduced to allow the user
to explicitly request optimizing for size instead of relying on
defaulting to it.

The three config's {NO,SIZE,DEBUG}_OPTIMIZATIONS are now organized in
a Kconfig choice to ensure that at most one can be enabled at a time.

Finally, selected users of CONFIG_DEBUG have been ported to use one of
the optimizations configs when it was clear from usage that the
intention was to behave differently when using a different
optimization level and not when in "debug mode".

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-02-05 06:23:20 -08:00
..
generated kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
CMakeLists.txt lib: move ring_buffer from misc/ to lib/ 2017-12-15 20:02:01 -05:00
Kconfig kconfig: Change how optimization level is set 2018-02-05 06:23:20 -08:00
empty_file.c Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
printk.c printk: Add padding support to string format specifiers 2017-11-14 21:32:20 +02:00
reboot.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00