diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-09 16:16:44 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-09 16:16:44 +0200 |
commit | 6bb35a38c244b20bbd6e85fd16f69ff2c4f0ed72 (patch) | |
tree | 432513fc67dcff844ecf5c48f38bdcf1a9fe3523 /target/iso9660 | |
parent | b6ebab842dbb0581526f907bf5b39cad0ac1f756 (diff) | |
parent | 0b79c5022d32b15180a18087a0fba5a2f1af5cc7 (diff) |
Merge branch 'fs-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'target/iso9660')
-rw-r--r-- | target/iso9660/Config.in | 22 | ||||
-rw-r--r-- | target/iso9660/iso9660.mk | 95 | ||||
-rw-r--r-- | target/iso9660/menu.lst | 11 |
3 files changed, 0 insertions, 128 deletions
diff --git a/target/iso9660/Config.in b/target/iso9660/Config.in deleted file mode 100644 index 0b820630a..000000000 --- a/target/iso9660/Config.in +++ /dev/null @@ -1,22 +0,0 @@ -config BR2_TARGET_ROOTFS_ISO9660 - bool "iso image" - depends on BR2_i386 - depends on !BR2_KERNEL_none - select BR2_TARGET_ROOTFS_EXT2 - select BR2_TARGET_GRUB - select BR2_HOST_FAKEROOT - help - Build a bootable iso9660 image - -config BR2_TARGET_ROOTFS_ISO9660_OUTPUT - string "Output File" - depends on BR2_TARGET_ROOTFS_ISO9660 - default "$(IMAGE).iso" - -config BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU - string "Boot menu.lst file" - depends on BR2_TARGET_ROOTFS_ISO9660 - default "target/iso9660/menu.lst" - -comment "iso image requires a Linux kernel to be built" - depends on BR2_i386 && BR2_KERNEL_none diff --git a/target/iso9660/iso9660.mk b/target/iso9660/iso9660.mk deleted file mode 100644 index 9571e4769..000000000 --- a/target/iso9660/iso9660.mk +++ /dev/null @@ -1,95 +0,0 @@ -############################################################# -# -# mkisofs to build to target iso9660 filesystems -# -############################################################# -MKISOFS_SOURCE:=cdrtools-2.01.tar.bz2 -MKISOFS_CAT:=$(BZCAT) -MKISOFS_SITE:=ftp://ftp.berlios.de/pub/cdrecord/ -MKISOFS_DIR:=$(BUILD_DIR)/cdrtools-2.01 -MKISOFS_TARGET=$(MKISOFS_DIR)/mkisofs/OBJ/$(HOST_ARCH)-linux-cc/mkisofs - -hest: - @echo ARCH=$(BR2_ARCH) HOST_ARCH=$(HOST_ARCH) -$(DL_DIR)/$(MKISOFS_SOURCE): - $(call DOWNLOAD,$(MKISOFS_SITE),$(MKISOFS_SOURCE)) - -mkisofs-source: $(DL_DIR)/$(MKISOFS_SOURCE) - -$(MKISOFS_DIR)/.unpacked: $(DL_DIR)/$(MKISOFS_SOURCE) - $(MKISOFS_CAT) $(DL_DIR)/$(MKISOFS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(MKISOFS_DIR) target/iso9660/ \*.patch - touch $@ - -$(MKISOFS_DIR)/.configured: $(MKISOFS_DIR)/.unpacked - (cd $(MKISOFS_DIR); rm -rf config.cache; \ - ); - touch $@ - -$(MKISOFS_TARGET): $(MKISOFS_DIR)/.configured - $(MAKE) -C $(MKISOFS_DIR) - touch -c $(MKISOFS_DIR)/mkisofs - -mkisofs: $(MKISOFS_TARGET) - -mkisofs-clean: - -$(MAKE) -C $(MKISOFS_DIR) clean - -mkisofs-dirclean: - rm -rf $(MKISOFS_DIR) - - -############################################################# -# -# Build the iso96600 root filesystem image -# -############################################################# - -ISO9660_TARGET_DIR=$(BUILD_DIR)/iso9660 -ISO9660_TARGET:=$(call qstrip,$(BR2_TARGET_ROOTFS_ISO9660_OUTPUT)) -ISO9660_BOOT_MENU:=$(call qstrip,$(BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU)) -ISO9660_OPTS:= - -ifeq ($(BR2_TARGET_ROOTFS_ISO9660_SQUASH),y) -ISO9660_OPTS+=-U -endif - -$(ISO9660_TARGET): host-fakeroot $(LINUX_KERNEL) $(EXT2_TARGET) grub mkisofs - 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 - cp $(EXT2_TARGET) $(ISO9660_TARGET_DIR)/initrd - # Use fakeroot to pretend all target binaries are owned by root - rm -f $(BUILD_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET)) - touch $(BUILD_DIR)/.fakeroot.00000 - cat $(BUILD_DIR)/.fakeroot* > $(BUILD_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET)) - echo "chown -R 0:0 $(ISO9660_TARGET_DIR)" >> $(BUILD_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET)) - # Use fakeroot so mkisofs believes the previous fakery - echo "$(MKISOFS_TARGET) -R -b boot/grub/stage2_eltorito -no-emul-boot " \ - "-boot-load-size 4 -boot-info-table -o $(ISO9660_TARGET) $(ISO9660_TARGET_DIR)" \ - >> $(BUILD_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET)) - chmod a+x $(BUILD_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET)) - $(HOST_DIR)/usr/bin/fakeroot -- $(BUILD_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET)) - -@rm -f $(BUILD_DIR)/_fakeroot.$(notdir $(ISO9660_TARGET)) - -iso9660root: $(ISO9660_TARGET) - echo $(ISO9660_TARGET) - @ls -l $(ISO9660_TARGET) - -iso9660root-source: mkisofs-source - -iso9660root-clean: mkisofs-clean - -iso9660root-dirclean: mkisofs-dirclean - rm -rf $(ISO9660_DIR) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_TARGET_ROOTFS_ISO9660),y) -TARGETS+=iso9660root -endif diff --git a/target/iso9660/menu.lst b/target/iso9660/menu.lst deleted file mode 100644 index d78caebe1..000000000 --- a/target/iso9660/menu.lst +++ /dev/null @@ -1,11 +0,0 @@ -default 0 -timeout 10 -color cyan/blue white/blue - -title Hard Drive (first partition) -rootnoverify (hd0) -chainloader +1 - -title BuildRoot ISO9660 image -kernel /kernel -initrd /initrd |