summaryrefslogtreecommitdiff
path: root/distrib/armv7/ramdisk/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/armv7/ramdisk/Makefile')
-rw-r--r--distrib/armv7/ramdisk/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/distrib/armv7/ramdisk/Makefile b/distrib/armv7/ramdisk/Makefile
index eda91e23793..fae4c651ad9 100644
--- a/distrib/armv7/ramdisk/Makefile
+++ b/distrib/armv7/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.14 2016/06/05 15:12:56 jsg Exp $
+# $OpenBSD: Makefile,v 1.15 2016/10/14 18:44:19 deraadt Exp $
REV= ${OSrev}
@@ -46,10 +46,9 @@ ALLBSDRD= ${BSD_RD}
all: ${ALLBSDRD}
bsd:
- cd ${TOP}/../../sys/arch/armv7/conf && config RAMDISK
cd ${TOP}/../../sys/arch/armv7/compile/RAMDISK && \
- ${MAKE} clean && exec ${MAKE}
- cp ${TOP}/../../sys/arch/armv7/compile/RAMDISK/bsd bsd
+ su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}'
+ cp -p ${TOP}/../../sys/arch/armv7/compile/RAMDISK/obj/bsd bsd
${BSD_RD}: ${CBIN} ${IMAGE} bsd rdsetroot
cp bsd ${BSD_RD}