summaryrefslogtreecommitdiff
path: root/target/makedevs/makedevs.mk
diff options
context:
space:
mode:
Diffstat (limited to 'target/makedevs/makedevs.mk')
-rw-r--r--target/makedevs/makedevs.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/makedevs/makedevs.mk b/target/makedevs/makedevs.mk
new file mode 100644
index 000000000..f8675db2f
--- /dev/null
+++ b/target/makedevs/makedevs.mk
@@ -0,0 +1,27 @@
+#############################################################
+#
+# build makedevs to run on the build system, in order to create
+# device nodes and whatnot for the target device, in conjunction
+# with fakeroot.
+#
+#############################################################
+MAKEDEVS_DIR=$(BUILD_DIR)/makedevs
+
+$(MAKEDEVS_DIR)/makedevs.c:
+ mkdir $(MAKEDEVS_DIR)
+ cp target/makedevs/makedevs.c $(MAKEDEVS_DIR)
+
+$(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)
+ gcc -Wall -O2 makedevs.c -o makedevs
+ touch -c $(MAKEDEVS_DIR)/makedevs
+
+makedevs: $(MAKEDEVS_DIR)/makedevs
+
+makedevs-source:
+
+makedevs-clean:
+ -rm -rf $(MAKEDEVS_DIR)
+
+makedevs-dirclean:
+ rm -rf $(MAKEDEVS_DIR)
+