From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] minnowboard_max_defconfig, changes to build for 32-bit, fails in the end when installing grub
Date: Mon, 28 Aug 2017 09:05:45 +0200 [thread overview]
Message-ID: <20170828090545.61959c3c@windsurf> (raw)
In-Reply-To: <CAEUhbmW6BXHrudGz5LB4=xQYf3-3noyoUzDuryFv39_VUoP_cw@mail.gmail.com>
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
next prev parent reply other threads:[~2017-08-28 7:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-27 11:57 [Buildroot] minnowboard_max_defconfig, changes to build for 32-bit, fails in the end when installing grub Bin Meng
2017-08-28 7:05 ` Thomas Petazzoni [this message]
2017-08-28 7:47 ` Bin Meng
2017-08-28 7:52 ` Thomas Petazzoni
2017-08-28 8:26 ` Bin Meng
2017-08-28 9:07 ` Thomas Petazzoni
2017-08-28 9:24 ` Bin Meng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170828090545.61959c3c@windsurf \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox