From 92dc22dd6823b93b5989a704a2440e724d954bd3 Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Fri, 4 Feb 2022 01:56:10 +0100 Subject: [PATCH] board/pc: fix build failure due to new genimage 15 Actually genimage fails to create final image with: ``` ERROR: hdimage(disk.img): partition [MBR] (offset 0x1b8, size 0x48) overlaps previous partition boot (offset 0x0, size 0x200) ERROR: hdimage(disk.img): bootloaders, etc. that overlap with the partition table must declare the overlapping area as a hole. ``` This is because genimage 15 is less permissive than before, so let's add holes = {"(440; 512)"} to leave room to MBR. The generated image is identical to the image generated by the previous version of genimage. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/1865935249 Signed-off-by: Giulio Benetti Tested-by: Giulio Benetti Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- board/pc/genimage-bios.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/board/pc/genimage-bios.cfg b/board/pc/genimage-bios.cfg index 26d12d9ab3..54026f6527 100644 --- a/board/pc/genimage-bios.cfg +++ b/board/pc/genimage-bios.cfg @@ -7,6 +7,7 @@ image disk.img { image = "boot.img" offset = 0 size = 512 + holes = {"(440; 512)"} } partition grub {