From ce5d0fa6344ecbdbb8642094267f71e2fd717741 Mon Sep 17 00:00:00 2001 From: kn Date: Mon, 26 Jul 2021 12:47:44 +0000 Subject: [PATCH] Pass make flags to kernel and lib builds Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes make(1) to both build the RAMDISK kernel and build libraries. Doing so does not propagate the flags specified to the ramdisk_cd invocation, which in turn means `-j4' for example is ignored and both kernel and libraries will not be built in parallel. Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough to separate flags, variable assignments and targets from each other and only pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar' does *not* pass `-C.' to change directories. (can be easily tested with `make -p ... | grep MFLAGS'.) This makes hacking on ramdisks/the installer much faster, espescially since the `bsd' target does `make clean' and therefore builds a new kernel every time. OK deraadt --- distrib/alpha/miniroot/Makefile | 6 +++--- distrib/amd64/ramdiskA/Makefile | 6 +++--- distrib/amd64/ramdisk_cd/Makefile | 6 +++--- distrib/arm64/ramdisk/Makefile | 6 +++--- distrib/armv7/ramdisk/Makefile | 6 +++--- distrib/hppa/ramdisk/Makefile | 6 +++--- distrib/i386/ramdisk/Makefile | 6 +++--- distrib/i386/ramdisk_cd/Makefile | 6 +++--- distrib/landisk/ramdisk/Makefile | 6 +++--- distrib/loongson/ramdisk/Makefile | 6 +++--- distrib/luna88k/ramdisk/Makefile | 6 +++--- distrib/macppc/ramdisk/Makefile | 6 +++--- distrib/octeon/ramdisk/Makefile | 6 +++--- distrib/powerpc64/ramdisk/Makefile | 6 +++--- distrib/riscv64/ramdisk/Makefile | 6 +++--- distrib/sparc64/miniroot/Makefile | 6 +++--- distrib/sparc64/ramdisk/Makefile | 6 +++--- distrib/sparc64/ramdiskB/Makefile | 6 +++--- 18 files changed, 54 insertions(+), 54 deletions(-) diff --git a/distrib/alpha/miniroot/Makefile b/distrib/alpha/miniroot/Makefile index 762599e4e3a..a2b26eb5234 100644 --- a/distrib/alpha/miniroot/Makefile +++ b/distrib/alpha/miniroot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.22 2021/02/14 17:14:42 semarie Exp $ +# $OpenBSD: Makefile,v 1.23 2021/07/26 12:47:44 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 5760 @@ -74,7 +74,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -92,7 +92,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all strip -R .eh_frame -R .shstrtab instbin instbin.conf: ${LISTS} diff --git a/distrib/amd64/ramdiskA/Makefile b/distrib/amd64/ramdiskA/Makefile index 9d37eb98bc9..5ba5d99d704 100644 --- a/distrib/amd64/ramdiskA/Makefile +++ b/distrib/amd64/ramdiskA/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.15 2021/02/14 17:14:42 semarie Exp $ +# $OpenBSD: Makefile,v 1.16 2021/07/26 12:47:44 kn Exp $ FS= floppy${OSrev}.img FSSIZE= 2880 @@ -44,7 +44,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -62,7 +62,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/amd64/ramdisk_cd/Makefile b/distrib/amd64/ramdisk_cd/Makefile index 70ae847b3e6..a21973f3a0f 100644 --- a/distrib/amd64/ramdisk_cd/Makefile +++ b/distrib/amd64/ramdisk_cd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.30 2021/02/14 17:14:42 semarie Exp $ +# $OpenBSD: Makefile,v 1.31 2021/07/26 12:47:45 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 9920 @@ -67,7 +67,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -85,7 +85,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/arm64/ramdisk/Makefile b/distrib/arm64/ramdisk/Makefile index a8484267eec..5dda462c0f4 100644 --- a/distrib/arm64/ramdisk/Makefile +++ b/distrib/arm64/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.22 2021/04/17 21:19:40 sthen Exp $ +# $OpenBSD: Makefile,v 1.23 2021/07/26 12:47:45 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 88064 @@ -81,7 +81,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -99,7 +99,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/armv7/ramdisk/Makefile b/distrib/armv7/ramdisk/Makefile index 1933368c3d8..6c79d9a5121 100644 --- a/distrib/armv7/ramdisk/Makefile +++ b/distrib/armv7/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.27 2019/05/03 20:03:58 deraadt Exp $ +# $OpenBSD: Makefile,v 1.28 2021/07/26 12:47:45 kn Exp $ MTREE= ${UTILS}/mtree.conf RAMDISK= RAMDISK @@ -17,7 +17,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -35,7 +35,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/hppa/ramdisk/Makefile b/distrib/hppa/ramdisk/Makefile index d7997d6dc60..7907b9724de 100644 --- a/distrib/hppa/ramdisk/Makefile +++ b/distrib/hppa/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.47 2021/02/14 17:11:02 semarie Exp $ +# $OpenBSD: Makefile,v 1.48 2021/07/26 12:47:45 kn Exp $ LIF= lif${OSrev}.img CDROM= cd${OSrev}.iso @@ -39,7 +39,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -57,7 +57,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/i386/ramdisk/Makefile b/distrib/i386/ramdisk/Makefile index 51c1bde245f..90f682a64d9 100644 --- a/distrib/i386/ramdisk/Makefile +++ b/distrib/i386/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.15 2021/02/15 06:59:03 deraadt Exp $ +# $OpenBSD: Makefile,v 1.16 2021/07/26 12:47:45 kn Exp $ FS= floppy${OSrev}.img FSSIZE= 2880 @@ -44,7 +44,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -62,7 +62,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/i386/ramdisk_cd/Makefile b/distrib/i386/ramdisk_cd/Makefile index 871cfdae768..220048b7c9e 100644 --- a/distrib/i386/ramdisk_cd/Makefile +++ b/distrib/i386/ramdisk_cd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.24 2021/02/14 17:14:42 semarie Exp $ +# $OpenBSD: Makefile,v 1.25 2021/07/26 12:47:45 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 8064 @@ -64,7 +64,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -82,7 +82,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/landisk/ramdisk/Makefile b/distrib/landisk/ramdisk/Makefile index a2edf62159f..bab3658555a 100644 --- a/distrib/landisk/ramdisk/Makefile +++ b/distrib/landisk/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.33 2021/01/05 15:10:43 deraadt Exp $ +# $OpenBSD: Makefile,v 1.34 2021/07/26 12:47:45 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 5120 @@ -41,7 +41,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -59,7 +59,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/loongson/ramdisk/Makefile b/distrib/loongson/ramdisk/Makefile index cbccb014853..48459c40b80 100644 --- a/distrib/loongson/ramdisk/Makefile +++ b/distrib/loongson/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.30 2021/02/14 17:11:02 semarie Exp $ +# $OpenBSD: Makefile,v 1.31 2021/07/26 12:47:46 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 18432 @@ -53,7 +53,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -71,7 +71,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/luna88k/ramdisk/Makefile b/distrib/luna88k/ramdisk/Makefile index 5c503bf104d..66486e96eff 100644 --- a/distrib/luna88k/ramdisk/Makefile +++ b/distrib/luna88k/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.31 2021/05/17 22:11:35 aoyama Exp $ +# $OpenBSD: Makefile,v 1.32 2021/07/26 12:47:46 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 8192 @@ -38,7 +38,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -56,7 +56,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/macppc/ramdisk/Makefile b/distrib/macppc/ramdisk/Makefile index e77c777c007..2cb618bee6d 100644 --- a/distrib/macppc/ramdisk/Makefile +++ b/distrib/macppc/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.50 2021/02/14 17:14:42 semarie Exp $ +# $OpenBSD: Makefile,v 1.51 2021/07/26 12:47:46 kn Exp $ CDROM= cd${OSrev}.iso MTREE= ${UTILS}/mtree.conf @@ -42,7 +42,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -60,7 +60,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/octeon/ramdisk/Makefile b/distrib/octeon/ramdisk/Makefile index f8bc4bc9734..adbc9a54841 100644 --- a/distrib/octeon/ramdisk/Makefile +++ b/distrib/octeon/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.17 2020/05/17 17:04:28 deraadt Exp $ +# $OpenBSD: Makefile,v 1.18 2021/07/26 12:47:46 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 24576 @@ -34,7 +34,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -52,7 +52,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/powerpc64/ramdisk/Makefile b/distrib/powerpc64/ramdisk/Makefile index 375933bb6b6..76071c8960c 100644 --- a/distrib/powerpc64/ramdisk/Makefile +++ b/distrib/powerpc64/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2020/07/05 21:57:23 kettenis Exp $ +# $OpenBSD: Makefile,v 1.3 2021/07/26 12:47:46 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 67584 @@ -51,7 +51,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -69,7 +69,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/riscv64/ramdisk/Makefile b/distrib/riscv64/ramdisk/Makefile index 6af67bbc7fb..c3aed053d45 100644 --- a/distrib/riscv64/ramdisk/Makefile +++ b/distrib/riscv64/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2021/05/19 23:15:21 drahn Exp $ +# $OpenBSD: Makefile,v 1.4 2021/07/26 12:47:46 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 67584 @@ -49,7 +49,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -70,7 +70,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/sparc64/miniroot/Makefile b/distrib/sparc64/miniroot/Makefile index d66d02dcbed..1c9f5a01901 100644 --- a/distrib/sparc64/miniroot/Makefile +++ b/distrib/sparc64/miniroot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.27 2021/02/14 17:14:42 semarie Exp $ +# $OpenBSD: Makefile,v 1.28 2021/07/26 12:47:47 kn Exp $ FS= miniroot${OSrev}.img FSSIZE= 6400 @@ -70,7 +70,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -88,7 +88,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/sparc64/ramdisk/Makefile b/distrib/sparc64/ramdisk/Makefile index cdbff9a2868..93f71ee9e42 100644 --- a/distrib/sparc64/ramdisk/Makefile +++ b/distrib/sparc64/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.53 2021/02/14 17:14:42 semarie Exp $ +# $OpenBSD: Makefile,v 1.54 2021/07/26 12:47:47 kn Exp $ FS= floppy${OSrev}.img FSSIZE= 2880 @@ -43,7 +43,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -61,7 +61,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf diff --git a/distrib/sparc64/ramdiskB/Makefile b/distrib/sparc64/ramdiskB/Makefile index 5499a067cde..355fb7d2624 100644 --- a/distrib/sparc64/ramdiskB/Makefile +++ b/distrib/sparc64/ramdiskB/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.49 2021/02/14 17:14:42 semarie Exp $ +# $OpenBSD: Makefile,v 1.50 2021/07/26 12:47:47 kn Exp $ FS= floppyB${OSrev}.img FSSIZE= 2880 @@ -43,7 +43,7 @@ bsd.rd: mr.fs bsd bsd: cd ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK} && \ - su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' + su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE} ${MFLAGS}' cp -p ${.CURDIR}/../../../sys/arch/${MACHINE}/compile/${RAMDISK}/obj/bsd bsd mr.fs: instbin @@ -61,7 +61,7 @@ instbin.mk instbin.cache instbin.c: instbin.conf -c instbin.c -e instbin -m instbin.mk instbin.conf instbin: instbin.mk instbin.cache instbin.c - ${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all + ${MAKE} ${MFLAGS} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all instbin.conf: ${LISTS} awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf -- 2.20.1