payloads/depthcharge: Allow generic libpayload config
Change depthcharge to not require a board-specific config file for libpayload. If the Kconfig option is selected, use the settings in libpayload/configs/defconfig instead. Change-Id: I4fd1a5915472f28e757c62f3f2415716f1fdfc71 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/18271 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
committed by
Martin Roth
parent
9be3f5dab4
commit
fc18507134
13
payloads/external/depthcharge/Makefile
vendored
13
payloads/external/depthcharge/Makefile
vendored
@@ -30,6 +30,13 @@ unexport src srck obj objk
|
||||
|
||||
BOARD:=$(notdir $(CONFIG_MAINBOARD_DIR))
|
||||
|
||||
ifeq ($(OVERRIDE_DEFCONFIG),y)
|
||||
$(info Depthcharge: Using default defconfig for libpayload)
|
||||
libpayload_config=$(libpayload_dir)/configs/defconfig
|
||||
else
|
||||
libpayload_config=$(libpayload_dir)/configs/config.$(BOARD)
|
||||
endif
|
||||
|
||||
all: build
|
||||
|
||||
$(project_dir):
|
||||
@@ -47,10 +54,10 @@ checkout: fetch
|
||||
cd $(project_dir) ; git checkout master; git branch -D coreboot 2>/dev/null; git checkout -b coreboot $(TAG-y)
|
||||
|
||||
$(libpayload_install_dir): $(project_dir)
|
||||
test -f $(libpayload_dir)/configs/config.$(BOARD) || \
|
||||
(echo "Error: $(libpayload_dir)/configs/config.$(BOARD) is not present" && \
|
||||
test -f $(libpayload_config)|| \
|
||||
(echo "Error: $(libpayload_config) is not present" && \
|
||||
false)
|
||||
cp $(libpayload_dir)/configs/config.$(BOARD) $(libpayload_dir)/.config
|
||||
cp $(libpayload_config) $(libpayload_dir)/.config
|
||||
$(MAKE) -C $(libpayload_dir) olddefconfig
|
||||
$(MAKE) -C $(libpayload_dir)
|
||||
$(MAKE) -C $(libpayload_dir) install DESTDIR=$(libpayload_install_dir)
|
||||
|
Reference in New Issue
Block a user