Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src ensure that all include dirs are created before make include...
details: https://anonhg.NetBSD.org/src/rev/12dcd201c794
branches: trunk
changeset: 448981:12dcd201c794
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Feb 17 05:29:08 2019 +0000
description:
ensure that all include dirs are created before make includes runs.
separate the compat vs per-arch -ness of the mtree lists. merge the
mips64 mtree files into a single file.
diffstat:
distrib/sets/lists/comp/md.sparc64 | 5 +++--
etc/mtree/Makefile | 37 +++++++++++++++++++++++++++++--------
etc/mtree/NetBSD.compat.mips64 | 5 +++++
etc/mtree/NetBSD.compat.mips64eb | 5 -----
etc/mtree/NetBSD.compat.mips64el | 5 -----
etc/mtree/NetBSD.dist.aarch64 | 3 +++
etc/mtree/NetBSD.dist.arm | 3 +++
etc/mtree/NetBSD.dist.ia64 | 3 +++
etc/mtree/NetBSD.dist.mips | 3 +++
etc/mtree/NetBSD.dist.powerpc | 3 +++
etc/mtree/NetBSD.dist.sh3 | 3 +++
etc/mtree/NetBSD.dist.sparc | 4 ++++
etc/mtree/NetBSD.dist.sparc64 | 4 ++++
13 files changed, 63 insertions(+), 20 deletions(-)
diffs (164 lines):
diff -r 742227f46aeb -r 12dcd201c794 distrib/sets/lists/comp/md.sparc64
--- a/distrib/sets/lists/comp/md.sparc64 Sun Feb 17 05:21:49 2019 +0000
+++ b/distrib/sets/lists/comp/md.sparc64 Sun Feb 17 05:29:08 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: md.sparc64,v 1.207 2019/02/14 20:42:40 christos Exp $
+# $NetBSD: md.sparc64,v 1.208 2019/02/17 05:29:08 mrg Exp $
./usr/include/g++/bits/sparc comp-c-include
+./usr/include/g++/bits/sparc comp-c-include compat
./usr/include/g++/bits/sparc/c++config.h comp-c-include gcc,compat
-./usr/include/g++/bits/sparc64 comp-c-include
+./usr/include/g++/bits/sparc64 comp-c-include compat
./usr/include/g++/bits/sparc64/c++config.h comp-c-include gcc,compat
./usr/include/gcc-4.5/tgmath.h comp-obsolete obsolete
./usr/include/gcc-4.8/tgmath.h comp-obsolete obsolete
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/Makefile
--- a/etc/mtree/Makefile Sun Feb 17 05:21:49 2019 +0000
+++ b/etc/mtree/Makefile Sun Feb 17 05:29:08 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2019/02/09 21:43:23 mrg Exp $
+# $NetBSD: Makefile,v 1.40 2019/02/17 05:29:08 mrg Exp $
.include <bsd.own.mk>
@@ -6,12 +6,15 @@
EXTRA_DIST_FILES= NetBSD.dist.Xorg
.endif
-# XXX these are only used by compat currently, but they could be used
-# by something else; this may need to be fixed properly in the future.
+# Derived from MACHINE_CPU, but keeping 32/64bit for most.
+MTREE_MACHINE_ARCH=${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips64/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/arm.*/arm/:C/earm.*/arm/:S/earm/arm/:S/aarch64eb/aarch64/:S/or1knd/or1k/}
+
+# The compat specific files
+
.if defined(MKCOMPAT) && ${MKCOMPAT} != "no"
.include "${NETBSDSRCDIR}/compat/archdirs.mk"
-.if exists(NetBSD.compat.${MACHINE_ARCH})
-EXTRA_DIST_FILES+= NetBSD.compat.${MACHINE_ARCH}
+.if exists(NetBSD.compat.${MTREE_MACHINE_ARCH})
+EXTRA_DIST_FILES+= NetBSD.compat.${MTREE_MACHINE_ARCH}
.endif
EXTRA_DIST_FILES+= NetBSD.dist.compat # autogenerated
.if defined(MKCOMPATX11) && ${MKCOMPATX11} != "no" && ${MKX11} != "no"
@@ -19,14 +22,32 @@
.endif
.endif
-.if exists(NetBSD.dist.${MACHINE_ARCH})
-EXTRA_DIST_FILES+= NetBSD.dist.${MACHINE_ARCH}
+
+# Platform specific files.
+# First we grab the mtree-specific, then either the MACHINE_ARCH or
+# MACHINE_CPU files, and finally the MACHINE files, as long as they
+# aren't the same files.
+
+.if exists(NetBSD.dist.${MTREE_MACHINE_ARCH})
+EXTRA_DIST_FILES+= NetBSD.dist.${MTREE_MACHINE_ARCH}
.endif
-.if exists(NetBSD.dist.${MACHINE})
+.if empty(MTREE_MACHINE_ARCH:M${MACHINE_ARCH}) && \
+ exists(NetBSD.dist.${MACHINE_ARCH})
+EXTRA_DIST_FILES+= NetBSD.dist.${MACHINE_ARCH}
+.elif empty(MTREE_MACHINE_ARCH:M${MACHINE_CPU}) && \
+ exists(NetBSD.dist.${MACHINE_CPU})
+EXTRA_DIST_FILES+= NetBSD.dist.${MACHINE_CPU}
+.endif
+
+.if empty(MTREE_MACHINE_ARCH:M${MACHINE}) && \
+ exists(NetBSD.dist.${MACHINE})
EXTRA_DIST_FILES+= NetBSD.dist.${MACHINE}
.endif
+
+# The build specific files.
+
.if ${MKATF} != "no"
EXTRA_DIST_FILES+= NetBSD.dist.tests
.if defined(MKCOMPATTESTS) && ${MKCOMPATTESTS} != "no"
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.compat.mips64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.compat.mips64 Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: NetBSD.compat.mips64,v 1.1 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/g++/bits/mips64
+./usr/include/g++/bits/mips32
+./usr/include/g++/bits/mipso32
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.compat.mips64eb
--- a/etc/mtree/NetBSD.compat.mips64eb Sun Feb 17 05:21:49 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: NetBSD.compat.mips64eb,v 1.1 2019/02/09 21:43:23 mrg Exp $
-
-./usr/include/g++/bits/mips64
-./usr/include/g++/bits/mips32
-./usr/include/g++/bits/mipso32
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.compat.mips64el
--- a/etc/mtree/NetBSD.compat.mips64el Sun Feb 17 05:21:49 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: NetBSD.compat.mips64el,v 1.1 2019/02/09 21:43:23 mrg Exp $
-
-./usr/include/g++/bits/mips64
-./usr/include/g++/bits/mips32
-./usr/include/g++/bits/mipso32
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.dist.aarch64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.dist.aarch64 Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: NetBSD.dist.aarch64,v 1.6 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/aarch64
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.dist.arm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.dist.arm Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: NetBSD.dist.arm,v 1.1 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/arm
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.dist.ia64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.dist.ia64 Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: NetBSD.dist.ia64,v 1.1 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/ia64
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.dist.mips
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.dist.mips Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: NetBSD.dist.mips,v 1.1 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/mips
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.dist.powerpc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.dist.powerpc Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: NetBSD.dist.powerpc,v 1.1 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/powerpc
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.dist.sh3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.dist.sh3 Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: NetBSD.dist.sh3,v 1.1 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/sh3
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.dist.sparc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.dist.sparc Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,4 @@
+# $NetBSD: NetBSD.dist.sparc,v 1.1 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/sparc
+./usr/include/sparc64
diff -r 742227f46aeb -r 12dcd201c794 etc/mtree/NetBSD.dist.sparc64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/mtree/NetBSD.dist.sparc64 Sun Feb 17 05:29:08 2019 +0000
@@ -0,0 +1,4 @@
+# $NetBSD: NetBSD.dist.sparc64,v 1.12 2019/02/17 05:29:08 mrg Exp $
+
+./usr/include/sparc
+./usr/include/sparc64
Home |
Main Index |
Thread Index |
Old Index