diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2018-02-05 12:54:56 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-02-06 18:19:08 -0800 |
commit | c8e2deb24dbbf4165acac4d3b72376d98ec210a1 (patch) | |
tree | 721e3489a0185ee70ab6465986f3adddf40e3b73 | |
parent | c715d819553ebf70c6261ebccf25a5af366523d5 (diff) | |
download | chrome-ec-c8e2deb24dbbf4165acac4d3b72376d98ec210a1.tar.gz |
Fizz/CBI: Create CBI blobs
This patch makes make create EEPROM blobs which contain Cros Board Info.
BUG=b:72949522
BRANCH=none
TEST=make buildall. make BOARD=fizz cbi_kench.
Change-Id: Ie4c50f4707285b44c13afc7410a5ea823a26d98e
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/902822
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | board/fizz/build.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/board/fizz/build.mk b/board/fizz/build.mk index 74094ac834..a6cce33de6 100644 --- a/board/fizz/build.mk +++ b/board/fizz/build.mk @@ -12,3 +12,30 @@ CHIP_VARIANT:=npcx5m6g board-y=board.o board-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o board-y+=led.o + +brd_ver = 0 + +# Build CBI blob for one model +# $1: Prefix for output files +# $2: OEM ID +# $3: SKU ID +make_cbi = $(out)/util/cbi-util --create $(1)_$(3).bin \ + --board_version $(brd_ver) --oem_id $(2) --sku_id $(3) --size 256; + +# Build CBI blobs for all SKU IDs +# $1: OEM ID +make_all_cbi = $(foreach s,$(sku_ids),$(call make_cbi,$(out)/$@,$(1),$(s))) + +cbi_kench: sku_ids = 0 1 2 3 4 5 6 +cbi_kench: $(out)/util/cbi-util + $(call make_all_cbi, 0) + +cbi_teemo: sku_ids = 0 1 4 5 +cbi_teemo: $(out)/util/cbi-util + $(call make_all_cbi, 1) + +cbi_sion: sku_ids = 0 1 2 3 4 5 6 +cbi_sion: $(out)/util/cbi-util + $(call make_all_cbi, 2) + +PROJECT_EXTRA += cbi_kench cbi_teemo cbi_sion
\ No newline at end of file |