]> git.baikalelectronics.ru Git - uboot.git/commit
x86: Change how selection of ROMs works
authorSimon Glass <sjg@chromium.org>
Sun, 19 Jul 2020 19:55:52 +0000 (13:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 29 Jul 2020 01:30:39 +0000 (19:30 -0600)
commit542bafb5297dc5216eeefee8e863b51091da0abd
treeaf95a8ce4d675262040af274ebfd176d3a177096
parent096066f14f6c5fdf8e111cc8f69e551d33541fa9
x86: Change how selection of ROMs works

Most x86 boards build a u-boot.rom which is programmed into SPI flash. But
this is not unique to x86. For example some rockchip boards can also boot
from SPI flash.

Also, at least on x86, binary blobs are sadly quite common. It is not
possible to build a functional image without them, and U-Boot needs to
know this at build time.

Introduce a new CONFIG_HAS_ROM option which selects whether u-boot.rom is
built and a new CONFIG_ROM_NEEDS_BLOBS option to indicate whether binary
blobs are also needed. If they are not needed, it is safe to build the ROM
always. Otherwise we still require the BUILD_ROM environment variable.

For now this affects only x86, but future patches will enable this for
rockchip too.

Signed-off-by: Simon Glass <sjg@chromium.org>
Kconfig
Makefile
arch/Kconfig
arch/x86/Kconfig
arch/x86/cpu/quark/Kconfig