Module Name: src
Committed By: martin
Date: Mon Aug 12 08:04:28 UTC 2019
Modified Files:
src/distrib/common: Makefile.mdset
src/distrib/evbarm/instkernel/instkernel: Makefile
Log Message:
Allow individual MDSETTARGETS/MDSET_SUFFIXES to define optional dependencies
between themselves.
Use that to make netbsd-RPI_INSTALL.img depend on netbsd-RPI_INSTALL.bin,
resolving the parallel build race.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/distrib/common/Makefile.mdset
cvs rdiff -u -r1.31 -r1.32 src/distrib/evbarm/instkernel/instkernel/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/common/Makefile.mdset
diff -u src/distrib/common/Makefile.mdset:1.45 src/distrib/common/Makefile.mdset:1.46
--- src/distrib/common/Makefile.mdset:1.45 Sun Aug 11 17:50:26 2019
+++ src/distrib/common/Makefile.mdset Mon Aug 12 08:04:28 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.mdset,v 1.45 2019/08/11 17:50:26 martin Exp $
+# $NetBSD: Makefile.mdset,v 1.46 2019/08/12 08:04:28 martin Exp $
#
# Makefile snippet to ${TOOL_MDSETIMAGE} file system images into kernels
#
@@ -94,7 +94,7 @@ _KERNEL.${_K}.${_F}:= ${_F}
.for _S _C in ${MDSET_SUFFIXES.${_F}} # {
CLEANFILES+= ${_KERNEL.${_K}.${_F}}.${_S}
-${_KERNEL.${_K}.${_F}}.${_S}: ${_KERNEL.${_K}.${_F}}
+${_KERNEL.${_K}.${_F}}.${_S}: ${_KERNEL.${_K}.${_F}} ${MDSET_.${_K}.${_F}.${_S}.deps}
.if defined(${_C})
${${_C}}
.else
Index: src/distrib/evbarm/instkernel/instkernel/Makefile
diff -u src/distrib/evbarm/instkernel/instkernel/Makefile:1.31 src/distrib/evbarm/instkernel/instkernel/Makefile:1.32
--- src/distrib/evbarm/instkernel/instkernel/Makefile:1.31 Sat May 18 07:33:10 2019
+++ src/distrib/evbarm/instkernel/instkernel/Makefile Mon Aug 12 08:04:28 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2019/05/18 07:33:10 skrll Exp $
+# $NetBSD: Makefile,v 1.32 2019/08/12 08:04:28 martin Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -15,6 +15,7 @@ MDSETTARGETS=
.if ${i} == "RPI_INSTALL"
MDSETTARGETS+= ${i} ${SSHRAMDISK} netbsd-${i}
MDSET_SUFFIXES.netbsd-${i}= bin create-bin img create-img
+MDSET_.RPI_INSTALL.netbsd-RPI_INSTALL.img.deps= netbsd-RPI_INSTALL.bin
.else
MDSETTARGETS+= ${i} ${RAMDISK} -
.endif