Change sets so the differing toolchain bits only (not the complete toolchain
at the moment) are pulled out into tc.mi and tc.old files. tc.mi has any files which are in the new toolchain only and tc.old contains the reverse (files which only existed in the old toolchain). The remainder of the toolchain that is common between both old and new is still contained in the various mi/md files. Check for USE_NEW_TOOLCHAIN=yes in makeflist to determine which tc files to pull in if they exist. XXX - All the toolchain bits should eventually be pulled out into separate lists as tc.mi and tc.<arch>. Leaving it for now until the new toolchain is fully integrated on all ports.
This commit is contained in:
parent
37e7a6a0a9
commit
6289ed7a3e
@ -1,4 +1,4 @@
|
||||
# $NetBSD: README,v 1.4 2000/06/20 06:00:28 thorpej Exp $
|
||||
# $NetBSD: README,v 1.5 2001/10/20 06:11:21 jmc Exp $
|
||||
|
||||
To: "NetBSD Port Maintainers"
|
||||
Subject: distribution sets, etc...
|
||||
@ -42,6 +42,15 @@ and 'misc' sets, but that's explained later.)
|
||||
There is one machine-independent file, named "mi". There are
|
||||
N machine-dependent files (one per architecture), named "md.${ARCH}".
|
||||
|
||||
XXX - Temporarily (while USE_NEW_TOOLCHAIN is in effect) there are also tc.mi
|
||||
and tc.old files in some of the set lists. tc.mi lists files in the new
|
||||
toolchain that didn't exist in the old toolchain. tc.old lists files removed
|
||||
and aren't present in the new toolchain. All other toolchain information was
|
||||
left for now in the various mi/md files. The makeflist script will check
|
||||
for USE_NEW_TOOLCHAIN and pull the appropriate one into place. Once all
|
||||
ports are converted to the new toolchain the entire toolchain should be pulled
|
||||
into tc.mi and/or tc.${MACHINE} and everything in tc.old moved to obsolete.
|
||||
|
||||
the sets are as follows:
|
||||
|
||||
base: the base binary set. excludes everything described
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: makeflist,v 1.35 2001/09/08 11:09:26 thomas Exp $
|
||||
# $NetBSD: makeflist,v 1.36 2001/10/20 06:11:21 jmc Exp $
|
||||
#
|
||||
# Print out the files in some or all lists.
|
||||
# Usage: makeflist [-b] [-x] [-a arch] [-m machine] [-s setsdir] [setname ...]
|
||||
@ -10,6 +10,7 @@
|
||||
: ${MAKE=make}
|
||||
machine=${MACHINE:-`printf 'xxx:\n\techo ${MACHINE}' | $MAKE -s -f-`}
|
||||
arch=${MACHINE_ARCH:-`printf 'xxx:\n\techo ${MACHINE_ARCH}' | $MAKE -s -f-`}
|
||||
tc=${USE_NEW_TOOLCHAIN:-`printf '.include <bsd.own.mk>\nxxx:\n\techo ${USE_NEW_TOOLCHAIN}' | /usr/bin/make -m /usr/src/share/mk -s -f-`}
|
||||
setd=`pwd`
|
||||
nlists="base comp etc games man misc text"
|
||||
xlists="xbase xcomp xcontrib xfont xserver xmisc"
|
||||
@ -96,4 +97,13 @@ for setname in $lists; do
|
||||
cat $setd/lists/$setname/lint.mi
|
||||
fi
|
||||
fi
|
||||
if [ "$tc" = "yes" ]; then
|
||||
if [ -f $setd/lists/$setname/tc.mi ]; then
|
||||
cat $setd/lists/$setname/tc.mi
|
||||
fi
|
||||
else
|
||||
if [ -f $setd/lists/$setname/tc.old ]; then
|
||||
cat $setd/lists/$setname/tc.old
|
||||
fi
|
||||
fi
|
||||
done | egrep -v '^#' | awk -- '{print $1}' | sort -u
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.own.mk,v 1.188 2001/10/20 06:05:00 jmc Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.189 2001/10/20 06:11:21 jmc Exp $
|
||||
|
||||
.if !defined(_BSD_OWN_MK_)
|
||||
_BSD_OWN_MK_=1
|
||||
@ -10,9 +10,13 @@ MAKECONF?= /etc/mk.conf
|
||||
.endif
|
||||
|
||||
# Temporary; this will become default when all platforms have migrated.
|
||||
.if defined(USE_NEW_TOOLCHAIN) && ${USE_NEW_TOOLCHAIN} == "no"
|
||||
.undef USE_NEW_TOOLCHAIN # unset
|
||||
.else
|
||||
.if ${MACHINE_ARCH} == "i386" || \
|
||||
${MACHINE_ARCH} == "sparc64"
|
||||
USE_NEW_TOOLCHAIN= # set
|
||||
USE_NEW_TOOLCHAIN=yes # set
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(BSD_PKG_MK) || !defined(USE_NEW_TOOLCHAIN)
|
||||
|
Loading…
Reference in New Issue
Block a user