From b458a4f745c8d7cf44f1d613cab0bef3b7f23a3a Mon Sep 17 00:00:00 2001 From: Selma BENSAID Date: Fri, 20 Sep 2019 17:38:59 -0700 Subject: depthcharge: add CONFIG_MAINBOARD_DEPTHCHARGE CONFIG_MAINBOARD_DEPTHCHARGE is used to override the Board config for depthcharge which inherit from CONFIG_MAINBOARD_PART_NUMBER. This is mainly to avoid depthcharge config duplication. Signed-off-by: Selma BENSAID Change-Id: I6cbc93ca38ad6deeca2c2fb7770024a24233b6f8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/35510 Tested-by: build bot (Jenkins) Reviewed-by: Mathew King --- payloads/external/Makefile.inc | 7 ++++++- payloads/external/depthcharge/Kconfig | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'payloads/external') diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc index d5c4e7f5d3..f6417fd946 100644 --- a/payloads/external/Makefile.inc +++ b/payloads/external/Makefile.inc @@ -29,6 +29,11 @@ endif ifeq ($(CONFIG_PAYLOAD_DEPTHCHARGE),y) PAYLOAD_CONFIG=payloads/external/depthcharge/depthcharge/.config $(PAYLOAD_CONFIG): payloads/external/depthcharge/depthcharge/build/depthcharge.elf +ifneq ($(CONFIG_MAINBOARD_DEPTHCHARGE),) + BOARD=$(CONFIG_MAINBOARD_DEPTHCHARGE) +else + BOARD=$(call ws_to_under,$(call strip_quotes,$(call tolower,$(CONFIG_MAINBOARD_PART_NUMBER)))) +endif #TODO: Figure out version endif @@ -114,7 +119,7 @@ endif payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(DOTCONFIG) $(CBFSTOOL) $(MAKE) -C payloads/external/depthcharge \ - BOARD=$(call ws_to_under,$(call strip_quotes,$(call tolower,$(CONFIG_MAINBOARD_PART_NUMBER)))) \ + BOARD=$(BOARD) \ MFLAGS= MAKEFLAGS= \ DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \ DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \ diff --git a/payloads/external/depthcharge/Kconfig b/payloads/external/depthcharge/Kconfig index 9fd1268b91..89c81ef70e 100644 --- a/payloads/external/depthcharge/Kconfig +++ b/payloads/external/depthcharge/Kconfig @@ -35,6 +35,11 @@ config PAYLOAD_FILE string default "payloads/external/depthcharge/depthcharge/build/depthcharge.elf" +config MAINBOARD_DEPTHCHARGE + string "" + help + Override BOARD setting for depthcharge + config LP_DEFCONFIG_OVERRIDE bool "Use default libpayload config" help -- cgit v1.2.3