From 4e412c42d5e2c14a8b3f0ad001435e2d8f88f58c Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Tue, 6 Apr 2021 13:00:30 -0600 Subject: zephyr: kconfig: move console_cmd_mem configs to separate file Clean up the root Kconfig for Zephyr by moving sub configs to separate file (Kconfig.console_cmd_mem). BRANCH=none BUG=none TEST=zmake testall Change-Id: Id9abef7be1943eee42fe6a31cf0488f4b7209a42 Signed-off-by: Yuval Peress Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2808144 Reviewed-by: Simon Glass --- zephyr/Kconfig | 31 +------------------------------ zephyr/Kconfig.console_cmd_mem | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 30 deletions(-) create mode 100644 zephyr/Kconfig.console_cmd_mem diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 712e179811..433a6648fe 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -36,6 +36,7 @@ rsource "Kconfig.adc" rsource "Kconfig.battery" rsource "Kconfig.board_version" rsource "Kconfig.console" +rsource "Kconfig.console_cmd_mem" rsource "Kconfig.header" rsource "Kconfig.keyboard" rsource "Kconfig.led" @@ -185,36 +186,6 @@ config PLATFORM_EC_CONSOLE_CMD_MEM md - dump memory values rw - read or write in memory -if PLATFORM_EC_CONSOLE_CMD_MEM - -config PLATFORM_EC_CONSOLE_CMD_MD - bool "Console command: md" - default y - help - Enable the "md" command. This dumps memory value from a specified - address, optionally specifying the format. - - Example: - md 0x64000000 10 - - 64000000: 2a3b4d5e 030054e1 07000000 09297110 - 64000010: 00000010 03db4f00 03db5000 00000100 - 64000020: 00000000 00000000 - -config PLATFORM_EC_CONSOLE_CMD_RW - bool "Console command: rw" - default y - help - Enable the "rw" command. This Read or write in memory optionally - specifying the size. - - Example: - rw 0x64000000 - - read 0x64000000 = 0x2a3b4d5e - -endif # PLATFORM_EC_CONSOLE_CMD_MEM - config PLATFORM_EC_DEBUG_ASSERT bool "Enable assertion failures" default y diff --git a/zephyr/Kconfig.console_cmd_mem b/zephyr/Kconfig.console_cmd_mem new file mode 100644 index 0000000000..4b69cc1778 --- /dev/null +++ b/zephyr/Kconfig.console_cmd_mem @@ -0,0 +1,32 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +if PLATFORM_EC_CONSOLE_CMD_MEM +config PLATFORM_EC_CONSOLE_CMD_MD + bool "Console command: md" + default y + help + Enable the "md" command. This dumps memory value from a specified + address, optionally specifying the format. + + Example: + md 0x64000000 10 + + 64000000: 2a3b4d5e 030054e1 07000000 09297110 + 64000010: 00000010 03db4f00 03db5000 00000100 + 64000020: 00000000 00000000 + +config PLATFORM_EC_CONSOLE_CMD_RW + bool "Console command: rw" + default y + help + Enable the "rw" command. This Read or write in memory optionally + specifying the size. + + Example: + rw 0x64000000 + + read 0x64000000 = 0x2a3b4d5e + +endif # PLATFORM_EC_CONSOLE_CMD_MEM -- cgit v1.2.1