From 63402d77375c57612798fa76e3ae08c227d035cb Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 2 Dec 2008 09:15:08 +0000 Subject: target/cramfs/cramfs.mk: Fix device table not being passed to mkcramfs While mkcramfs was being patched to support a device table, the target device table was not being passed to the mkcramfs options. This patch fixes that Signed-off-by: Jared Holzman --- target/cramfs/cramfs.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'target/cramfs') diff --git a/target/cramfs/cramfs.mk b/target/cramfs/cramfs.mk index d7f358d5c..2e9e65124 100644 --- a/target/cramfs/cramfs.mk +++ b/target/cramfs/cramfs.mk @@ -40,9 +40,13 @@ cramfs-dirclean: # ############################################################# ifeq ($(BR2_ENDIAN),"BIG") -CRAMFS_ENDIANNESS=-b +CRAMFS_OPTS=-b else -CRAMFS_ENDIANNESS=-l +CRAMFS_OPTS=-l +endif + +ifneq ($(TARGET_DEVICE_TABLE),) +CRAMFS_OPTS += -D $(TARGET_DEVICE_TABLE) endif CRAMFS_TARGET=$(IMAGE).cramfs @@ -68,7 +72,7 @@ ifneq ($(TARGET_DEVICE_TABLE),) >> $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET)) endif # Use fakeroot so mkcramfs believes the previous fakery - echo "$(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_ENDIANNESS) " \ + echo "$(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_OPTS) " \ "$(TARGET_DIR) $(CRAMFS_TARGET)" >> $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET)) chmod a+x $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET)) $(STAGING_DIR)/usr/bin/fakeroot -- $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET)) -- cgit v1.2.3