1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 10:45:11 +02:00

fix x86 image builder

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6100 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-01-14 22:59:51 +00:00
parent b766f54386
commit f72e9c8897

View File

@ -36,11 +36,9 @@ ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
define Image/Build/grub define Image/Build/grub
mkdir -p $(KDIR)/root.grub/boot/grub mkdir -p $(KDIR)/root.grub/boot/grub
$(CP) \ $(CP) \
$(STAGING_DIR)/usr/lib/grub/i386-pc/stage1 \ $(KDIR)/*stage* \
$(STAGING_DIR)/usr/lib/grub/i386-pc/stage2 \
$(STAGING_DIR)/usr/lib/grub/i386-pc/e2fs_stage1_5 \
$(KDIR)/root.grub/boot/grub/ $(KDIR)/root.grub/boot/grub/
$(CP) $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/root.grub/boot/vmlinuz $(CP) $(KDIR)/bzImage $(KDIR)/root.grub/boot/vmlinuz
sed \ sed \
-e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1))) $(CONFIG_X86_GRUB_BOOTOPTS)#g' \ -e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1))) $(CONFIG_X86_GRUB_BOOTOPTS)#g' \
-e 's#@BAUDRATE@#$(CONFIG_X86_GRUB_BAUDRATE)#g' \ -e 's#@BAUDRATE@#$(CONFIG_X86_GRUB_BAUDRATE)#g' \
@ -51,6 +49,13 @@ endif
define Image/Prepare define Image/Prepare
cp $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage cp $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage
# for the image builder
$(CP) \
$(STAGING_DIR)/usr/lib/grub/i386-pc/stage1 \
$(STAGING_DIR)/usr/lib/grub/i386-pc/stage2 \
$(STAGING_DIR)/usr/lib/grub/i386-pc/e2fs_stage1_5 \
$(KDIR)/
$(CP) $(STAGING_DIR)/usr/sbin/grub $(STAGING_DIR)/bin
endef endef
define Image/Build define Image/Build