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/cramfs/cramfs.mk | |
parent | 1172dbb8b15c2ccddfa9492850d2f6fbb61e2263 (diff) | |
download | buildroot-novena-d1345f067e18a2967638eb888c7ff5010d523acf.tar.gz buildroot-novena-d1345f067e18a2967638eb888c7ff5010d523acf.zip |
Allow packages to use fakeroot. To accomodate this, convert all
target filesystem creation tools to also use fakeroot.
Diffstat (limited to 'target/cramfs/cramfs.mk')
-rw-r--r-- | target/cramfs/cramfs.mk | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/target/cramfs/cramfs.mk b/target/cramfs/cramfs.mk index a53cbff4f..2964dddd3 100644 --- a/target/cramfs/cramfs.mk +++ b/target/cramfs/cramfs.mk @@ -64,8 +64,24 @@ cramfsroot: cramfs @rm -rf $(TARGET_DIR)/usr/man @rm -rf $(TARGET_DIR)/usr/info /sbin/ldconfig -r $(TARGET_DIR) - $(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_ENDIANNESS) -D \ - target/generic/device_table.txt $(TARGET_DIR) $(IMAGE).cramfs + # 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 mkcramfs believes the previous fakery + $(STAGING_DIR)/usr/bin/fakeroot \ + -i $(STAGING_DIR)/fakeroot.env \ + -s $(STAGING_DIR)/fakeroot.env -- \ + $(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_ENDIANNESS) \ + $(TARGET_DIR) $(IMAGE).cramfs cramfsroot-source: cramfs-source |