summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-01-15 11:42:54 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-01-15 11:42:54 +0100
commitf3d2b753b0857e138033f1c2416caa46cd7c32da (patch)
tree27983399dfcbedac20bd5ae50ca3d0e1348566fe
parent3dc180799c659b0a5006745f18562285d452a2c7 (diff)
fix initramfs generation on Darwin with a small find wrapper
-rw-r--r--mk/image.mk4
-rwxr-xr-xscripts/find13
2 files changed, 15 insertions, 2 deletions
diff --git a/mk/image.mk b/mk/image.mk
index 4ea8ab235..fcb0da339 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -96,8 +96,8 @@ ${BIN_DIR}/${INITRAMFS}_list: ${TARGET_DIR}
echo "nod /dev/console 0644 0 0 c 5 1"; \
echo "nod /dev/tty 0644 0 0 c 5 0"; \
for i in 0 1 2 3 4; do \
- echo "nod /dev/tty$$i 0644 0 0 c 4 $i"; \
- done \
+ echo "nod /dev/tty$$i 0644 0 0 c 4 $$$$i"; \
+ done; \
echo "nod /dev/systty 0644 0 0 c 4 0"; \
echo "nod /dev/null 0644 0 0 c 1 3"; \
echo "nod /dev/ram 0655 0 0 b 1 1"; \
diff --git a/scripts/find b/scripts/find
new file mode 100755
index 000000000..3990e4f7f
--- /dev/null
+++ b/scripts/find
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+os=$(uname)
+case $os in
+ Darwin)
+ /opt/local/libexec/gnubin/find "$@"
+ ;;
+ *)
+ find "$@"
+ ;;
+esac