瀏覽代碼

boot/grub2: use none platform when building for host

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@bootlin.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Kory Maincent 3 年之前
父節點
當前提交
82d1e8c628
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      boot/grub2/grub2.mk

+ 1 - 0
boot/grub2/grub2.mk

@@ -140,6 +140,7 @@ GRUB2_CONF_ENV = \
 	TARGET_STRIP="$(TARGET_CROSS)strip"
 	TARGET_STRIP="$(TARGET_CROSS)strip"
 
 
 HOST_GRUB2_CONF_OPTS = \
 HOST_GRUB2_CONF_OPTS = \
+	--with-platform=none \
 	--disable-grub-mkfont \
 	--disable-grub-mkfont \
 	--enable-efiemu=no \
 	--enable-efiemu=no \
 	ac_cv_lib_lzma_lzma_code=no \
 	ac_cv_lib_lzma_lzma_code=no \