summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-12-02 09:15:08 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-12-02 09:15:08 +0000
commit63402d77375c57612798fa76e3ae08c227d035cb (patch)
tree561a4f8a396adf7a2287bd884dc5147406328f61 /target
parent21ed5b304a8af8a43c403a464b5169ce2f50ee06 (diff)
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 <j.holzman@genesysdesign.com.au>
Diffstat (limited to 'target')
-rw-r--r--target/cramfs/cramfs.mk10
1 files changed, 7 insertions, 3 deletions
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))