ec
ec copied to clipboard
Allow controlling debug via `config.mk`
Add new Makefile configs for controlling the log level and mechanisms instead of having to modify the CFLAGS
directly.
Allows adding values to top level config.mk
instead of the nested common.mk
file.
I'm not seeing a config.mk
in the top level. Would a user be expected to generate their own if they want to use this new option?
Yes, the same way that BOARD
or KEYMAP
can be set. It can also be set in ec.config
in firmware-open. This way I can just have a commented out config value and uncomment it when I want to enable logging, such as is done with coreboot and edk2.