summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2022-01-14 16:23:55 -0800
committerCommit Bot <commit-bot@chromium.org>2022-01-23 04:28:00 +0000
commit3b704faa6c1db27adb691cb223159c6aa84aa3ee (patch)
tree99bf963e8f4cea28f42508f7dd0f18397cdc720e
parent7da11090fe6b612eba73cdd0fe4e0d6b0818f5a5 (diff)
downloadchrome-ec-3b704faa6c1db27adb691cb223159c6aa84aa3ee.tar.gz
herobrine: Move alt-component logic to the project subdirectory
The alternative component logic is very project specific. Create an extra subdirectory for this code. BRANCH=None BUG=b:214613810 TEST=Built the herobrine_npcx9 project and checked it boot correctly on the hardware. Change-Id: Iebbe30b6ccb2d6a013143dee7405f75fc5ff8097 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3390642 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/projects/herobrine/CMakeLists.txt4
-rw-r--r--zephyr/projects/herobrine/src/herobrine_npcx9/alt_dev_replacement.c (renamed from zephyr/projects/herobrine/src/alt_dev_replacement.c)0
2 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/projects/herobrine/CMakeLists.txt b/zephyr/projects/herobrine/CMakeLists.txt
index 6782d8e4ed..facf228668 100644
--- a/zephyr/projects/herobrine/CMakeLists.txt
+++ b/zephyr/projects/herobrine/CMakeLists.txt
@@ -16,9 +16,9 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_LED_COMMON
"src/led.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_I2C
"src/i2c.c")
-zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC
- "src/alt_dev_replacement.c")
if(DEFINED CONFIG_BOARD_HEROBRINE_NPCX9)
project(herobrine_npcx9)
+ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC
+ "src/herobrine_npcx9/alt_dev_replacement.c")
endif()
diff --git a/zephyr/projects/herobrine/src/alt_dev_replacement.c b/zephyr/projects/herobrine/src/herobrine_npcx9/alt_dev_replacement.c
index fe3f06fca5..fe3f06fca5 100644
--- a/zephyr/projects/herobrine/src/alt_dev_replacement.c
+++ b/zephyr/projects/herobrine/src/herobrine_npcx9/alt_dev_replacement.c