summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2022-08-09 05:18:08 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-17 00:18:20 +0000
commit0337162b61b4bad46315438e123469bb38cef364 (patch)
tree1360c9f765dbcfc3751fe3b0db296bf1b21801f6
parentd67e710d87396687897257dc6a2bdcd6dbc3ab92 (diff)
downloadchrome-ec-0337162b61b4bad46315438e123469bb38cef364.tar.gz
zephyr: Enable minimal logging by default
Enable minimal logging for CrOS EC projects. This allows use of the zephyr logging utilities, but does not enable all of the logging features. This will consume ~8KB of flash on projects that did not already enable logging. Projects can override these configs if extra flash space is needed. BUG=b:240986568 BRANCH=None TEST=Compile all projects, run on skyrim, observe annotated log output Change-Id: I6b2072432367fdfebf8568f0402d01adfaaa4aa8 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3819160 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
-rw-r--r--zephyr/Kconfig.defaults4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/Kconfig.defaults b/zephyr/Kconfig.defaults
index 6c776f188d..1560bf068a 100644
--- a/zephyr/Kconfig.defaults
+++ b/zephyr/Kconfig.defaults
@@ -9,6 +9,10 @@
config TIMESLICING
default n
+config LOG
+ default y
+ imply LOG_DEFAULT_MINIMAL
+
config GPIO_EMUL
default y if ARCH_POSIX