mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
27
fs/cramfs/cramfs.mk
Normal file
27
fs/cramfs/cramfs.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# Build the cramfs root filesystem image
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ifeq ($(BR2_ENDIAN),"BIG")
|
||||
CRAMFS_OPTS = -B
|
||||
else
|
||||
CRAMFS_OPTS = -L
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_ROOTFS_CRAMFS_XIP),y)
|
||||
ifeq ($(BR2_USE_MMU),y)
|
||||
CRAMFS_OPTS += -X -X
|
||||
else
|
||||
CRAMFS_OPTS += -X
|
||||
endif
|
||||
endif
|
||||
|
||||
define ROOTFS_CRAMFS_CMD
|
||||
$(HOST_DIR)/bin/mkcramfs $(CRAMFS_OPTS) $(TARGET_DIR) $@
|
||||
endef
|
||||
|
||||
ROOTFS_CRAMFS_DEPENDENCIES = host-cramfs
|
||||
|
||||
$(eval $(rootfs))
|
||||
Reference in New Issue
Block a user