From db9873b69c52cc1eac5bfef72228f071e303a78f Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 17 May 2022 14:23:06 +0200 Subject: arch/x86: Make sure bootblock gets buildtested Now that the bootblock isn't added to cbfs anymore, on some targets it's only conditionally build. One example would be Intel APL where it only gets build when stitched into an IFWI. This is always done when compiling for real targets but not by the CI builder. This adds a dummy target to make sure the bootblock always gets buildtested. Change-Id: I60601e01a2c370b5c21493b71d51f495bb42f41d Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/64427 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Werner Zeh --- src/arch/x86/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/arch/x86') diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc index e5d52ef390..02ee902e38 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -108,6 +108,8 @@ $(call add_intermediate, add_bootblock, $(objcbfs)/bootblock.bin) @printf " CBFS $(subst $(obj)/,,$(@))\n" $(CBFSTOOL) $< add -f $(objcbfs)/bootblock.bin -n bootblock -t bootblock $(TXTIBB) -b -$(call file-size,$(objcbfs)/bootblock.bin) \ $(cbfs-autogen-attributes) $(TS_OPTIONS) $(CBFSTOOL_ADD_CMD_OPTIONS) +else # Make sure the bootblock gets build, if only for buildtesting +$(call add_intermediate, gen_bootblock, $(objcbfs)/bootblock.bin) endif endif -- cgit v1.2.3