[Buildroot] [PATCH] target/iso9660/iso9660.mk
Roberto A. Foglietta
roberto.foglietta at gmail.com
Fri Nov 21 10:11:59 UTC 2008
Hi,
when the user choose to use INITRAMFS iso9660 double its size because
initrd is also copied in iso9660 but kernel has its own.
Index: target/iso9660/iso9660.mk
===================================================================
--- target/iso9660/iso9660.mk (revision 24103)
+++ target/iso9660/iso9660.mk (working copy)
@@ -55,12 +55,17 @@
endif
$(ISO9660_TARGET): host-fakeroot $(LINUX_KERNEL) $(EXT2_TARGET) grub mkisofs
+ rm -rf $(ISO9660_TARGET_DIR)
mkdir -p $(ISO9660_TARGET_DIR)
mkdir -p $(ISO9660_TARGET_DIR)/boot/grub
cp $(GRUB_DIR)/stage2/stage2_eltorito $(ISO9660_TARGET_DIR)/boot/grub/
cp $(ISO9660_BOOT_MENU) $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
cp $(LINUX_KERNEL) $(ISO9660_TARGET_DIR)/kernel
+ifneq ($(strip $(BR2_TARGET_ROOTFS_INITRAMFS)),y)
cp $(EXT2_TARGET) $(ISO9660_TARGET_DIR)/initrd
+else
+ touch $(ISO9660_TARGET_DIR)/initrd
+endif
# Use fakeroot to pretend all target binaries are owned by root
rm -f $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET))
touch $(PROJECT_BUILD_DIR)/.fakeroot.00000
--
/roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iso9660.patch
Type: text/x-diff
Size: 824 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20081121/1b746f4d/attachment-0002.patch>
More information about the buildroot
mailing list