summaryrefslogtreecommitdiff
path: root/board/magolor/build.mk
diff options
context:
space:
mode:
authorBen Chen <ben.chen2@quanta.corp-partner.google.com>2020-11-23 19:15:35 +0800
committerJustin TerAvest <teravest@chromium.org>2020-11-25 21:00:18 +0000
commit20f7ec106e4e5c410d930931b4ed2b2dba1a94cd (patch)
tree25500c27b7e84ce83e16ebef74fa26ebf0add40e /board/magolor/build.mk
parentb67a2783ff93fd66980eb3b7d26d80ff38c3328e (diff)
downloadchrome-ec-20f7ec106e4e5c410d930931b4ed2b2dba1a94cd.tar.gz
magolor: support npcx797fc build target
Build target to test Magolro boards reworked with the NPCX797FC EC. BUG=b:168608382 BRANCH=none TEST=make buildall, workable on the re-worked Board. Change-Id: I74f3da25f5f968bad715d773b034f025e01e90d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2554657 Reviewed-by: Justin TerAvest <teravest@chromium.org> Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Justin TerAvest <teravest@chromium.org> Tested-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'board/magolor/build.mk')
-rw-r--r--board/magolor/build.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/magolor/build.mk b/board/magolor/build.mk
index 3cbadc55d7..eaf099983c 100644
--- a/board/magolor/build.mk
+++ b/board/magolor/build.mk
@@ -8,7 +8,13 @@
CHIP:=npcx
CHIP_FAMILY:=npcx7
+# A limited Magolor_legacy boards are reworked with NPCX796FC variant.
+# Set the modify the variant type to match.
+ifeq ($(BOARD),magolor_legacy)
CHIP_VARIANT:=npcx7m6fc
+else
+CHIP_VARIANT:=npcx7m7fc
+endif
BASEBOARD:=dedede
board-y=board.o battery.o led.o usb_pd_policy.o