2003-01-17 05:22:53 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Build the cramfs root filesystem image
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-06-12 17:30:32 +02:00
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
2008-12-02 10:15:08 +01:00
|
|
|
CRAMFS_OPTS=-b
|
2007-06-12 17:30:32 +02:00
|
|
|
else
|
2008-12-02 10:15:08 +01:00
|
|
|
CRAMFS_OPTS=-l
|
|
|
|
endif
|
|
|
|
|
2010-04-17 03:30:59 +02:00
|
|
|
ifneq ($(ROOTFS_DEVICE_TABLE),)
|
|
|
|
CRAMFS_OPTS += -D $(ROOTFS_DEVICE_TABLE)
|
2005-04-14 09:59:42 +02:00
|
|
|
endif
|
2003-01-17 05:22:53 +01:00
|
|
|
|
2010-03-10 00:13:39 +01:00
|
|
|
define ROOTFS_CRAMFS_CMD
|
|
|
|
$(HOST_DIR)/usr/bin/mkcramfs -q $(CRAMFS_OPTS) $(TARGET_DIR) $$@
|
|
|
|
endef
|
2006-04-07 22:30:43 +02:00
|
|
|
|
2010-03-10 00:13:39 +01:00
|
|
|
ROOTFS_CRAMFS_DEPENDENCIES = host-cramfs
|
2003-01-17 05:22:53 +01:00
|
|
|
|
2010-03-10 00:13:39 +01:00
|
|
|
$(eval $(call ROOTFS_TARGET,cramfs))
|