From efade6dd33492ef04d3edf6c152a988dfa12c236 Mon Sep 17 00:00:00 2001 From: Isaac Lee Date: Tue, 23 Aug 2022 08:49:51 -0700 Subject: mb/google/skyrim: Check if SPD exists Update the build script to check if SPD exists, and only if SPD exists the APCB_SBR_D5.gen could be executed. BUG=None TEST=Build Change-Id: Ib7b977a89d403242e8bb1f684269e70082125e88 Signed-off-by: Isaac Lee Reviewed-on: https://review.coreboot.org/c/coreboot/+/66978 Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel Reviewed-by: Jon Murphy --- src/mainboard/google/skyrim/Makefile.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mainboard/google/skyrim/Makefile.inc b/src/mainboard/google/skyrim/Makefile.inc index 3a91cff1d7..0bea8a00ba 100644 --- a/src/mainboard/google/skyrim/Makefile.inc +++ b/src/mainboard/google/skyrim/Makefile.inc @@ -19,6 +19,8 @@ CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/in ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR)/APCB_SBR_D5.bin),) $(info APCB sources present.) +ifneq ($(wildcard $(SPD_SOURCES)),) + LIB_SPD_DEPS = $(SPD_SOURCES) APCB_SOURCES = $(obj)/APCB_SBR_D5.gen @@ -32,5 +34,8 @@ $(obj)/APCB_SBR_D5.gen: $(SPD_SOURCES) \ --spd_sources $(SPD_SOURCES) \ --mem_type 'lp5' else +$(info SPD sources not found. Skipping APCB.) +endif +else $(info APCB sources not found. Skipping APCB.) endif -- cgit v1.2.3