summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-10-10 10:34:41 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-10-10 10:34:41 +0000
commit4d14721bb82323e97f6f934a4957a9b8706e3106 (patch)
treea54ff0a627d1188613fe78f3d5da685812bedfe4 /distrib
parent62cd04e2e3f25962dc0617f023483a30f50edfc8 (diff)
make RAMDISK kernel for PowerPC install.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/powerpc/list2sh.awk36
-rw-r--r--distrib/powerpc/miniroot/Makefile2
-rw-r--r--distrib/powerpc/runlist.sh4
3 files changed, 37 insertions, 5 deletions
diff --git a/distrib/powerpc/list2sh.awk b/distrib/powerpc/list2sh.awk
index 43008da5be9..a14e783031d 100644
--- a/distrib/powerpc/list2sh.awk
+++ b/distrib/powerpc/list2sh.awk
@@ -1,4 +1,4 @@
-# $NetBSD: list2sh.awk,v 1.1 1995/07/18 04:12:59 briggs Exp $
+# $OpenBSD: list2sh.awk,v 1.2 1997/10/10 10:34:39 pefo Exp $
BEGIN {
printf("cd ${CURDIR}\n");
@@ -10,12 +10,44 @@ BEGIN {
}
$1 == "COPY" {
printf("echo '%s'\n", $0);
+ printf("rm -fr ${TARGDIR}/%s\n", $3);
printf("cp %s ${TARGDIR}/%s\n", $2, $3);
next;
}
$1 == "LINK" {
printf("echo '%s'\n", $0);
- printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $3);
+ for (i = 3; i <= NF; i++) {
+ printf("rm -f ${TARGDIR}/%s\n", $i);
+ printf("(cd ${TARGDIR}; ln %s %s)\n", $2, $i);
+ }
+ next;
+}
+$1 == "SYMLINK" {
+ printf("echo '%s'\n", $0);
+ for (i = 3; i <= NF; i++) {
+ printf("rm -f ${TARGDIR}/%s\n", $i);
+ printf("(cd ${TARGDIR}; ln -s %s %s)\n", $2, $i);
+ }
+ next;
+}
+$1 == "ARGVLINK" {
+ # crunchgen directive; ignored here
+ next;
+}
+$1 == "SRCDIRS" {
+ # crunchgen directive; ignored here
+ next;
+}
+$1 == "CRUNCHSPECIAL" {
+ # crunchgen directive; ignored here
+ next;
+}
+$1 == "COPYDIR" {
+ printf("echo '%s'\n", $0);
+ printf("(cd ${TARGDIR}/%s && find . ! -name . | xargs /bin/rm -rf)\n",
+ $3);
+ printf("(cd %s && find . ! -name . | cpio -pdamu ${TARGDIR}/%s)\n", $2,
+ $3);
next;
}
$1 == "SPECIAL" {
diff --git a/distrib/powerpc/miniroot/Makefile b/distrib/powerpc/miniroot/Makefile
index c7f10acbfd5..8258390a71c 100644
--- a/distrib/powerpc/miniroot/Makefile
+++ b/distrib/powerpc/miniroot/Makefile
@@ -41,7 +41,7 @@ bsd: ${KERNEL}
do_prep: ${CBIN} do_unconfig
sh ${.CURDIR}/start_rdconfig.sh ${RDEV} ${NBLKS}
- dd if=/usr/mdec/sdboot of=${CDEV}
+# dd if=/usr/mdec/sdboot of=${CDEV}
disklabel -w ${CDEV} ${DISKTYPE}
do_mount:
diff --git a/distrib/powerpc/runlist.sh b/distrib/powerpc/runlist.sh
index 8693fe51865..5d31dcf2ed3 100644
--- a/distrib/powerpc/runlist.sh
+++ b/distrib/powerpc/runlist.sh
@@ -1,10 +1,10 @@
-# $NetBSD: runlist.sh,v 1.1 1995/07/18 04:13:01 briggs Exp $
+# $OpenBSD: runlist.sh,v 1.2 1997/10/10 10:34:39 pefo Exp $
if [ "X$1" = "X-d" ]; then
SHELLCMD=cat
shift
else
- SHELLCMD="sh"
+ SHELLCMD="sh -e"
fi
( while [ "X$1" != "X" ]; do