瀏覽代碼

fix initramfs generation on Darwin with a small find wrapper

Waldemar Brodkorb 13 年之前
父節點
當前提交
f3d2b753b0
共有 2 個文件被更改,包括 15 次插入2 次删除
  1. 2 2
      mk/image.mk
  2. 13 0
      scripts/find

+ 2 - 2
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"; \

+ 13 - 0
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