x86: explicitely pass staging directory to grub-mkimage instead of relying on build...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 17 Jan 2013 15:46:26 +0000 (15:46 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 17 Jan 2013 15:46:26 +0000 (15:46 +0000)
SVN-Revision: 35200

target/linux/x86/image/Makefile

index e31734870f62707298ce8cb3b3ac27edb0c57fde..62d4c7305573b71e7baa5fec0ef93e9381fe36d5 100644 (file)
@@ -67,6 +67,7 @@ ifneq ($(CONFIG_X86_GRUB_IMAGES),)
        $(INSTALL_DIR) $(KDIR)/root.grub/boot/grub $(KDIR)/grub2
        $(CP) $(KDIR)/bzImage $(KDIR)/root.grub/boot/vmlinuz
        grub-mkimage \
+               -d $(STAGING_DIR_HOST)/lib/grub/i386-pc \
                -o $(KDIR)/grub2/core.img \
                -O i386-pc \
                -c ./grub-early.cfg \
@@ -135,6 +136,7 @@ define Image/Build/iso
        $(INSTALL_DIR) $(KDIR)/root.grub/boot/grub $(KDIR)/grub2
        $(CP) $(KDIR)/bzImage $(KDIR)/root.grub/boot/vmlinuz
        grub-mkimage \
+               -d $(STAGING_DIR_HOST)/lib/grub/i386-pc \
                -o $(KDIR)/grub2/eltorito.img \
                -O i386-pc \
                -c ./grub-early.cfg \