diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-03-10 15:54:22 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-11 16:53:17 +0000 |
commit | 1e58403e50bb17b2301845c4a3509a569f54e654 (patch) | |
tree | a57489a61af3dd808a3fa50f7d623a725b0888f0 | |
parent | 9070a18e72f867e987a87f819f7db8b017e767f1 (diff) | |
download | chrome-ec-1e58403e50bb17b2301845c4a3509a569f54e654.tar.gz |
zephyr: include shim/chip/npcx directory for all npcx chips
CHIP_FAMILY only gets set for the npcx7m6fb chip, but all nuvoton
chips appear to need this directory.
BUG=b:182410932,b:182398910
BRANCH=none
TEST=compile for lazor using npcx7m6fc chip configuration
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I9e6a152b8c31c1bcd3141591863a7b78e03e3766
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2749422
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/shim/chip/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/chip/CMakeLists.txt b/zephyr/shim/chip/CMakeLists.txt index f9e714d93e..1089552837 100644 --- a/zephyr/shim/chip/CMakeLists.txt +++ b/zephyr/shim/chip/CMakeLists.txt @@ -16,7 +16,7 @@ endif() zephyr_compile_definitions("CHIP_FAMILY_${CHIP_FAMILY}") zephyr_compile_definitions("CHIP_VARIANT_${CHIP_VARIANT}") -if ("${CHIP_FAMILY}" MATCHES "^NPCX[0-9]$") +if (DEFINED CONFIG_SOC_FAMILY_NPCX) add_subdirectory(npcx) endif() |