summaryrefslogtreecommitdiff
path: root/board/flapjack
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-12-18 12:19:29 +0800
committerCommit Bot <commit-bot@chromium.org>2019-12-19 23:47:27 +0000
commitd4e9357a4923a43a92d04433fcdd04caf797ea49 (patch)
treebbdbe888baf1df4983858a2150c226a9ef267169 /board/flapjack
parentd908467173042943558bf5c03662cae5bf7c5210 (diff)
downloadchrome-ec-d4e9357a4923a43a92d04433fcdd04caf797ea49.tar.gz
kukui: include a dummy bootblock if BOOTBLOCK variable not set
Add a dummy bootblock to make sure size check is accurate during `make buildall`. The default size is picked from build 12769.0: $ ls -al */coreboot/bootblock.bin -rw-r--r-- 1 21504 Dec 19 02:20 kodama/coreboot/bootblock.bin -rw-r--r-- 1 21504 Dec 19 02:20 krane/coreboot/bootblock.bin -rw-r--r-- 1 21504 Dec 19 02:20 kukui/coreboot/bootblock.bin -rw-r--r-- 1 21504 Dec 19 02:33 damu/coreboot/bootblock.bin -rw-r--r-- 1 21504 Dec 19 02:33 jacuzzi/coreboot/bootblock.bin -rw-r--r-- 1 21504 Dec 19 02:33 juniper/coreboot/bootblock.bin -rw-r--r-- 1 21504 Dec 19 02:33 kappa/coreboot/bootblock.bin -rw-r--r-- 1 21504 Dec 19 02:21 flapjack/coreboot/bootblock.bin BUG=chromium:1034518 TEST=1) make buildall # use dummy bootblock 2) make BOARD=kukui # same as above, ~1.7k bytes left 3) make BOARD=kukui BOOTBLOCK=/dev/null # empty bootblock, 23k bytes left 4) make BOARD=kukui BOOTBLOCK=a-large-file # fail early before linking BRANCH=kukui Change-Id: I65c18f567dce0cb315e0cdc4f30ada5e83275d72 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1973550 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board/flapjack')
-rw-r--r--board/flapjack/build.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/flapjack/build.mk b/board/flapjack/build.mk
index 5c408de94a..a368c187bf 100644
--- a/board/flapjack/build.mk
+++ b/board/flapjack/build.mk
@@ -16,3 +16,6 @@ board-$(CONFIG_BOOTBLOCK)+=emmc.o
board-$(BOARD_KRANE)+=base_detect_krane.o
$(out)/RO/board/$(BOARD)/emmc.o: $(out)/bootblock_data.h
+
+# 21504 bytes plus some extra buffer
+DEFAULT_BOOTBLOCK_SIZE:=23000