[Buildroot] [git commit] boot/grub2: use none platform when building for host

Yann E. MORIN yann.morin.1998 at free.fr
Sat Oct 23 20:41:56 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=82d1e8c628cc7c7a0ede90aa6c41c5052a964830
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

When creating the image we are using the target modules. Building
the modules for host is then unnecessary.

Lets configure host Grub2 for the 'none' platform.

Note that this still installs a platform-dependent file:
    .../host/lib/grub/i386-pc/config.h

This file does not seem to have much purpose, but it is harmless.
We did not care to provide a post-isntall hook to remove it.

Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
Cc: Yann E. MORIN <yann.morin.1998 at free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 boot/grub2/grub2.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk
index 270f289cfd..d93e383422 100644
--- a/boot/grub2/grub2.mk
+++ b/boot/grub2/grub2.mk
@@ -140,6 +140,7 @@ GRUB2_CONF_ENV = \
 	TARGET_STRIP="$(TARGET_CROSS)strip"
 
 HOST_GRUB2_CONF_OPTS = \
+	--with-platform=none \
 	--disable-grub-mkfont \
 	--enable-efiemu=no \
 	ac_cv_lib_lzma_lzma_code=no \


More information about the buildroot mailing list