Browse Source

Move all filesystem generation code to fs/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas Petazzoni 15 years ago
parent
commit
0585241505

+ 2 - 0
Config.in

@@ -346,4 +346,6 @@ source "toolchain/Config.in"
 
 source "package/Config.in"
 
+source "fs/Config.in"
+
 source "target/Config.in"

+ 2 - 0
Makefile

@@ -323,6 +323,8 @@ ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
 TARGETS+=target-purgelocales
 endif
 
+include fs/common.mk
+
 # target stuff is last so it can override anything else
 include target/Makefile.in
 

+ 30 - 0
fs/Config.in

@@ -0,0 +1,30 @@
+menu "Target filesystem options"
+
+config BR2_ROOTFS_POST_BUILD_SCRIPT
+	string "Custom script to run before packing files"
+	default ""
+	help
+	  Specify a script to be run after the build has finished and before
+	  the BR2 starts packing the files into selected packages.
+
+	  This gives users the oportunity to do board-specific cleanups,
+	  add-ons and the like, so the generated files can be used directly
+	  without further processing.
+
+	  The script is called with the target directory name as first and
+	  only argument. Make sure the exit code of that script is 0,
+	  otherwise make will stop after calling it.
+
+source "fs/cramfs/Config.in"
+source "fs/cloop/Config.in"
+source "fs/ext2/Config.in"
+source "fs/jffs2/Config.in"
+source "fs/ubifs/Config.in"
+source "fs/squashfs/Config.in"
+source "fs/tar/Config.in"
+source "fs/cpio/Config.in"
+source "fs/iso9660/Config.in"
+source "fs/initramfs/Config.in"
+source "fs/romfs/Config.in"
+
+endmenu

+ 0 - 0
target/cloop/Config.in → fs/cloop/Config.in


+ 0 - 0
target/cloop/cloop.mk → fs/cloop/cloop.mk


+ 2 - 0
target/common.mk → fs/common.mk

@@ -66,3 +66,5 @@ endef
 define ROOTFS_TARGET
 $(call ROOTFS_TARGET_INTERNAL,$(1),$(call UPPERCASE,$(1)))
 endef
+
+include fs/*/*.mk

+ 0 - 0
target/cpio/Config.in → fs/cpio/Config.in


+ 0 - 0
target/cpio/cpioroot.mk → fs/cpio/cpioroot.mk


+ 0 - 0
target/cramfs/Config.in → fs/cramfs/Config.in


+ 0 - 0
target/cramfs/cramfs.mk → fs/cramfs/cramfs.mk


+ 0 - 0
target/ext2/Config.in → fs/ext2/Config.in


+ 0 - 0
target/ext2/ext2root.mk → fs/ext2/ext2root.mk


+ 0 - 0
target/initramfs/Config.in → fs/initramfs/Config.in


+ 0 - 0
target/initramfs/gen_initramfs_list.sh → fs/initramfs/gen_initramfs_list.sh


+ 0 - 0
target/initramfs/initramfs.mk → fs/initramfs/initramfs.mk


+ 0 - 0
target/iso9660/Config.in → fs/iso9660/Config.in


+ 0 - 0
target/iso9660/iso9660.mk → fs/iso9660/iso9660.mk


+ 0 - 0
target/iso9660/menu.lst → fs/iso9660/menu.lst


+ 0 - 0
target/jffs2/Config.in → fs/jffs2/Config.in


+ 0 - 0
target/jffs2/jffs2root.mk → fs/jffs2/jffs2root.mk


+ 0 - 0
target/romfs/Config.in → fs/romfs/Config.in


+ 0 - 0
target/romfs/romfs.mk → fs/romfs/romfs.mk


+ 0 - 0
target/squashfs/Config.in → fs/squashfs/Config.in


+ 0 - 0
target/squashfs/squashfsroot.mk → fs/squashfs/squashfsroot.mk


+ 0 - 0
target/tar/Config.in → fs/tar/Config.in


+ 0 - 0
target/tar/tarroot.mk → fs/tar/tarroot.mk


+ 0 - 0
target/ubifs/Config.in → fs/ubifs/Config.in


+ 0 - 0
target/ubifs/ubifsroot.mk → fs/ubifs/ubifsroot.mk


+ 1 - 32
target/Config.in

@@ -1,35 +1,4 @@
-menu "Target filesystem options"
-
-config BR2_ROOTFS_POST_BUILD_SCRIPT
-	string "Custom script to run before packing files"
-	default ""
-	help
-	  Specify a script to be run after the build has finished and before
-	  the BR2 starts packing the files into selected packages.
-
-	  This gives users the oportunity to do board-specific cleanups,
-	  add-ons and the like, so the generated files can be used directly
-	  without further processing.
-
-	  The script is called with the target directory name as first and
-	  only argument. Make sure the exit code of that script is 0,
-	  otherwise make will stop after calling it.
-
-comment "filesystem for target device"
-
-source "target/cramfs/Config.in"
-source "target/cloop/Config.in"
-source "target/ext2/Config.in"
-source "target/jffs2/Config.in"
-source "target/ubifs/Config.in"
-source "target/squashfs/Config.in"
-source "target/tar/Config.in"
-source "target/cpio/Config.in"
-source "target/iso9660/Config.in"
-source "target/initramfs/Config.in"
-source "target/romfs/Config.in"
-
-comment "bootloader for target device"
+menu "Bootloaders"
 
 source "target/x86/grub/Config.in"
 #source "target/x86/grub2/Config.in"

+ 0 - 2
target/Makefile.in

@@ -62,8 +62,6 @@ ifeq ($(BR2_TARGET_UBOOT),y)
 include target/u-boot/Makefile.in
 endif
 
-# and finally build the filesystems/tarballs
-include target/common.mk
 include target/*/*.mk
 
 # kernel rules