summaryrefslogtreecommitdiffstats
path: root/target/makedevs/makedevs.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-06-24 05:02:00 +0000
committerEric Andersen <andersen@codepoet.org>2005-06-24 05:02:00 +0000
commitafcdf8a01a2d54edb7a217f8c7c1e74e1fb8758b (patch)
tree5ca20b55bb4894ed6d91282e96eeaf2d77982b7f /target/makedevs/makedevs.mk
parente83529ad36233a604b165de9c31d56137651302b (diff)
downloadbuildroot-novena-afcdf8a01a2d54edb7a217f8c7c1e74e1fb8758b.tar.gz
buildroot-novena-afcdf8a01a2d54edb7a217f8c7c1e74e1fb8758b.zip
Use fakeroot and makedevs to fake mksquashfs into building properly setup file
permissions and device nodes into the target rootfs without needing to be root.
Diffstat (limited to 'target/makedevs/makedevs.mk')
-rw-r--r--target/makedevs/makedevs.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/makedevs/makedevs.mk b/target/makedevs/makedevs.mk
index f8675db2f..cfc19d0ec 100644
--- a/target/makedevs/makedevs.mk
+++ b/target/makedevs/makedevs.mk
@@ -15,7 +15,11 @@ $(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)
gcc -Wall -O2 makedevs.c -o makedevs
touch -c $(MAKEDEVS_DIR)/makedevs
-makedevs: $(MAKEDEVS_DIR)/makedevs
+$(STAGING_DIR)/bin/makedevs: $(MAKEDEVS_DIR)/makedevs
+ $(INSTALL) -m 755 $(MAKEDEVS_DIR)/makedevs $(STAGING_DIR)/bin/makedevs
+ touch -c $(STAGING_DIR)/bin/makedevs
+
+makedevs: $(STAGING_DIR)/bin/makedevs
makedevs-source: