Use defconfig for coreboot builds

This commit is contained in:
Trammell hudson 2018-08-13 10:26:08 -04:00
parent 1d27c93a50
commit 2bcbd0bfe0
Failed to extract signature

View File

@ -19,18 +19,18 @@ $(build)/$(coreboot_dir)/.configured: $(CONFIG_COREBOOT_CONFIG)
EXTRA_FLAGS := -fdebug-prefix-map=$(pwd)=heads -gno-record-gcc-switches EXTRA_FLAGS := -fdebug-prefix-map=$(pwd)=heads -gno-record-gcc-switches
coreboot_configure := \ coreboot_configure := \
$(MAKE) -C $(build)/$(coreboot_base_dir) \ mkdir -p "$(build)/$(coreboot_dir)" \
oldconfig \ && cp "$(pwd)/$(CONFIG_COREBOOT_CONFIG)" "$(build)/$(coreboot_dir)/.config" \
obj=$(build)/$(coreboot_dir) \ && $(MAKE) olddefconfig \
DOTCONFIG=../../$(CONFIG_COREBOOT_CONFIG) \ -C "$(build)/$(coreboot_base_dir)" \
obj="$(build)/$(coreboot_dir)" \
BUILD_TIMELESS=1 \ BUILD_TIMELESS=1 \
CFLAGS_x86_32="$(EXTRA_FLAGS)" \ CFLAGS_x86_32="$(EXTRA_FLAGS)" \
CFLAGS_x86_64="$(EXTRA_FLAGS)" \ CFLAGS_x86_64="$(EXTRA_FLAGS)" \
coreboot_target := \ coreboot_target := \
-C $(build)/$(coreboot_base_dir) \ -C "$(build)/$(coreboot_base_dir)" \
obj=$(build)/$(coreboot_dir) \ obj="$(build)/$(coreboot_dir)" \
DOTCONFIG=../../$(CONFIG_COREBOOT_CONFIG) \
BUILD_TIMELESS=1 \ BUILD_TIMELESS=1 \
CFLAGS_x86_32="$(EXTRA_FLAGS)" \ CFLAGS_x86_32="$(EXTRA_FLAGS)" \
CFLAGS_x86_64="$(EXTRA_FLAGS)" \ CFLAGS_x86_64="$(EXTRA_FLAGS)" \
@ -64,9 +64,18 @@ $(build)/$(BOARD)/coreboot.rom: $(build)/$(coreboot_dir)/.build
coreboot.menuconfig: coreboot.menuconfig:
$(MAKE) \ $(MAKE) \
-C "$(build)/$(coreboot_base_dir)" \ -C "$(build)/$(coreboot_base_dir)" \
DOTCONFIG="../../$(CONFIG_COREBOOT_CONFIG)" \ DOTCONFIG="$(build)/$(coreboot_dir)/.config" \
menuconfig menuconfig
# The config file in the repo is stored as a "defconfig" format
# which only includes the options that have changed from the defaults.
coreboot.saveconfig:
$(MAKE) \
-C "$(build)/$(coreboot_base_dir)" \
DOTCONFIG="$(build)/$(coreboot_dir)/.config" \
DEFCONFIG="$(pwd)/$(CONFIG_COREBOOT_CONFIG)" \
savedefconfig
# if we are not building from a git checkout, # if we are not building from a git checkout,
# we must also download the coreboot-blobs tree # we must also download the coreboot-blobs tree