From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Mon, 28 Aug 2017 09:05:45 +0200 Subject: [Buildroot] minnowboard_max_defconfig, changes to build for 32-bit, fails in the end when installing grub In-Reply-To: References: Message-ID: <20170828090545.61959c3c@windsurf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Sun, 27 Aug 2017 19:57:48 +0800, Bin Meng wrote: > I wanted to build a 32-bit rootfs for minnowboard max, so I started by: > > $ make minnowboard_max_defconfig > $ make menuconfig > change "Target options" -> "Target Architecture" to i386, save and exit > $ make > > It fails in the end. > > mkdir -p /buildroot/output/images/ > /buildroot/output/host/bin/grub-mkimage -d > /buildroot/output/host/lib/grub/i386-pc -O i386-pc -o > /buildroot/output/images/grub.img -p "(hd0,msdos1)/boot/grub" boot > linux ext2 fat squash4 part_msdos part_gpt normal efi_gop > /buildroot/output/host/bin/grub-mkimage: error: cannot open > `/buildroot/output/host/lib/grub/i386-pc/efi_gop.mod': No such file or > directory. > package/pkg-generic.mk:308: recipe for target > '/buildroot/output/build/grub2-2.02/.stamp_target_installed' failed > make: *** [/buildroot/output/build/grub2-2.02/.stamp_target_installed] Error 1 > > Am I missing anything? Yes: you're changing a defconfig to a different configuration, so obviously, you can get build failures. By switching to i386, grub2 is no longer configured with BR2_TARGET_GRUB2_X86_64_EFI (as specified in the defconfig), but with BR2_TARGET_GRUB2_I386_PC. But BR2_TARGET_GRUB2_BUILTIN_MODULES still contains efi_gop, which isn't built because you're no longer building an EFI-capable grub2. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com