diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-08-04 06:32:52 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-08-04 06:32:52 +0000 |
commit | d1345f067e18a2967638eb888c7ff5010d523acf (patch) | |
tree | 209a7f9055e89cd63d6f0a7994ae923b12312cb5 /target/jffs2/jffs2root.mk | |
parent | 1172dbb8b15c2ccddfa9492850d2f6fbb61e2263 (diff) |
Allow packages to use fakeroot. To accomodate this, convert all
target filesystem creation tools to also use fakeroot.
Diffstat (limited to 'target/jffs2/jffs2root.mk')
-rw-r--r-- | target/jffs2/jffs2root.mk | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/target/jffs2/jffs2root.mk b/target/jffs2/jffs2root.mk index 83cdeb63a..04922aaf2 100644 --- a/target/jffs2/jffs2root.mk +++ b/target/jffs2/jffs2root.mk @@ -44,11 +44,26 @@ $(JFFS2_TARGET): mtd-host @rm -rf $(TARGET_DIR)/usr/share/man @rm -rf $(TARGET_DIR)/usr/info /sbin/ldconfig -r $(TARGET_DIR) - $(MKFS_JFFS2) \ - $(JFFS2_OPTS) \ - -d $(BUILD_DIR)/root \ - -o $(JFFS2_TARGET) \ - -D $(TARGET_DEVICE_TABLE) + # Use fakeroot to pretend all target binaries are owned by root + $(STAGING_DIR)/usr/bin/fakeroot \ + -i $(STAGING_DIR)/fakeroot.env \ + -s $(STAGING_DIR)/fakeroot.env -- \ + chown -R root:root $(TARGET_DIR) + # Use fakeroot to pretend to create all needed device nodes + $(STAGING_DIR)/usr/bin/fakeroot \ + -i $(STAGING_DIR)/fakeroot.env \ + -s $(STAGING_DIR)/fakeroot.env -- \ + $(STAGING_DIR)/bin/makedevs \ + -d $(TARGET_DEVICE_TABLE) \ + $(TARGET_DIR) + # Use fakeroot so mkfs.jffs2 believes the previous fakery + $(STAGING_DIR)/usr/bin/fakeroot \ + -i $(STAGING_DIR)/fakeroot.env \ + -s $(STAGING_DIR)/fakeroot.env -- \ + $(MKFS_JFFS2) \ + $(JFFS2_OPTS) \ + -d $(BUILD_DIR)/root \ + -o $(JFFS2_TARGET) @ls -l $(JFFS2_TARGET) JFFS2_COPYTO := $(strip $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_COPYTO))) |