kumquat-buildroot/board
Yann E. MORIN 086c96b452 configs/pc_x86_64_bios_defconfig: fix image generation after grub2 rework
Commit 82d1e8c628 (boot/grub2: use none platform when building for
host) changed host-grub2 to only install the tools, not the actual
bootloader or its modules, as they are of no use on the host.

It so happened that, when not instructed to built for a specific
platform, the grub2 buildsystem would default to build the legacy bios
platform (at least when the build happens on an x86 or x86_64 host).

However, because the host is more often than not an x86 or x86_64, when
the target was also an x68 or x86_64, the modules built for the host
could be re-used for the target, and this is what was done for our
pc_x86_64_bios_defconfig.

But now that we explicitly tell the grub2 buildsystem to not build any
platform when we build host-grub2, we no longer have access to the grub2
modules from the host directory, and the build fails when assembling the
final image.

We fix that in two ways:

First, we ensure that individual modules from the target grub2 get installed
in target/; we can only do that if the target grub2 tools are also
installed, so we enable that in the configuration.

Second, we fix the post-build script to look in target/ rather than in
host/.

All that, just for the 512-byte boot.img bootstrap, which pulls in all
the other modules (4.3MiB), the tools (8.8MiB)... But we are not going
to cherry-pick individual modules; this is error prone and
unmaintainable...

Reported-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Köry Maincent <kory.maincent@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-12-05 12:32:24 +01:00
..
aarch64-efi board/aarch64-efi/genimage.cfg: beautify file 2021-11-08 22:20:31 +01:00
acmesystems board/acmesystems/arietta-g25/genimage.cfg: beautify file 2021-11-08 22:20:39 +01:00
altera/socrates_cyclone5 board/altera/socrates_cyclone5/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
amarula board/amarula/a64-relic/genimage.cfg: beautify file 2021-11-08 22:20:41 +01:00
andes
arcturus
arm
armadeus
arrow/avenger96
asus/tinker
atmel board/atmel/sama5d4_xplained_mmc/genimage.cfg: beautify file 2021-11-08 22:20:57 +01:00
avnet/s6lx9_microboard
bananapi board/bananapi/bananapi-m2-zero/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
beagleboardx15 board/beagleboardx15/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
beaglebone board/beaglebone/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
beagleboneai configs/beagleboneai_defconfig: backport gcc >= 10 u-boot patch 2021-11-13 15:23:55 +01:00
beaglev board/beaglev/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
beelink/gs1 board/beelink/gs1/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
boundarydevices/common
chromebook
ci20 board/ci20/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
csky
cubietech/cubieboard2 board/cubietech/cubieboard2/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
embest/riotboard board/embest/riotboard/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
engicam board/engicam/isiot/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
firefly/roc-rk3399-pc
freescale board/freescale/common/imx: place rootfs at proper offset when BR2_LINUX_KERNEL_INSTALL_TARGET=y 2021-11-14 15:15:14 +01:00
friendlyarm board/friendlyarm/nanopi-r1/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
globalscale/espressobin
grinn board/grinn/liteboard/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
hardkernel board/hardkernel/odroidxu4/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
intel/galileo board/intel/galileo/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
kontron
lego/ev3 board/lego/ev3/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
lemaker/bananapro board/lemaker/bananapro/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
librecomputer/lafrite
licheepi board/licheepi/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
linksprite/pcduino board/linksprite/pcduino/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
microchip board/microchip/sama5d2_icp/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
minnowboard board/minnowboard/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
nexbox/a95x board/nexbox/a95x/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
nezha
olimex configs/olimex_a64_olinuxino: backport gcc >= 10 u-boot and linux patch 2021-11-14 15:23:53 +01:00
olpc
openblocks/a6
orangepi board/orangepi/orangepi-zero/genimage.cfg: beautify file 2021-11-08 22:59:31 +01:00
pandaboard board/pandaboard/genimage.cfg: beautify file 2021-11-08 22:59:31 +01:00
pc configs/pc_x86_64_bios_defconfig: fix image generation after grub2 rework 2021-12-05 12:32:24 +01:00
pcengines/apu2
pine64 board/pine64/sopine/genimage.cfg: beautify file 2021-11-08 22:59:32 +01:00
qemu board/qemu/aarch64-sbsa/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
qmtech/zynq
radxa board/radxa/rockpi-n8/genimage.cfg: beautify file 2021-11-08 22:59:33 +01:00
raspberrypi board/raspberrypi/genimage-raspberrypicm4io.cfg: beautify file 2021-11-08 22:59:34 +01:00
roseapplepi board/roseapplepi/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
seeed/stm32mp157c-odyssey
sheevaplug configs/sheevaplug_defconfig: backport gcc >= 10 u-boot patch 2021-11-13 15:23:54 +01:00
sifive/hifive-unleashed
sinovoip board/sinovoip/m2-plus/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
solidrun board/solidrun/macchiatobin/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
stmicroelectronics board/stmicroelectronics/stm32f469-disco/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
synopsys board/synopsys/hsdk/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
technexion
technologic board/technologic/ts7680/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
terasic/de10nano_cyclone5 board/terasic/de10nano_cyclone5/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
toradex/apalis-imx6 board/toradex/apalis-imx6/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
udoo
uevm5432 board/uevm5432/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
wandboard
warp7
zynq board/zynq/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
zynqmp configs/zynqmp_zcu106: fix arm-trusted-firmware build failure 2021-11-21 21:53:42 +01:00
raspberrypi0
raspberrypi0w
raspberrypi2
raspberrypi3
raspberrypi3-64
raspberrypi4
raspberrypi4-64
raspberrypicm4io
raspberrypicm4io-64