mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
x86: Drop CONFIG_BUILD_ROM and repurpose BUILD_ROM
This Kconfig is not needed anymore since U-Boot will build the ROM if the required binary blobs exist. The BUILD_ROM environment variable used to request that the ROM be built. Now this always happens if the required binary blobs are available. Update it to mean that U-Boot should fail if the ROM cannot be built. This behaviour should be compatible with how it used to work. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
42b18df80f
commit
3be8ba5ea5
4 changed files with 7 additions and 5 deletions
7
Kconfig
7
Kconfig
|
@ -288,8 +288,11 @@ config ROM_NEEDS_BLOBS
|
|||
depends on HAS_ROM
|
||||
help
|
||||
Enable this if building the u-boot.rom target needs binary blobs, and
|
||||
so cannot be done normally. In this case, pass BUILD_ROM=1 to make
|
||||
to tell U-Boot to build the ROM.
|
||||
so cannot be done normally. In this case, U-Boot will only build the
|
||||
ROM if the required blobs exist. If not, you will see an warning like:
|
||||
|
||||
Image 'main-section' is missing external blobs and is non-functional:
|
||||
intel-descriptor intel-me intel-refcode intel-vga intel-mrc
|
||||
|
||||
config BUILD_ROM
|
||||
bool "Build U-Boot as BIOS replacement"
|
||||
|
|
3
Makefile
3
Makefile
|
@ -1312,7 +1312,8 @@ quiet_cmd_binman = BINMAN $@
|
|||
cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
|
||||
--toolpath $(objtree)/tools \
|
||||
$(if $(BINMAN_VERBOSE),-v$(BINMAN_VERBOSE)) \
|
||||
build -u -d u-boot.dtb -O . -m --allow-missing \
|
||||
build -u -d u-boot.dtb -O . \
|
||||
$(if $(BUILD_ROM),,-m --allow-missing) \
|
||||
-I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
|
||||
$(BINMAN_$(@F))
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ CONFIG_GENERATE_MP_TABLE=y
|
|||
CONFIG_GENERATE_ACPI_TABLE=y
|
||||
CONFIG_X86_OFFSET_U_BOOT=0xfff00000
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_BUILD_ROM=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_SPL_LOAD_FIT=y
|
||||
CONFIG_BOOTSTAGE=y
|
||||
|
|
|
@ -9,7 +9,6 @@ CONFIG_GENERATE_PIRQ_TABLE=y
|
|||
CONFIG_GENERATE_MP_TABLE=y
|
||||
CONFIG_GENERATE_ACPI_TABLE=y
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_BUILD_ROM=y
|
||||
CONFIG_FIT=y
|
||||
CONFIG_BOOTSTAGE=y
|
||||
CONFIG_BOOTSTAGE_REPORT=y
|
||||
|
|
Loading…
Reference in a new issue