diff options
author | Yilun Lin <yllin@google.com> | 2019-04-15 18:16:54 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-30 06:08:07 -0700 |
commit | 3c49473cd607bc5debbbbd22118bad18d11b8611 (patch) | |
tree | fd1fa234a159a3436559b8f3a79a81615041bd50 /util/build.mk | |
parent | 631000bdf478b8ad206753f4ffeb2af879129866 (diff) | |
download | chrome-ec-3c49473cd607bc5debbbbd22118bad18d11b8611.tar.gz |
mt_scp: Generate IPI tables with util gen_ipi_table.
IPI table is board-specific. This CL removes the original
IPI table in chip layer, and uses gen_ipi_table to generate
the table for each board to reduce the maintenance effort.
TEST=make BOARD=kukui_scp, and see build/kukui_scp/ipi_table_gen.inc
exists. Push to Kukui, and see SCP boots.
TEST=modify IPI_COUNT in board.h and see it generates a new
ipi_table_gen.inc
BUG=b:130508869
BRANCH=None
Change-Id: I0c05319447d15917e8833aa80d61166c4e396370
Signed-off-by: Yilun Lin <yllin@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1568890
Commit-Ready: Yilun Lin <yllin@chromium.org>
Tested-by: Yilun Lin <yllin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'util/build.mk')
-rw-r--r-- | util/build.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/build.mk b/util/build.mk index 7699ef4572..4fb6b7e1f0 100644 --- a/util/build.mk +++ b/util/build.mk @@ -66,6 +66,14 @@ build-util-bin += gen_emmc_transfer_data $(out)/util/gen_emmc_transfer_data: BUILD_LDFLAGS += -DSECTION_IS_RO endif # CONFIG_BOOTBLOCK +ifneq ($(CONFIG_IPI),) +build-util-bin += gen_ipi_table + +$(out)/util/gen_ipi_table: board/$(BOARD)/board.h +$(out)/ipi_table_gen.inc: $(out)/util/gen_ipi_table + $(call quiet,ipi_table,IPITBL ) +endif + ifneq ($(CONFIG_TOUCHPAD_HASH_FW),) build-util-bin += gen_touchpad_hash |