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

6
fs/cramfs/Config.in Normal file
View File

@@ -0,0 +1,6 @@
config BR2_TARGET_ROOTFS_CRAMFS
bool "cramfs root filesystem"
help
Build a cramfs root filesystem
http://sourceforge.net/projects/cramfs/

22
fs/cramfs/cramfs.mk Normal file
View File

@@ -0,0 +1,22 @@
#############################################################
#
# Build the cramfs root filesystem image
#
#############################################################
ifeq ($(BR2_ENDIAN),"BIG")
CRAMFS_OPTS=-b
else
CRAMFS_OPTS=-l
endif
ifneq ($(TARGET_DEVICE_TABLE),)
CRAMFS_OPTS += -D $(TARGET_DEVICE_TABLE)
endif
define ROOTFS_CRAMFS_CMD
$(HOST_DIR)/usr/bin/mkcramfs -q $(CRAMFS_OPTS) $(TARGET_DIR) $$@
endef
ROOTFS_CRAMFS_DEPENDENCIES = host-cramfs
$(eval $(call ROOTFS_TARGET,cramfs))