Move all filesystem generation code to fs/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2010-03-10 22:30:06 +01:00
parent 325bfd1cba
commit 0585241505
30 changed files with 37 additions and 34 deletions

View File

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

View File

@ -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
fs/Config.in Normal file
View File

@ -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

View File

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

View File

@ -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"

View File

@ -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