Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC
Remove support for building extsrc/: 1. Makefile: remove do-extsrc target. 2. build.sh: remove options -y and -Y extsrcdir. 3. distrib/sets: remove support for extsrc in various tools including the options -L ext and -y, and the extsrc sets. 4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc) 5. bsd.own.mk and various Makefiles: remove support for extsrc/, EXTSRCSRCDIR, MKEXTSRC. As proposed on tech-kern and tech-userlevel on 2022-01-07 and followed up on 2022-08-21.
This commit is contained in:
parent
c2175a7976
commit
dac6dcb8de
14
Makefile
14
Makefile
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.334 2022/03/19 14:35:13 rillig Exp $
|
||||
# $NetBSD: Makefile,v 1.335 2022/08/21 07:10:03 lukem Exp $
|
||||
|
||||
#
|
||||
# This is the top-level makefile for building NetBSD. For an outline of
|
||||
|
@ -99,7 +99,6 @@
|
|||
# do-x11: builds and installs X11 tools and libraries
|
||||
# from src/external/mit/xorg if ${MKX11} != "no".
|
||||
# do-build: builds and installs the entire system.
|
||||
# do-extsrc: builds and installs extsrc if ${MKEXTSRC} != "no".
|
||||
# do-obsolete: installs the obsolete sets (for the postinstall-* targets).
|
||||
#
|
||||
|
||||
|
@ -251,9 +250,6 @@ BUILDTARGETS+= do-x11
|
|||
.endif
|
||||
.if !defined(NOBINARIES)
|
||||
BUILDTARGETS+= do-build
|
||||
.if ${MKEXTSRC} != "no"
|
||||
BUILDTARGETS+= do-extsrc
|
||||
.endif
|
||||
BUILDTARGETS+= do-obsolete
|
||||
.endif
|
||||
|
||||
|
@ -514,14 +510,6 @@ do-x11: .PHONY .MAKE
|
|||
@false
|
||||
.endif
|
||||
|
||||
do-extsrc: .PHONY .MAKE
|
||||
.if ${MKEXTSRC} != "no"
|
||||
${MAKEDIRTARGET} extsrc build
|
||||
.else
|
||||
@echo "MKEXTSRC is not enabled"
|
||||
@false
|
||||
.endif
|
||||
|
||||
do-obsolete: .PHONY .MAKE
|
||||
${MAKEDIRTARGET} etc install-obsolete-lists
|
||||
|
||||
|
|
21
build.sh
21
build.sh
|
@ -1,5 +1,5 @@
|
|||
#! /usr/bin/env sh
|
||||
# $NetBSD: build.sh,v 1.363 2022/08/15 10:06:00 lukem Exp $
|
||||
# $NetBSD: build.sh,v 1.364 2022/08/21 07:10:03 lukem Exp $
|
||||
#
|
||||
# Copyright (c) 2001-2022 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -1027,10 +1027,10 @@ synopsis()
|
|||
{
|
||||
cat <<_usage_
|
||||
|
||||
Usage: ${progname} [-EnoPRrUuxy] [-a arch] [-B buildid] [-C cdextras]
|
||||
Usage: ${progname} [-EnoPRrUux] [-a arch] [-B buildid] [-C cdextras]
|
||||
[-c compiler] [-D dest] [-j njob] [-M obj] [-m mach]
|
||||
[-N noisy] [-O obj] [-R release] [-S seed] [-T tools]
|
||||
[-V var=[value]] [-w wrapper] [-X x11src] [-Y extsrcsrc]
|
||||
[-V var=[value]] [-w wrapper] [-X x11src]
|
||||
[-Z var]
|
||||
operation [...]
|
||||
${progname} ( -h | -? )
|
||||
|
@ -1139,8 +1139,6 @@ help()
|
|||
[Default: \${TOOLDIR}/bin/${toolprefix}make-\${MACHINE}]
|
||||
-X x11src Set X11SRCDIR to x11src. [Default: /usr/xsrc]
|
||||
-x Set MKX11=yes; build X11 from X11SRCDIR
|
||||
-Y extsrcsrc Set EXTSRCSRCDIR to extsrcsrc. [Default: /usr/extsrc]
|
||||
-y Set MKEXTSRC=yes; build extsrc from EXTSRCSRCDIR
|
||||
-Z var Unset ("zap") variable 'var'.
|
||||
-? Print this help message, and exit.
|
||||
|
||||
|
@ -1161,7 +1159,7 @@ usage()
|
|||
|
||||
parseoptions()
|
||||
{
|
||||
opts='a:B:C:c:D:Ehj:M:m:N:nO:oPR:rS:T:UuV:w:X:xY:yZ:'
|
||||
opts='a:B:C:c:D:Ehj:M:m:N:nO:oPR:rS:T:UuV:w:X:xZ:'
|
||||
opt_a=false
|
||||
opt_m=false
|
||||
|
||||
|
@ -1355,15 +1353,6 @@ parseoptions()
|
|||
setmakeenv MKX11 yes
|
||||
;;
|
||||
|
||||
-Y)
|
||||
eval ${optargcmd}; resolvepath OPTARG
|
||||
setmakeenv EXTSRCSRCDIR "${OPTARG}"
|
||||
;;
|
||||
|
||||
-y)
|
||||
setmakeenv MKEXTSRC yes
|
||||
;;
|
||||
|
||||
-Z)
|
||||
eval ${optargcmd}
|
||||
# XXX: consider restricting which variables can be unset?
|
||||
|
@ -2018,7 +2007,7 @@ createmakewrapper()
|
|||
eval cat <<EOF ${makewrapout}
|
||||
#! ${HOST_SH}
|
||||
# Set proper variables to allow easy "make" building of a NetBSD subtree.
|
||||
# Generated from: \$NetBSD: build.sh,v 1.363 2022/08/15 10:06:00 lukem Exp $
|
||||
# Generated from: \$NetBSD: build.sh,v 1.364 2022/08/21 07:10:03 lukem Exp $
|
||||
# with these arguments: ${_args}
|
||||
#
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.107 2019/03/10 11:04:08 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.108 2022/08/21 07:10:03 lukem Exp $
|
||||
|
||||
# Experimental RCS METALOG versioning
|
||||
# (Needs host's rcs(1) commands)
|
||||
|
@ -50,16 +50,10 @@ MAKETARS_FLAGS+= -T "${MKREPRO_TIMESTAMP}"
|
|||
.if ${MKX11} != "no"
|
||||
MAKESRCTARS_X11_FLAGS= -x ${X11SRCDIR}
|
||||
.endif
|
||||
.if ${MKEXTSRC} != "no"
|
||||
MAKESRCTARS_EXTSRC_FLAGS= -y ${EXTSRCSRCDIR}
|
||||
.endif
|
||||
.if ${MKX11} != "no"
|
||||
MAKEFLIST_X11_FLAGS= ,x
|
||||
.endif
|
||||
.if ${MKEXTSRC} != "no"
|
||||
MAKEFLIST_EXTSRC_FLAGS= ,ext
|
||||
.endif
|
||||
MAKEFLIST_FLAGS= -L base${MAKEFLIST_X11_FLAGS}${MAKEFLIST_EXTSRC_FLAGS}
|
||||
MAKEFLIST_FLAGS= -L base${MAKEFLIST_X11_FLAGS}
|
||||
MAKESRCTARS_FLAGS= -N ${NETBSDSRCDIR}/etc
|
||||
|
||||
.if ${MAKEVERBOSE} < 2
|
||||
|
@ -185,9 +179,6 @@ checkflist: .PRECIOUS .PHONY check_DESTDIR sanitise_METALOG
|
|||
checkflist-x11: .PHONY check_DESTDIR
|
||||
${SETSCMD} ./checkflist -x ${CHECKFLIST_FLAGS}
|
||||
|
||||
checkflist-extsrc: .PHONY check_DESTDIR
|
||||
${SETSCMD} ./checkflist -y ${CHECKFLIST_FLAGS}
|
||||
|
||||
.if defined(DESTDIR) && ${DESTDIR} != ""
|
||||
checkflist_if_DESTDIR: checkflist
|
||||
.else
|
||||
|
@ -251,7 +242,7 @@ makesrctars: .PRECIOUS .PHONY check_RELEASEDIR
|
|||
${_MKMSG_CREATE} "source tar files"
|
||||
mkdir -p ${SOURCETARDIR}
|
||||
${SETSCMD} ./makesrctars ${MAKESRCTARS_FLAGS} \
|
||||
${MAKESRCTARS_X11_FLAGS} ${MAKESRCTARS_EXTSRC_FLAGS} \
|
||||
${MAKESRCTARS_X11_FLAGS} \
|
||||
${NETBSDSRCDIR} ${SOURCETARDIR}
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh --
|
||||
#
|
||||
# $NetBSD: checkflist,v 1.45 2018/03/01 07:18:39 snj Exp $
|
||||
# $NetBSD: checkflist,v 1.46 2022/08/21 07:10:03 lukem Exp $
|
||||
#
|
||||
# Verify output of makeflist against contents of ${DESTDIR} and ${metalog}.
|
||||
|
||||
|
@ -51,16 +51,12 @@ allowextra=false
|
|||
allowmissing=false
|
||||
|
||||
# handle args
|
||||
while getopts xybL:M:em ch; do
|
||||
while getopts xbL:M:em ch; do
|
||||
case ${ch} in
|
||||
x)
|
||||
xargs="-x"
|
||||
origin="./etc/X11 ./etc/fonts ./usr/X11R7"
|
||||
;;
|
||||
y)
|
||||
xargs="-y"
|
||||
origin="./etc/ext ./usr/ext"
|
||||
;;
|
||||
# backward compat
|
||||
b)
|
||||
xargs="-b"
|
||||
|
@ -79,9 +75,8 @@ while getopts xybL:M:em ch; do
|
|||
;;
|
||||
*)
|
||||
cat 1>&2 <<USAGE
|
||||
Usage: ${prog} [-x|-y|-b|-L lists] [-M metalog] [-e] [-m]
|
||||
Usage: ${prog} [-x|-b|-L lists] [-M metalog] [-e] [-m]
|
||||
-x check only x11 lists
|
||||
-y check only extsrc lists
|
||||
-b check netbsd + x11 lists
|
||||
-L base,x,ext check specified lists
|
||||
-M metalog metalog file
|
||||
|
|
|
@ -256,7 +256,6 @@ etc-cron-log empty log file for cron(8)
|
|||
etc-cron-rc startup script for cron(8) command scheduler
|
||||
etc-cron-root root file system support for cron(8) command scheduler
|
||||
etc-dhcpd-rc startup script for DHCP dynamic host configuration protocol daemon
|
||||
etc-extsrc-rc startup scripts for externally added programs
|
||||
etc-games-etc configuration file for games
|
||||
etc-games-scores empty score files for games
|
||||
etc-ipf-rc startup scripts for IP filter
|
||||
|
|
|
@ -512,7 +512,6 @@ etc-cron-log empty log file for cron(8)
|
|||
etc-cron-rc startup script for cron(8) command scheduler
|
||||
etc-cron-root root file system support for cron(8) command scheduler
|
||||
etc-dhcpd-rc startup script for DHCP dynamic host configuration protocol daemon
|
||||
etc-extsrc-rc startup scripts for externally added programs
|
||||
etc-games-etc configuration file for games
|
||||
etc-games-scores empty score files for games
|
||||
etc-ipf-rc startup script for IP filter
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: makeflist,v 1.77 2013/01/14 20:29:26 christos Exp $
|
||||
# $NetBSD: makeflist,v 1.78 2022/08/21 07:10:03 lukem Exp $
|
||||
#
|
||||
# Print out the files in some or all lists.
|
||||
# Usage: makeflist [-bxlo] [-a arch] [-m machine] [-s setsdir] [setname ...]
|
||||
|
@ -13,11 +13,10 @@ lists=
|
|||
usage()
|
||||
{
|
||||
cat 1>&2 <<USAGE
|
||||
Usage: ${0##*/} [-L base,x,ext] [-bxyo] [-a arch] [-m machine] [-s setsdir] [setname [...]]
|
||||
-L base,x,ext print specified lists
|
||||
Usage: ${0##*/} [-L base,x] [-bxo] [-a arch] [-m machine] [-s setsdir] [setname [...]]
|
||||
-L base,x print specified lists
|
||||
-b print netbsd + x11 lists
|
||||
-x print make x11 lists
|
||||
-y print make extsrc lists
|
||||
-l just list the selected set names, not the contents
|
||||
-o only match obsolete files
|
||||
-a arch set arch (e.g, m68k, mipseb, mipsel, powerpc) [${MACHINE_ARCH}]
|
||||
|
@ -38,7 +37,6 @@ while getopts L:bxloa:m:s: ch; do
|
|||
case $_list in
|
||||
base) lists="${lists} ${nlists}" ;;
|
||||
x) lists="${lists} ${xlists}" ;;
|
||||
ext) lists="${lists} ${extlists}" ;;
|
||||
esac
|
||||
done
|
||||
IFS="${save_IFS}"
|
||||
|
@ -50,9 +48,6 @@ while getopts L:bxloa:m:s: ch; do
|
|||
x)
|
||||
lists="${xlists}"
|
||||
;;
|
||||
y)
|
||||
lists="${extlists}"
|
||||
;;
|
||||
l)
|
||||
listonly=1
|
||||
;;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: makeobsolete,v 1.31 2009/12/05 15:56:25 cegger Exp $
|
||||
# $NetBSD: makeobsolete,v 1.32 2022/08/21 07:10:03 lukem Exp $
|
||||
#
|
||||
# Print out the obsolete files for a set
|
||||
# Usage: makeobsolete [-b] [-x] [-a arch] [-m machine] [-s setsdir] \
|
||||
|
@ -17,10 +17,9 @@ usage()
|
|||
{
|
||||
cat 1>&2 <<USAGE
|
||||
Usage: ${0##*/} [-a arch] [-m machine] [-s setsdir] [setname ...]
|
||||
-L base,x,ext make specified lists
|
||||
-L base,x make specified lists
|
||||
-b make netbsd + x11 lists
|
||||
-x only make x11 lists
|
||||
-y only make extsrc lists
|
||||
-a arch set arch (e.g, m68k, mips, powerpc) [${MACHINE_ARCH}]
|
||||
-m machine set machine (e.g, amiga, i386, macppc) [${MACHINE}]
|
||||
-s setsdir directory to find sets [${setd}]
|
||||
|
@ -30,7 +29,7 @@ USAGE
|
|||
exit 1
|
||||
}
|
||||
|
||||
while getopts L:bxya:m:s:t: ch; do
|
||||
while getopts L:bxa:m:s:t: ch; do
|
||||
case ${ch} in
|
||||
L)
|
||||
save_IFS="${IFS}"
|
||||
|
@ -39,7 +38,6 @@ while getopts L:bxya:m:s:t: ch; do
|
|||
case $_list in
|
||||
base) lists="${lists} ${nlists}" ;;
|
||||
x) lists="${lists} ${xlists}" ;;
|
||||
ext) lists="${lists} ${extlists}" ;;
|
||||
esac
|
||||
done
|
||||
IFS="${save_IFS}"
|
||||
|
@ -51,9 +49,6 @@ while getopts L:bxya:m:s:t: ch; do
|
|||
x)
|
||||
lists="${xlists}"
|
||||
;;
|
||||
y)
|
||||
lists="${extlists}"
|
||||
;;
|
||||
a)
|
||||
MACHINE_ARCH="${OPTARG}"
|
||||
MACHINE_CPU="$(arch_to_cpu "${OPTARG}")"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# $NetBSD: makesrctars,v 1.43 2021/09/07 18:02:46 martin Exp $
|
||||
# $NetBSD: makesrctars,v 1.44 2022/08/21 07:10:03 lukem Exp $
|
||||
#
|
||||
# makesrctars srcdir setdir
|
||||
# Create source tarballs in setdir from the source under srcdir.
|
||||
|
@ -20,12 +20,11 @@ export GZIP
|
|||
usage()
|
||||
{
|
||||
cat 1>&2 <<USAGE
|
||||
Usage: ${prog} [-N password/group dir] [-q] [-x xsrcdir] [-y extsrcsrcdir] srcdir setdir
|
||||
Usage: ${prog} [-N password/group dir] [-q] [-x xsrcdir] srcdir setdir
|
||||
-N dir location which contains master.passwd and group files
|
||||
(defaults to \${srcdir}/etc)
|
||||
-q quiet operation
|
||||
-x xsrcdir build xsrc.tgz from xsrcdir
|
||||
-y extsrcsrcdir build extsrc.tgz from extsrcsrcdir
|
||||
srcdir location of sources
|
||||
setdir where to write the .tgz files to
|
||||
USAGE
|
||||
|
@ -39,7 +38,7 @@ msg()
|
|||
|
||||
|
||||
# handle args
|
||||
while getopts N:qx:y: ch; do
|
||||
while getopts N:qx: ch; do
|
||||
case ${ch} in
|
||||
q)
|
||||
quiet=true
|
||||
|
@ -47,9 +46,6 @@ while getopts N:qx:y: ch; do
|
|||
x)
|
||||
xsrcdir="${OPTARG}"
|
||||
;;
|
||||
y)
|
||||
extsrcsrcdir="${OPTARG}"
|
||||
;;
|
||||
N)
|
||||
PASSWD="${OPTARG}"
|
||||
;;
|
||||
|
@ -138,18 +134,6 @@ if [ -n "${xsrcdir}" ]; then
|
|||
fi
|
||||
|
||||
|
||||
# create extsrc sets
|
||||
#
|
||||
if [ -n "${extsrcsrcdir}" ]; then
|
||||
if ! cd "${extsrcsrcdir}"; then
|
||||
echo >&2 "${prog}: can't chdir to ${extsrcsrcdir}"
|
||||
exit 1
|
||||
fi
|
||||
srcprefix=usr/extsrc
|
||||
makeset extsrc .
|
||||
fi
|
||||
|
||||
|
||||
msg "Creating checksum files"
|
||||
(cd "${setdir}"
|
||||
${CKSUM} -a md5 *.tgz *.tar.xz > MD5
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: maketars,v 1.93 2021/09/25 08:54:30 maya Exp $
|
||||
# $NetBSD: maketars,v 1.94 2022/08/21 07:10:03 lukem Exp $
|
||||
#
|
||||
# Make release tar files for some or all lists. Usage:
|
||||
# maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir]
|
||||
|
@ -9,11 +9,10 @@
|
|||
#
|
||||
# The default sets are "base comp debug dtb etc games gpufw man misc rescue tests text"
|
||||
# The X sets are "xbase xcomp xdebug xetc xfont xserver"
|
||||
# The extsrc sets are "extbase extcomp extetc"
|
||||
#
|
||||
# If '-i installdir' is given, copy the given sets to installdir
|
||||
# (using pax -rw ...) instead of creating tar files.
|
||||
# In this case, remove "etc", "xetc", and "extetc" from the list of default sets.
|
||||
# In this case, remove "etc", and "xetc" from the list of default sets.
|
||||
#
|
||||
|
||||
prog="${0##*/}"
|
||||
|
@ -37,15 +36,13 @@ preserve="-pe"
|
|||
usage()
|
||||
{
|
||||
cat 1>&2 <<USAGE
|
||||
Usage: ${prog} [-L base,x,ext] [-b] [-x] [-y] [-i idir] [-a arch] [-m machine]
|
||||
Usage: ${prog} [-L base,x] [-b] [-x] [-i idir] [-a arch] [-m machine]
|
||||
[-s setsdir] [-S] [-M metalog] [-N etcdir] [-F setlistdir]
|
||||
[-d dest] [-t targetdir] [setname ...]
|
||||
-L base,x,ext Make specified lists
|
||||
-L base,x Make specified lists
|
||||
-b Make both netbsd and x11 lists
|
||||
-x Only make x11 lists
|
||||
[Default: make netbsd lists]
|
||||
-y Only make extsrc lists
|
||||
[Default: make netbsd lists]
|
||||
-i idir Install sets to idir instead of creating tar files
|
||||
-a arch Set arch (e.g, m68k, mipseb, mipsel, powerpc) [${MACHINE_ARCH}]
|
||||
-m machine Set machine (e.g, amiga, i386, macppc) [${MACHINE}]
|
||||
|
@ -70,7 +67,7 @@ msg()
|
|||
}
|
||||
|
||||
# handle args
|
||||
while getopts L:bxyi:a:m:qs:F:SM:N:Ud:t:T: ch; do
|
||||
while getopts L:bxi:a:m:qs:F:SM:N:Ud:t:T: ch; do
|
||||
case ${ch} in
|
||||
L)
|
||||
save_IFS="${IFS}"
|
||||
|
@ -79,7 +76,6 @@ while getopts L:bxyi:a:m:qs:F:SM:N:Ud:t:T: ch; do
|
|||
case $_list in
|
||||
base) lists="${lists} ${nlists}" ;;
|
||||
x) lists="${lists} ${xlists}" ;;
|
||||
ext) lists="${lists} ${extlists}" ;;
|
||||
esac
|
||||
done
|
||||
IFS="${save_IFS}"
|
||||
|
@ -91,9 +87,6 @@ while getopts L:bxyi:a:m:qs:F:SM:N:Ud:t:T: ch; do
|
|||
x)
|
||||
lists="${xlists}"
|
||||
;;
|
||||
y)
|
||||
lists="${extlists}"
|
||||
;;
|
||||
i)
|
||||
installdir="${OPTARG}"
|
||||
;;
|
||||
|
@ -140,8 +133,8 @@ while getopts L:bxyi:a:m:qs:F:SM:N:Ud:t:T: ch; do
|
|||
esac
|
||||
done
|
||||
shift $((${OPTIND} - 1))
|
||||
if [ -n "${installdir}" ]; then # if -i, remove etc + xetc + extetc from the default list
|
||||
lists="$(echo ${lists} | ${SED} -e 's/ etc / /;s/ xetc / /;s/ extetc / /')"
|
||||
if [ -n "${installdir}" ]; then # if -i, remove etc + xetc from the default list
|
||||
lists="$(echo ${lists} | ${SED} -e 's/ etc / /;s/ xetc / /;')"
|
||||
fi
|
||||
if [ -n "$*" ]; then
|
||||
lists="$*"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: mkvars.mk,v 1.40 2020/09/26 17:49:49 jmcneill Exp $
|
||||
# $NetBSD: mkvars.mk,v 1.41 2022/08/21 07:10:03 lukem Exp $
|
||||
|
||||
MKEXTRAVARS= \
|
||||
MACHINE \
|
||||
|
@ -18,7 +18,6 @@ MKEXTRAVARS= \
|
|||
HAVE_UEFI \
|
||||
OBJECT_FMT \
|
||||
TOOLCHAIN_MISSING \
|
||||
EXTSRCS \
|
||||
KERNEL_DIR \
|
||||
MKMANZ \
|
||||
MKBFD \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: sets.subr,v 1.201 2021/12/31 17:51:14 christos Exp $
|
||||
# $NetBSD: sets.subr,v 1.202 2022/08/21 07:10:03 lukem Exp $
|
||||
#
|
||||
|
||||
#
|
||||
|
@ -6,7 +6,6 @@
|
|||
# setsdir path to src/distrib/sets
|
||||
# nlists list of base sets
|
||||
# xlists list of x11 sets
|
||||
# extlists list of extsrc sets
|
||||
# obsolete controls if obsolete files are selected instead
|
||||
# module if != "no", enable MODULE sets
|
||||
# shlib shared library format (a.out, elf, or "")
|
||||
|
@ -173,7 +172,6 @@ if [ "${MKPIC}" = "no" ]; then
|
|||
fi
|
||||
nlists="base comp $debugset $dtbset etc games gpufw man misc $modset rescue $testset text"
|
||||
xlists="xbase xcomp $xdebugset xetc xfont xserver"
|
||||
extlists="extbase extcomp extetc"
|
||||
|
||||
OSRELEASE=$(${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -k)
|
||||
if [ "${KERNEL_DIR}" = "yes" ]; then
|
||||
|
@ -192,7 +190,7 @@ SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g"
|
|||
# In each file, a record consists of a path and a System Package name,
|
||||
# separated by whitespace. E.g.,
|
||||
#
|
||||
# # $NetBSD: sets.subr,v 1.201 2021/12/31 17:51:14 christos Exp $
|
||||
# # $NetBSD: sets.subr,v 1.202 2022/08/21 07:10:03 lukem Exp $
|
||||
# . base-sys-root [keyword[,...]]
|
||||
# ./altroot base-sys-root
|
||||
# ./bin base-sys-root
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.\" $NetBSD: BUILDING.mdoc,v 1.134 2022/05/28 21:54:56 andvar Exp $
|
||||
.\" $NetBSD: BUILDING.mdoc,v 1.135 2022/08/21 07:10:03 lukem Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
|
||||
.\" Copyright (c) 2001-2022 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" This code is derived from software contributed to The NetBSD Foundation
|
||||
|
@ -169,11 +169,6 @@ If any of these directories are missing, they will be skipped during the build.
|
|||
.Dq Reachover
|
||||
build structure for modular Xorg; the source is in
|
||||
.Sy X11SRCDIR .
|
||||
.It Pa extsrc/
|
||||
.Dq Reachover
|
||||
build structure for externally added programs and libraries;
|
||||
the source is in
|
||||
.Sy EXTSRCSRCDIR .
|
||||
.El
|
||||
.
|
||||
.Ss Build tree layout
|
||||
|
@ -446,15 +441,6 @@ unless run in
|
|||
.Sq expert
|
||||
mode.
|
||||
.
|
||||
.It Sy EXTSRCSRCDIR
|
||||
Directory containing sources of externally added programs
|
||||
and libraries.
|
||||
If specified, must be an absolute path.
|
||||
.DFLT
|
||||
.Sy NETBSDSRCDIR Ns Pa /../extsrc ,
|
||||
if that exists; otherwise
|
||||
.Pa /usr/extsrc .
|
||||
.
|
||||
.It Sy MAKECONF
|
||||
The name of the
|
||||
.Xr make 1
|
||||
|
@ -537,12 +523,6 @@ Indicates whether system documentation destined for
|
|||
will be installed during a build.
|
||||
.DFLTy
|
||||
.
|
||||
.It Sy MKEXTSRC
|
||||
.YorN
|
||||
Indicates whether extsrc is built from
|
||||
.Sy EXTSRCSRCDIR .
|
||||
.DFLTn
|
||||
.
|
||||
.It Sy MKHTML
|
||||
.YorN
|
||||
Indicates whether preformatted HTML manual pages will be built
|
||||
|
@ -2031,18 +2011,6 @@ absolute path before being used.
|
|||
Set
|
||||
.Sy MKX11=yes .
|
||||
.
|
||||
.It Fl Y Ar extsrcdir
|
||||
Set the value of
|
||||
.Sy EXTSRCSRCDIR
|
||||
to
|
||||
.Ar extsrcdir .
|
||||
If a relative path is specified, it will be converted to an
|
||||
absolute path before being used.
|
||||
.
|
||||
.It Fl y
|
||||
Set
|
||||
.Sy MKEXTSRC=yes .
|
||||
.
|
||||
.It Fl Z Ar var
|
||||
Unset ("zap") the environment variable
|
||||
.Ar var .
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.465 2022/06/06 10:56:28 nia Exp $
|
||||
# $NetBSD: Makefile,v 1.466 2022/08/21 07:10:03 lukem Exp $
|
||||
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
|
||||
|
||||
# Environment variables without default values:
|
||||
|
@ -163,9 +163,6 @@ distribution: .PHONY .MAKE check_DESTDIR distrib-dirs
|
|||
${MAKEDIRTARGET} . install-etc-files
|
||||
. if ${MKX11} != "no"
|
||||
${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/mit/xorg distribution
|
||||
. endif
|
||||
. if ${MKEXTSRC} != "no"
|
||||
${MAKEDIRTARGET} ${NETBSDSRCDIR}/extsrc distribution
|
||||
. endif
|
||||
${MAKEDIRTARGET} ${NETBSDSRCDIR}/distrib/sets makesetfiles
|
||||
.endif # !DISTRIBUTION_DONE
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.47 2022/06/06 10:56:28 nia Exp $
|
||||
# $NetBSD: Makefile,v 1.48 2022/08/21 07:10:03 lukem Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
@ -65,10 +65,6 @@ EXTRA_DIST_FILES+= NetBSD.dist.dtb
|
|||
EXTRA_DIST_FILES+= NetBSD.dist.dtrace
|
||||
.endif
|
||||
|
||||
.if ${MKEXTSRC} != "no"
|
||||
EXTRA_DIST_FILES+= NetBSD.dist.extsrc
|
||||
.endif
|
||||
|
||||
.if ${MKISCSI} != "no"
|
||||
EXTRA_DIST_FILES+= NetBSD.dist.iscsi
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: src.7,v 1.16 2020/05/14 16:32:57 snj Exp $
|
||||
.\" $NetBSD: src.7,v 1.17 2022/08/21 07:10:03 lukem Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2012, 2013 Mingzhe Wang and Elvira Khabirova.
|
||||
.\" All rights reserved.
|
||||
|
@ -182,11 +182,6 @@ and
|
|||
.Pa external/public-domain/sqlite/
|
||||
itself contain reachover Makefiles.
|
||||
.El
|
||||
.It Pa extsrc/
|
||||
Optional developer-provided sources that are built if
|
||||
.Pa MKEXTSRC=yes ,
|
||||
as a way to include extra components in the
|
||||
build.
|
||||
.It Pa games/
|
||||
Sources for utilities/files in
|
||||
.Pa /usr/games ;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.README,v 1.440 2022/07/14 03:48:49 mrg Exp $
|
||||
# $NetBSD: bsd.README,v 1.441 2022/08/21 07:10:03 lukem Exp $
|
||||
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
|
||||
|
||||
This is the README file for the make "include" files for the NetBSD
|
||||
|
@ -217,11 +217,6 @@ MKDYNAMICROOT If "no", build programs in /bin and /sbin statically,
|
|||
install the shared linker into /libexec.
|
||||
Default: yes
|
||||
|
||||
MKEXTSRC If not "no", 'make build' also descends into either src/extsrc
|
||||
to cross-build programs and libraries externally added by
|
||||
users, and automatically enables creation of those sets.
|
||||
Default: no
|
||||
|
||||
MKFIRMWARE If not "no", install the /libdata/firmware directory,
|
||||
which is necessary for several drivers: athn(4), bwfm(4),
|
||||
ipw(4), iwi(4), iwm(4), iwn(4), otus(4), rtwn(4), urtwn(4),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.own.mk,v 1.1287 2022/07/27 18:29:35 maya Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.1288 2022/08/21 07:10:03 lukem Exp $
|
||||
|
||||
# This needs to be before bsd.init.mk
|
||||
.if defined(BSD_MK_COMPAT_FILE)
|
||||
|
@ -1300,7 +1300,6 @@ _MKVARS.no= \
|
|||
MKBSDGREP \
|
||||
MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCTF \
|
||||
MKDEBUG MKDEBUGLIB MKDTB MKDTRACE \
|
||||
MKEXTSRC \
|
||||
MKFIRMWARE \
|
||||
MKGROFFHTMLDOC \
|
||||
MKKYUA \
|
||||
|
@ -1667,25 +1666,6 @@ X11DRI?= yes
|
|||
X11LOADABLE?= yes
|
||||
|
||||
|
||||
#
|
||||
# Where extsrc sources are and where it is installed to.
|
||||
#
|
||||
.if !defined(EXTSRCSRCDIR)
|
||||
.if exists(${NETBSDSRCDIR}/../extsrc)
|
||||
EXTSRCSRCDIR!= cd "${NETBSDSRCDIR}/../extsrc" && pwd
|
||||
.else
|
||||
EXTSRCSRCDIR= /usr/extsrc
|
||||
.endif
|
||||
.endif # !defined(EXTSRCSRCDIR)
|
||||
|
||||
EXTSRCROOTDIR?= /usr/ext
|
||||
EXTSRCBINDIR?= ${EXTSRCROOTDIR}/bin
|
||||
EXTSRCETCDIR?= /etc/ext
|
||||
EXTSRCINCDIR?= ${EXTSRCROOTDIR}/include
|
||||
EXTSRCLIBDIR?= ${EXTSRCROOTDIR}/lib/ext
|
||||
EXTSRCMANDIR?= ${EXTSRCROOTDIR}/man
|
||||
EXTSRCUSRLIBDIR?= ${EXTSRCROOTDIR}/lib
|
||||
|
||||
#
|
||||
# MAKEDIRTARGET dir target [extra make(1) params]
|
||||
# run "cd $${dir} && ${MAKEDIRTARGETENV} ${MAKE} [params] $${target}", with a pretty message
|
||||
|
|
Loading…
Reference in New Issue