summaryrefslogtreecommitdiff
path: root/distrib/sparc64/ramdiskB
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2016-10-14 18:44:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2016-10-14 18:44:21 +0000
commit23a80e29c513664cb6797d99d47e527db9f1619b (patch)
tree56eed512fa766092195c78df722245f8ce92cc77 /distrib/sparc64/ramdiskB
parent645eff3a855254a1fd4271016d679ddf41bda9b5 (diff)
Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required. much help from natano and tb.
Diffstat (limited to 'distrib/sparc64/ramdiskB')
-rw-r--r--distrib/sparc64/ramdiskB/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/distrib/sparc64/ramdiskB/Makefile b/distrib/sparc64/ramdiskB/Makefile
index d8786462b9a..4cad08127a0 100644
--- a/distrib/sparc64/ramdiskB/Makefile
+++ b/distrib/sparc64/ramdiskB/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.23 2014/11/26 08:18:25 stsp Exp $
+# $OpenBSD: Makefile,v 1.24 2016/10/14 18:44:20 deraadt Exp $
TOP= ${.CURDIR}/..
@@ -81,10 +81,9 @@ ${IMAGE}: rd_setup do_files rd_teardown
.endif
bsd:
- cd ${TOP}/../../sys/arch/sparc64/conf && config ${KERNEL}
cd ${TOP}/../../sys/arch/sparc64/compile/${KERNEL} && \
- ${MAKE} clean && COPTS=-Os exec ${MAKE}
- cp ${TOP}/../../sys/arch/sparc64/compile/${KERNEL}/bsd bsd
+ su ${BUILDUSER} '${MAKE} config && ${MAKE} clean && env COPTS=-Os ${MAKE}'
+ cp -p ${TOP}/../../sys/arch/sparc64/compile/${KERNEL}/obj/bsd bsd
rd_setup:
dd if=/dev/zero of=${IMAGE} bs=512 count=${NBLKS}