summaryrefslogtreecommitdiff
path: root/distrib/alpha
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/alpha
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/alpha')
-rw-r--r--distrib/alpha/bsd.rd/Makefile7
-rw-r--r--distrib/alpha/common/Makefile.inc7
2 files changed, 6 insertions, 8 deletions
diff --git a/distrib/alpha/bsd.rd/Makefile b/distrib/alpha/bsd.rd/Makefile
index 543ada2e35b..684c7d41f61 100644
--- a/distrib/alpha/bsd.rd/Makefile
+++ b/distrib/alpha/bsd.rd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.21 2013/10/20 08:27:17 miod Exp $
+# $OpenBSD: Makefile,v 1.22 2016/10/14 18:44:19 deraadt Exp $
TOP= ${.CURDIR}/..
@@ -47,10 +47,9 @@ bsd.rd_unz: bsd ${IMAGE} rdsetroot
${.OBJDIR}/rdsetroot bsd.rd_unz ${IMAGE}
bsd:
- cd ${.CURDIR}/../../../sys/arch/alpha/conf && config ${RAMDISK}
cd ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK} && \
- ${MAKE} clean && COPTS=-Os exec ${MAKE}
- cp ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK}/bsd bsd
+ su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && env COPTS=-Os ${MAKE}'
+ cp -p ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK}/obj/bsd bsd
${IMAGE}: do_prep do_mount do_files do_umount
mv -f ${REALIMAGE} ${IMAGE}
diff --git a/distrib/alpha/common/Makefile.inc b/distrib/alpha/common/Makefile.inc
index 03854769180..f6dbf7a7a32 100644
--- a/distrib/alpha/common/Makefile.inc
+++ b/distrib/alpha/common/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.27 2015/09/19 10:44:01 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.28 2016/10/14 18:44:19 deraadt Exp $
TOP= ${.CURDIR}/..
@@ -73,10 +73,9 @@ bsd.rd: bsd ${IMAGE} rdsetroot
${.OBJDIR}/rdsetroot bsd.rd ${IMAGE}
bsd:
- cd ${.CURDIR}/../../../sys/arch/alpha/conf && config ${RAMDISK}
cd ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK} && \
- ${MAKE} clean && COPTS=-Os exec ${MAKE}
- cp ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK}/bsd bsd
+ su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && env COPTS=-Os ${MAKE}'
+ cp -p ${.CURDIR}/../../../sys/arch/alpha/compile/${RAMDISK}/obj/bsd bsd
${IMAGE}: do_prep do_mount do_files do_umount
mv -f ${REALIMAGE} ${IMAGE}