diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-10-14 18:44:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-10-14 18:44:21 +0000 |
commit | 23a80e29c513664cb6797d99d47e527db9f1619b (patch) | |
tree | 56eed512fa766092195c78df722245f8ce92cc77 /distrib/loongson | |
parent | 645eff3a855254a1fd4271016d679ddf41bda9b5 (diff) |
Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.
Diffstat (limited to 'distrib/loongson')
-rw-r--r-- | distrib/loongson/ramdisk/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/distrib/loongson/ramdisk/Makefile b/distrib/loongson/ramdisk/Makefile index 680df09893b..976b4dbeceb 100644 --- a/distrib/loongson/ramdisk/Makefile +++ b/distrib/loongson/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2013/10/15 22:46:51 deraadt Exp $ +# $OpenBSD: Makefile,v 1.11 2016/10/14 18:44:19 deraadt Exp $ REV= ${OSrev} @@ -44,10 +44,9 @@ ${IMAGE}: rd_setup do_files rd_teardown .endif bsd: - cd ${TOP}/../../sys/arch/loongson/conf && config RAMDISK cd ${TOP}/../../sys/arch/loongson/compile/RAMDISK && \ - ${MAKE} clean && exec ${MAKE} - cp ${TOP}/../../sys/arch/loongson/compile/RAMDISK/bsd bsd + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + cp -p ${TOP}/../../sys/arch/loongson/compile/RAMDISK/obj/bsd bsd rd_setup: dd if=/dev/zero of=${IMAGE} bs=512 count=${NBLKS} |