head	1.50;
access;
symbols
	netbsd-11-0-RC3:1.50
	netbsd-11-0-RC2:1.50
	netbsd-11-0-RC1:1.50
	perseant-exfatfs-base-20250801:1.50
	netbsd-11:1.50.0.28
	netbsd-11-base:1.50
	netbsd-10-1-RELEASE:1.50
	perseant-exfatfs-base-20240630:1.50
	perseant-exfatfs:1.50.0.26
	perseant-exfatfs-base:1.50
	netbsd-8-3-RELEASE:1.34
	netbsd-9-4-RELEASE:1.36
	netbsd-10-0-RELEASE:1.50
	netbsd-10-0-RC6:1.50
	netbsd-10-0-RC5:1.50
	netbsd-10-0-RC4:1.50
	netbsd-10-0-RC3:1.50
	netbsd-10-0-RC2:1.50
	thorpej-ifq:1.50.0.24
	thorpej-ifq-base:1.50
	thorpej-altq-separation:1.50.0.22
	thorpej-altq-separation-base:1.50
	netbsd-10-0-RC1:1.50
	netbsd-10:1.50.0.20
	netbsd-10-base:1.50
	bouyer-sunxi-drm:1.50.0.18
	bouyer-sunxi-drm-base:1.50
	netbsd-9-3-RELEASE:1.36
	thorpej-i2c-spi-conf2:1.50.0.16
	thorpej-i2c-spi-conf2-base:1.50
	thorpej-futex2:1.50.0.14
	thorpej-futex2-base:1.50
	thorpej-cfargs2:1.50.0.12
	thorpej-cfargs2-base:1.50
	cjep_sun2x-base1:1.50
	cjep_sun2x:1.50.0.10
	cjep_sun2x-base:1.50
	cjep_staticlib_x-base1:1.50
	netbsd-9-2-RELEASE:1.36
	cjep_staticlib_x:1.50.0.8
	cjep_staticlib_x-base:1.50
	thorpej-i2c-spi-conf:1.50.0.6
	thorpej-i2c-spi-conf-base:1.50
	thorpej-cfargs:1.50.0.4
	thorpej-cfargs-base:1.50
	thorpej-futex:1.50.0.2
	thorpej-futex-base:1.50
	netbsd-9-1-RELEASE:1.36
	bouyer-xenpvh-base2:1.49
	phil-wifi-20200421:1.49
	bouyer-xenpvh-base1:1.49
	phil-wifi-20200411:1.49
	bouyer-xenpvh:1.49.0.6
	bouyer-xenpvh-base:1.49
	is-mlppp:1.49.0.4
	is-mlppp-base:1.49
	phil-wifi-20200406:1.49
	netbsd-8-2-RELEASE:1.34
	ad-namecache-base3:1.49
	netbsd-9-0-RELEASE:1.36
	netbsd-9-0-RC2:1.36
	ad-namecache-base2:1.49
	ad-namecache-base1:1.49
	ad-namecache:1.49.0.2
	ad-namecache-base:1.49
	netbsd-9-0-RC1:1.36
	phil-wifi-20191119:1.49
	netbsd-9:1.36.0.4
	netbsd-9-base:1.36
	phil-wifi-20190609:1.36
	netbsd-8-1-RELEASE:1.34
	netbsd-8-1-RC1:1.34
	isaki-audio2:1.36.0.2
	isaki-audio2-base:1.36
	pgoyette-compat-merge-20190127:1.34.16.1
	pgoyette-compat-20190127:1.35
	pgoyette-compat-20190118:1.35
	pgoyette-compat-1226:1.35
	pgoyette-compat-1126:1.35
	pgoyette-compat-1020:1.35
	pgoyette-compat-0930:1.35
	pgoyette-compat-0906:1.35
	netbsd-7-2-RELEASE:1.17
	pgoyette-compat-0728:1.35
	netbsd-8-0-RELEASE:1.34
	phil-wifi:1.35.0.2
	phil-wifi-base:1.35
	pgoyette-compat-0625:1.35
	netbsd-8-0-RC2:1.34
	pgoyette-compat-0521:1.35
	pgoyette-compat-0502:1.35
	pgoyette-compat-0422:1.35
	netbsd-8-0-RC1:1.34
	pgoyette-compat-0415:1.35
	pgoyette-compat-0407:1.35
	pgoyette-compat-0330:1.34
	pgoyette-compat-0322:1.34
	pgoyette-compat-0315:1.34
	netbsd-7-1-2-RELEASE:1.17
	pgoyette-compat:1.34.0.16
	pgoyette-compat-base:1.34
	netbsd-7-1-1-RELEASE:1.17
	tls-maxphys-base-20171202:1.34
	matt-nb8-mediatek:1.34.0.14
	matt-nb8-mediatek-base:1.34
	nick-nhusb-base-20170825:1.34
	perseant-stdc-iso10646:1.34.0.12
	perseant-stdc-iso10646-base:1.34
	netbsd-8:1.34.0.10
	netbsd-8-base:1.34
	prg-localcount2-base3:1.34
	prg-localcount2-base2:1.34
	prg-localcount2-base1:1.34
	prg-localcount2:1.34.0.8
	prg-localcount2-base:1.34
	pgoyette-localcount-20170426:1.34
	bouyer-socketcan-base1:1.34
	jdolecek-ncq:1.34.0.6
	jdolecek-ncq-base:1.34
	pgoyette-localcount-20170320:1.34
	netbsd-7-1:1.17.0.8
	netbsd-7-1-RELEASE:1.17
	netbsd-7-1-RC2:1.17
	nick-nhusb-base-20170204:1.34
	netbsd-7-nhusb-base-20170116:1.17
	bouyer-socketcan:1.34.0.4
	bouyer-socketcan-base:1.34
	pgoyette-localcount-20170107:1.34
	netbsd-7-1-RC1:1.17
	nick-nhusb-base-20161204:1.34
	pgoyette-localcount-20161104:1.34
	netbsd-7-0-2-RELEASE:1.17
	nick-nhusb-base-20161004:1.34
	localcount-20160914:1.34
	netbsd-7-nhusb:1.17.0.6
	netbsd-7-nhusb-base:1.17
	pgoyette-localcount-20160806:1.34
	pgoyette-localcount-20160726:1.34
	pgoyette-localcount:1.34.0.2
	pgoyette-localcount-base:1.34
	nick-nhusb-base-20160907:1.34
	nick-nhusb-base-20160529:1.34
	netbsd-7-0-1-RELEASE:1.17
	nick-nhusb-base-20160422:1.34
	nick-nhusb-base-20160319:1.34
	nick-nhusb-base-20151226:1.34
	netbsd-7-0:1.17.0.4
	netbsd-7-0-RELEASE:1.17
	nick-nhusb-base-20150921:1.34
	netbsd-7-0-RC3:1.17
	netbsd-7-0-RC2:1.17
	netbsd-7-0-RC1:1.17
	nick-nhusb-base-20150606:1.31
	nick-nhusb-base-20150406:1.29
	nick-nhusb:1.22.0.2
	nick-nhusb-base:1.22
	netbsd-7:1.17.0.2
	netbsd-7-base:1.17
	yamt-pagecache:1.13.0.4
	yamt-pagecache-base9:1.13
	tls-earlyentropy:1.13.0.2
	tls-earlyentropy-base:1.17
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.13
	riastradh-drm2-base3:1.13
	rmind-smpnet-nbase:1.13
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.8
	riastradh-drm2-base:1.4
	rmind-smpnet:1.4.0.6
	rmind-smpnet-base:1.13
	khorben-n900:1.4.0.4
	agc-symver:1.4.0.2
	agc-symver-base:1.4
	tls-maxphys-base:1.17
	tls-maxphys:1.1.0.4;
locks; strict;
comment	@# @;


1.50
date	2020.04.25.15.42.14;	author bouyer;	state Exp;
branches;
next	1.49;
commitid	MtIvbsfgjCGFvM5C;

1.49
date	2019.09.27.11.57.42;	author bad;	state Exp;
branches
	1.49.6.1;
next	1.48;
commitid	3WEOP2IZSXaY1EEB;

1.48
date	2019.09.27.11.53.42;	author bad;	state Exp;
branches;
next	1.47;
commitid	KpfA1KTb1Kr21EEB;

1.47
date	2019.09.26.22.43.36;	author bad;	state Exp;
branches;
next	1.46;
commitid	pgCcEhX4lry1EzEB;

1.46
date	2019.09.26.22.39.55;	author bad;	state Exp;
branches;
next	1.45;
commitid	W8UjvibO49TNCzEB;

1.45
date	2019.09.12.21.37.06;	author bad;	state Exp;
branches;
next	1.44;
commitid	RC194uwGSAsRJLCB;

1.44
date	2019.09.12.21.10.19;	author bad;	state Exp;
branches;
next	1.43;
commitid	gH830qGjJXqFALCB;

1.43
date	2019.09.12.20.10.00;	author bad;	state Exp;
branches;
next	1.42;
commitid	1wKsrlL5Q2uYfLCB;

1.42
date	2019.09.12.18.28.05;	author bad;	state Exp;
branches;
next	1.41;
commitid	ilheMHTFnFj1HKCB;

1.41
date	2019.09.12.17.35.58;	author bad;	state Exp;
branches;
next	1.40;
commitid	OQLu8bKTeod8pKCB;

1.40
date	2019.09.12.15.17.08;	author bad;	state Exp;
branches;
next	1.39;
commitid	8E20UoFEreQvDJCB;

1.39
date	2019.09.12.00.56.05;	author bad;	state Exp;
branches;
next	1.38;
commitid	5Krx6cYjwi97SECB;

1.38
date	2019.09.12.00.17.03;	author bad;	state Exp;
branches;
next	1.37;
commitid	bSWVbRDmgbGIEECB;

1.37
date	2019.09.11.22.30.16;	author bad;	state Exp;
branches;
next	1.36;
commitid	X1FSFbdSSbCR3ECB;

1.36
date	2019.02.17.23.50.53;	author bad;	state Exp;
branches;
next	1.35;
commitid	3982PozOFV638bcB;

1.35
date	2018.04.01.04.35.06;	author ryo;	state Exp;
branches
	1.35.2.1;
next	1.34;
commitid	Rbo0y8tEIcKr5HwA;

1.34
date	2015.07.07.12.40.13;	author justin;	state Exp;
branches
	1.34.16.1;
next	1.33;
commitid	mps6M41o6LfLSlsy;

1.33
date	2015.06.29.08.40.52;	author pooka;	state Exp;
branches;
next	1.32;
commitid	5MDw3NLbAypBOiry;

1.32
date	2015.06.15.11.20.18;	author pooka;	state Exp;
branches;
next	1.31;
commitid	n7zBvWRVKFjd9wpy;

1.31
date	2015.04.25.08.48.06;	author pooka;	state Exp;
branches;
next	1.30;
commitid	Tiuf8RkevfKTVWiy;

1.30
date	2015.04.17.13.04.19;	author pooka;	state Exp;
branches;
next	1.29;
commitid	MZhkedjPKnpuCWhy;

1.29
date	2015.03.07.22.00.07;	author justin;	state Exp;
branches;
next	1.28;
commitid	hiv7vSZQ6emNTIcy;

1.28
date	2015.02.13.00.31.42;	author pooka;	state Exp;
branches;
next	1.27;
commitid	csMdTWTb5dtJtM9y;

1.27
date	2015.02.08.20.22.01;	author justin;	state Exp;
branches;
next	1.26;
commitid	F7Hzv81Nq8H0ef9y;

1.26
date	2014.12.24.21.21.18;	author justin;	state Exp;
branches;
next	1.25;
commitid	7bylPxMAyIg82l3y;

1.25
date	2014.12.23.13.23.47;	author justin;	state Exp;
branches;
next	1.24;
commitid	2U6vyZIOasOhqa3y;

1.24
date	2014.12.10.16.54.58;	author pooka;	state Exp;
branches;
next	1.23;
commitid	WAPj74wIKSV40w1y;

1.23
date	2014.12.05.01.49.51;	author pooka;	state Exp;
branches;
next	1.22;
commitid	aeSYcycenTXH9N0y;

1.22
date	2014.10.29.21.16.06;	author justin;	state Exp;
branches
	1.22.2.1;
next	1.21;
commitid	2BDWfIsdtrKVN8Wx;

1.21
date	2014.10.29.19.59.32;	author pooka;	state Exp;
branches;
next	1.20;
commitid	lFB4yE2nEz6Dn8Wx;

1.20
date	2014.10.29.19.35.29;	author justin;	state Exp;
branches;
next	1.19;
commitid	5Nv51orjNDerf8Wx;

1.19
date	2014.10.29.17.36.07;	author justin;	state Exp;
branches;
next	1.18;
commitid	MnplGyqOwLlqA7Wx;

1.18
date	2014.08.11.22.13.56;	author justin;	state Exp;
branches;
next	1.17;
commitid	nL8HxC94vpz9FZLx;

1.17
date	2014.07.09.12.20.32;	author pooka;	state Exp;
branches;
next	1.16;
commitid	3uvYpZHymKVfrHHx;

1.16
date	2014.07.09.12.14.47;	author pooka;	state Exp;
branches;
next	1.15;
commitid	23PRmv54dYDapHHx;

1.15
date	2014.07.08.14.30.21;	author pooka;	state Exp;
branches;
next	1.14;
commitid	VEWNtswjC5MzbAHx;

1.14
date	2014.06.15.14.36.57;	author pooka;	state Exp;
branches;
next	1.13;
commitid	PjnCAagZWJU2YCEx;

1.13
date	2014.02.24.19.22.14;	author pooka;	state Exp;
branches
	1.13.2.1
	1.13.4.1;
next	1.12;
commitid	UismgtOkQhaa7oqx;

1.12
date	2013.12.20.10.13.24;	author pooka;	state Exp;
branches;
next	1.11;
commitid	EGQdFhJXkVgqcRhx;

1.11
date	2013.10.29.16.19.28;	author pooka;	state Exp;
branches;
next	1.10;
commitid	LQFanBAgEhvATcbx;

1.10
date	2013.10.29.16.18.42;	author pooka;	state Exp;
branches;
next	1.9;
commitid	uKD9SlLgkGNfTcbx;

1.9
date	2013.09.19.16.16.03;	author pooka;	state Exp;
branches;
next	1.8;
commitid	BxyJ2HQULPAP946x;

1.8
date	2013.09.10.17.08.57;	author pooka;	state Exp;
branches;
next	1.7;
commitid	wdFVL1LcHJWeKU4x;

1.7
date	2013.08.12.10.25.05;	author pooka;	state Exp;
branches;
next	1.6;
commitid	Pq4EV3MvImikr91x;

1.6
date	2013.08.11.09.10.47;	author pooka;	state Exp;
branches;
next	1.5;
commitid	0byLBRzfIedM311x;

1.5
date	2013.07.30.09.29.34;	author pooka;	state Exp;
branches;
next	1.4;
commitid	gqBYvMpY5fsDwtZw;

1.4
date	2013.03.18.15.55.43;	author pooka;	state Exp;
branches
	1.4.6.1;
next	1.3;

1.3
date	2013.03.10.14.15.54;	author pooka;	state Exp;
branches;
next	1.2;

1.2
date	2013.03.10.09.18.50;	author pooka;	state Exp;
branches;
next	1.1;

1.1
date	2013.02.13.18.45.20;	author pooka;	state Exp;
branches
	1.1.4.1;
next	;

1.49.6.1
date	2020.04.25.11.44.29;	author bouyer;	state Exp;
branches;
next	;
commitid	bLxleAz5suL6cL5C;

1.35.2.1
date	2019.06.10.22.09.50;	author christos;	state Exp;
branches;
next	1.35.2.2;
commitid	jtc8rnCzWiEEHGqB;

1.35.2.2
date	2020.04.13.08.05.18;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.34.16.1
date	2018.04.07.04.12.20;	author pgoyette;	state Exp;
branches;
next	;
commitid	ZMkKSYuBapz7LsxA;

1.22.2.1
date	2015.04.06.15.18.24;	author skrll;	state Exp;
branches;
next	1.22.2.2;
commitid	pz01Zhy7RP6iGxgy;

1.22.2.2
date	2015.06.06.14.40.26;	author skrll;	state Exp;
branches;
next	1.22.2.3;
commitid	O6LVO5i6UulOvnoy;

1.22.2.3
date	2015.09.22.12.06.12;	author skrll;	state Exp;
branches;
next	;
commitid	CpNWKp3ozVNTafCy;

1.13.2.1
date	2014.08.10.06.56.49;	author tls;	state Exp;
branches;
next	;
commitid	SqReByPtwiDFCMLx;

1.13.4.1
date	2014.02.24.19.22.14;	author yamt;	state dead;
branches;
next	1.13.4.2;
commitid	VUUXuyNWnt3AKwBx;

1.13.4.2
date	2014.05.22.11.41.11;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.4.6.1
date	2013.08.28.23.59.36;	author rmind;	state Exp;
branches;
next	1.4.6.2;
commitid	cbp9Ov2uYijlqh3x;

1.4.6.2
date	2014.05.18.17.46.14;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.1.4.1
date	2013.02.13.18.45.20;	author tls;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2013.02.25.00.30.07;	author tls;	state Exp;
branches;
next	1.1.4.3;

1.1.4.3
date	2013.06.23.06.20.26;	author tls;	state Exp;
branches;
next	1.1.4.4;
commitid	eVjr9caYRQbRGHUw;

1.1.4.4
date	2014.08.20.00.04.37;	author tls;	state Exp;
branches;
next	1.1.4.5;
commitid	jTnpym9Qu0o4R1Nx;

1.1.4.5
date	2017.12.03.11.39.06;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;


desc
@@


1.50
log
@Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor
@
text
@#!/bin/sh
#
#	$NetBSD: listsrcdirs,v 1.49.6.1 2020/04/25 11:44:29 bouyer Exp $
#

#
# This script echoes the NetBSD source directories useful for
# rump kernels.
# Feed the output to whichever method you use to obtain NetBSD sources, e.g.
#
# ./listsrcdirs | xargs cvs -d anoncvs@@anoncvs.netbsd.org:/cvsroot -z3 co -P
#

# Check that the intersection between all branches is the null set
if [ "${LISTSRCDIRS_INSANITY}" != 'y' ]; then
	if [ ! -z "$(LISTSRCDIRS_INSANITY=y sh $0 all | sort | uniq -d)" ]; then
		echo $0: INTERNAL ERROR
		exit 1
	fi
fi

# default echomode (for compat)
em='sys posix'

# everything we support
all='sys posix usr'

# mini-getopt (so that we don't have to with getopt vs. getopts
cvsmode=false
if [ "${1}" = "-c" ]; then
	cvsmode=true
	shift
fi

[ ! -z "${*}" ] && em="${*}"
[ "$em" = all ] && em="${all}"
for x in ${em}; do
	for y in ${all}; do
		[ $x = $y ] && continue 2
	done
	echo invalid specifier $x
	exit 1
done

iswanted ()
{

	for x in ${em}; do
		if [ "$x" = "$1" ]; then
			return 0
		fi
	done
	return 1
}

lsrc ()
{

	what=$1
	pfx=$2
	shift 2

	iswanted ${what} && for arg in $* ; do echo src${pfx}${arg} ; done
}

include_headerlist ()
{
	what=$1
	pfx=$2
	shift 2

	if iswanted ${what}; then
		[ -f headerlist ] \
			|| { echo 'missing file: headerlist' 1>&2; exit 1; }
		sed -E -e '/^#/d' -e '/^[  ]*$/d' \
		    -e "/^\.?\/?/s##src${pfx}#" headerlist \
		    | egrep -v "^src${pfx}($(echo "$@@" | tr ' ' \|))/include"
	fi
}

ARCHS="amd64 i386 x86 xen arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 riscv"
ARCHS_EXTRA="arm/arm32 Makefile"
# files listed in src/tools/Makefile.nbincludes
ARCHS_EXTRA="$ARCHS_EXTRA ews4800mips/include/pdinfo.h
ews4800mips/include/vtoc.h
dreamcast/include/endian_machdep.h
evbsh3/include/endian_machdep.h
hpcsh/include/endian_machdep.h
landisk/include/endian_machdep.h
mmeye/include/endian_machdep.h
sh3/include/endian_machdep.h"

# sources necessary for building rump kernel components.  This list
# depends on TOOLS_BUILDRUMP=yes.
lsrc sys /			build.sh Makefile Makefile.inc
lsrc sys /			tools common include share/mk
lsrc sys /etc/			Makefile.params master.passwd group
lsrc sys /lib/lib		c util
lsrc sys /external/bsd/		flex mdocml byacc
lsrc sys /external/cddl/	osnet
lsrc sys /external/historical/	nawk
lsrc sys /bin/			cat
lsrc sys /usr.bin/		make xinstall config mktemp sed tsort
lsrc sys /usr.bin/		lorder join cksum m4 mkdep Makefile.inc
lsrc sys /usr.bin/		rpcgen rump_wmd
lsrc sys /usr.bin/		genassym stat uname
lsrc sys /usr.sbin/		mtree

# sources hosted in the NetBSD tree that are required/useful
# when targeting POSIX-y platforms
lsrc posix /lib/lib		rump rumpdev rumpnet rumpvfs
lsrc posix /lib/lib		rumpuser rumpclient rumphijack
lsrc posix /usr.bin/		rump_server rump_allserver shmif_dumpbus

# assorted userspace sources, mostly for configuration & diagnostics
# NOTE! libc++ is handled below as a special case due to the NetBSD
# dist directory consisting ~90% (50+MB) of tests unnecessary to us
lsrc usr /lib/			i18n_module
lsrc usr /lib/lib		crypt ipsec kvm m npf pci prop
lsrc usr /lib/lib		pthread rmt wrap y z
lsrc usr /libexec/		ld.elf_so
lsrc usr /bin/			chmod cp dd df ed ln ls mkdir mv pax
lsrc usr /bin/			rm rmdir
lsrc usr /sbin/			brconfig cgdconfig chown
lsrc usr /sbin/			disklabel dump fdisk
lsrc usr /sbin/			fsck fsck_ext2fs fsck_ffs fsck_msdos
lsrc usr /sbin/			ifconfig mknod
lsrc usr /sbin/			modstat mount
lsrc usr /sbin/			mount_ext2fs mount_ffs mount_msdos mount_tmpfs
lsrc usr /sbin/			newfs newfs_ext2fs newfs_msdos
lsrc usr /sbin/			ping ping6 raidctl reboot
lsrc usr /sbin/			rndctl route setkey sysctl umount
lsrc usr /usr.bin/		kdump ktrace mixerctl sockstat
lsrc usr /usr.sbin/		arp dumpfs mdconfig ndp npf pcictl
lsrc usr /usr.sbin/		rtadvd vnconfig wlanctl
lsrc usr /external/bsd/		libnv libpcap tcpdump wpa
lsrc usr /crypto/		Makefile.openssl
lsrc usr /crypto/dist/		ipsec-tools
lsrc usr /crypto/external/bsd/	openssl


# If -c is given, use CVS syntax to exclude large subdirectories
# of sys.  Otherwise just do it wholesale.
if ${cvsmode}; then
	iswanted sys && \
	    echo \!src/sys/arch \
		 \!src/sys/external/gpl2/dts \
		 \!src/sys/external/bsd/drm \
		 \!src/sys/external/bsd/drm2 \
		src/sys

	iswanted usr && \
	    echo \!src/external/bsd/libc++/dist/libcxx/test \
	           src/external/bsd/libc++

	# pick a few useful archs, namely those mentioned in buildrump.sh
	for arch in ${ARCHS}; do
		lsrc sys /sys/arch/${arch}/ include ${arch} Makefile
	done
	# the includes mentioned in src/tools/headerlist are required.
	# but pull in only those that have not been pulled in by the previous
	# loop
	include_headerlist sys /sys/arch/ ${ARCHS}
	for extra in ${ARCHS_EXTRA}; do
		lsrc sys /sys/arch/ ${extra}
	done
else
	lsrc sys / sys

	lsrc usr /external /bsd/libc++
fi
@


1.49
log
@Remove libelf from "usr" list. Deleted 2015-09-30.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.47 2019/09/26 22:43:36 bad Exp $
d81 1
a81 1
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 riscv"
@


1.49.6.1
log
@Add xen as include dir for x86
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.49 2019/09/27 11:57:42 bad Exp $
d81 1
a81 1
ARCHS="amd64 i386 x86 xen arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 riscv"
@


1.48
log
@Exclude sys/external/{gpl2/dts,bsd/drm*}.

Saves some 100MB in the src-netbsd repo.
@
text
@d136 1
a136 1
lsrc usr /external/bsd/		libelf libnv libpcap tcpdump wpa
@


1.47
log
@rtadvd needs expandm.[hc] from libwrap.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.46 2019/09/26 22:39:55 bad Exp $
d145 6
a150 1
	iswanted sys && echo \!src/sys/arch src/sys
@


1.46
log
@revert r1.35-r1.40 of sys/rump/listsrcdirs.

addressed differently in tools/Makefile r1.204.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.45 2019/09/12 21:37:06 bad Exp $
d120 1
a120 1
lsrc usr /lib/lib		pthread rmt y z
@


1.45
log
@typo: ARCH_EXTRA -> ARCHS_EXTRA
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.44 2019/09/12 21:10:19 bad Exp $
d102 1
a102 2
lsrc sys /external/public-domain/	xz
lsrc sys /bin/			cat pax
d106 1
a106 1
lsrc sys /usr.bin/		genassym grep stat uname
a107 1
lsrc sys /sbin/			mknod
d122 1
a122 1
lsrc usr /bin/			chmod cp dd df ed ln ls mkdir mv
d127 1
a127 1
lsrc usr /sbin/			ifconfig
@


1.44
log
@Add ews4800mips and sh3 heads only listed in src/tools/Makefile.nbincludes.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.43 2019/09/12 20:10:00 bad Exp $
d84 1
a84 1
ARCH_EXTRA="$ARCH_EXTRA ews4800mips/include/pdinfo.h
@


1.43
log
@Make include_headerlist ignore files in already exported directories.
Invoke include_headerlist after exporting the ARCHS directories.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.42 2019/09/12 18:28:05 bad Exp $
d83 9
@


1.42
log
@Summary: export the files from headerlist before the ARCHS's includes.
Or else cvs export will complain about them being in the way.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.41 2019/09/12 17:35:58 bad Exp $
d76 2
a77 1
		    -e "/^\.?\/?/s##src${pfx}#" headerlist
a143 5
	# the includes mentioned in src/tools/headerlist are required.
	# pull them in first or else CVS export will complain if they
	# have been checked out as one of the usefule archs.
	include_headerlist sys /sys/arch/

d148 4
@


1.41
log
@Summary: add the files from src/tools/headerlist to the output.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.40 2019/09/12 15:17:08 bad Exp $
d143 5
a154 2
	# the includes mentioned in src/tools/headerlist are required
	include_headerlist sys /sys/arch/
@


1.40
log
@Summary: pax needs pack_dev.h from mknod. move mknod to sys sources
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.39 2019/09/12 00:56:05 bad Exp $
d66 14
d150 2
@


1.39
log
@Summary: ammend previous. remove pax from userspace sources.

CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.38 2019/09/12 00:17:03 bad Exp $
d85 1
d105 1
a105 1
lsrc usr /sbin/			ifconfig mknod
@


1.38
log
@Summary: add grep and stat.

CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.37 2019/09/11 22:30:16 bad Exp $
d99 1
a99 1
lsrc usr /bin/			chmod cp dd df ed ln ls mkdir mv pax
@


1.37
log
@add src/external/public-domain/xz.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.36 2019/02/17 23:50:53 bad Exp $
d79 1
a79 1
lsrc sys /bin/			cat
d83 1
a83 1
lsrc sys /usr.bin/		genassym stat uname
@


1.36
log
@npfctl needs externalbsd/libnv.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.35 2018/04/01 04:35:06 ryo Exp $
d78 1
@


1.35
log
@Add initial support for ARMv8 (AARCH64) (by nisimura@@ and ryo@@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@@, jmcneill@@)
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.34 2015/07/07 12:40:13 justin Exp $
d112 1
a112 1
lsrc usr /external/bsd/		libelf libpcap tcpdump wpa
@


1.35.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.36 2019/02/17 23:50:53 bad Exp $
d112 1
a112 1
lsrc usr /external/bsd/		libelf libnv libpcap tcpdump wpa
@


1.35.2.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d3 1
a3 1
#	$NetBSD$
a65 15
include_headerlist ()
{
	what=$1
	pfx=$2
	shift 2

	if iswanted ${what}; then
		[ -f headerlist ] \
			|| { echo 'missing file: headerlist' 1>&2; exit 1; }
		sed -E -e '/^#/d' -e '/^[  ]*$/d' \
		    -e "/^\.?\/?/s##src${pfx}#" headerlist \
		    | egrep -v "^src${pfx}($(echo "$@@" | tr ' ' \|))/include"
	fi
}

a67 9
# files listed in src/tools/Makefile.nbincludes
ARCHS_EXTRA="$ARCHS_EXTRA ews4800mips/include/pdinfo.h
ews4800mips/include/vtoc.h
dreamcast/include/endian_machdep.h
evbsh3/include/endian_machdep.h
hpcsh/include/endian_machdep.h
landisk/include/endian_machdep.h
mmeye/include/endian_machdep.h
sh3/include/endian_machdep.h"
d96 1
a96 1
lsrc usr /lib/lib		pthread rmt wrap y z
d112 1
a112 1
lsrc usr /external/bsd/		libnv libpcap tcpdump wpa
d121 1
a121 6
	iswanted sys && \
	    echo \!src/sys/arch \
		 \!src/sys/external/gpl2/dts \
		 \!src/sys/external/bsd/drm \
		 \!src/sys/external/bsd/drm2 \
		src/sys
a130 4
	# the includes mentioned in src/tools/headerlist are required.
	# but pull in only those that have not been pulled in by the previous
	# loop
	include_headerlist sys /sys/arch/ ${ARCHS}
@


1.34
log
@Add uname to rump sources
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.33 2015/06/29 08:40:52 pooka Exp $
d66 1
a66 1
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 evbarm64 riscv"
@


1.34.16.1
log
@Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.35 2018/04/01 04:35:06 ryo Exp $
d66 1
a66 1
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 riscv"
@


1.33
log
@add brconfig to userland utils
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.32 2015/06/15 11:20:18 pooka Exp $
d82 1
a82 1
lsrc sys /usr.bin/		genassym stat
@


1.32
log
@add mixerctl to userland utils
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.31 2015/04/25 08:48:06 pooka Exp $
d100 1
a100 1
lsrc usr /sbin/			cgdconfig chown
@


1.31
log
@Add libkvm to list of userspace libraries.

Even though kvm per se isn't support by rump kernels at least for now,
libkvm contains methods such as kvm_getproc2() which can be necessary for
compiling existing applications with kvm awareness as rumprun unikernels.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.30 2015/04/17 13:04:19 pooka Exp $
d109 1
a109 1
lsrc usr /usr.bin/		kdump ktrace sockstat
@


1.30
log
@include sockstat in list of utilities
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.29 2015/03/07 22:00:07 justin Exp $
d95 1
a95 1
lsrc usr /lib/lib		crypt ipsec m npf pci prop
@


1.29
log
@Add risc-v to checked out rump architectures
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.28 2015/02/13 00:31:42 pooka Exp $
d109 1
a109 1
lsrc usr /usr.bin/		kdump ktrace
@


1.28
log
@add libc++
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.27 2015/02/08 20:22:01 justin Exp $
d66 1
a66 1
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 evbarm64"
@


1.27
log
@Add rtadvd to rump user sources
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.26 2014/12/24 21:21:18 justin Exp $
d92 2
d123 4
d136 2
@


1.26
log
@Add fdisk to rump listsrcdirs
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.25 2014/12/23 13:23:47 justin Exp $
d109 1
a109 1
lsrc usr /usr.sbin/		vnconfig wlanctl
@


1.25
log
@Add mdconfig to rump listsrcdirs
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.24 2014/12/10 16:54:58 pooka Exp $
d99 1
a99 1
lsrc usr /sbin/			disklabel dump
@


1.24
log
@include lib/i18n_module in user sources

It's used by the libc build to determine the citrus module version,
so including it will give us consistent results both with a full
NetBSD checkout and a rumprun things only checkout.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.23 2014/12/05 01:49:51 pooka Exp $
d108 2
a109 2
lsrc usr /usr.sbin/		arp dumpfs ndp npf pcictl vnconfig
lsrc usr /usr.sbin/		wlanctl
@


1.23
log
@Add genassym

It's not reeeaaallly required currently, but libc build for some archs
(e.g. arm) wants to run it, and genassym is small enough for it to be
simplest to just include it.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.22 2014/10/29 21:16:06 justin Exp $
d92 1
@


1.22
log
@Add libelf to rump directories
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.21 2014/10/29 19:59:32 pooka Exp $
d82 1
a82 1
lsrc sys /usr.bin/		stat
@


1.22.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.29 2015/03/07 22:00:07 justin Exp $
d66 1
a66 1
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 evbarm64 riscv"
d82 1
a82 1
lsrc sys /usr.bin/		genassym stat
a91 3
# NOTE! libc++ is handled below as a special case due to the NetBSD
# dist directory consisting ~90% (50+MB) of tests unnecessary to us
lsrc usr /lib/			i18n_module
d98 1
a98 1
lsrc usr /sbin/			disklabel dump fdisk
d107 2
a108 2
lsrc usr /usr.sbin/		arp dumpfs mdconfig ndp npf pcictl
lsrc usr /usr.sbin/		rtadvd vnconfig wlanctl
a119 4
	iswanted usr && \
	    echo \!src/external/bsd/libc++/dist/libcxx/test \
	           src/external/bsd/libc++

a128 2

	lsrc usr /external /bsd/libc++
@


1.22.2.2
log
@Sync with HEAD
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.22.2.1 2015/04/06 15:18:24 skrll Exp $
d95 1
a95 1
lsrc usr /lib/lib		crypt ipsec kvm m npf pci prop
d109 1
a109 1
lsrc usr /usr.bin/		kdump ktrace sockstat
@


1.22.2.3
log
@Sync with HEAD
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.22.2.2 2015/06/06 14:40:26 skrll Exp $
d82 1
a82 1
lsrc sys /usr.bin/		genassym stat uname
d100 1
a100 1
lsrc usr /sbin/			brconfig cgdconfig chown
d109 1
a109 1
lsrc usr /usr.bin/		kdump ktrace mixerctl sockstat
@


1.21
log
@Perform internal consistency check automatically.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.20 2014/10/29 19:35:29 justin Exp $
d109 1
a109 1
lsrc usr /external/bsd/		libpcap tcpdump wpa
@


1.20
log
@Revert, zfs was already elsewhere in list
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.19 2014/10/29 17:36:07 justin Exp $
d13 8
a20 3
# Note: after making changes, test that "sh listsrcdirs all | sort | uniq -d"
# returns an empty set.
#
@


1.19
log
@Add zfs files to rump userspace sources
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.18 2014/08/11 22:13:56 justin Exp $
a104 1
lsrc usr /external/cddl/	osnet
@


1.18
log
@Add aarch64 to rump srcdirs
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.17 2014/07/09 12:20:32 pooka Exp $
d105 1
@


1.17
log
@Make the file system utility list consistent between fsck, mount and newfs.
For now, include ext2, ffs and msdosfs (and as a "special case", mount_tmpfs).
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.16 2014/07/09 12:14:47 pooka Exp $
d61 1
a61 1
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips"
@


1.16
log
@split "sys" further into "sys" and "posix", per comments from justin
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.15 2014/07/08 14:30:21 pooka Exp $
d93 2
a94 2
lsrc usr /sbin/			disklabel dump fsck fsck_ext2fs fsck_ffs
lsrc usr /sbin/			fsck_lfs fsck_msdos fsck_v7fs
d96 3
a98 3
lsrc usr /sbin/			modstat mount mount_ffs mount_tmpfs newfs
lsrc usr /sbin/			newfs_v7fs newfs_msdos newfs_ext2fs
lsrc usr /sbin/			newfs_lfs newfs_sysvbfs newfs_udf
d102 1
a102 1
lsrc usr /usr.sbin/		arp dumpfs makefs ndp npf pcictl vnconfig
@


1.15
log
@In addition to kernel/tools sources, include another selection of sources
useful for running application stacks on rump kernels.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.14 2014/06/15 14:36:57 pooka Exp $
d7 2
a8 2
# This script echoes the NetBSD source directories required to build rump
# kernels with TOOLS_BUILDRUMP=yes (used for example by buildrump.sh).
d13 3
d18 4
a21 1
em=sys
d24 1
a24 1
unset cvsmode
d29 8
a36 5
[ ! -z "${1}" ] && em=$1
# "both" is undocumented, can be used for checking dupes:
# sh listsrcdirs both | sort | uniq -d
if [ "${em}" != "sys" -a "${em}" != "usr" -a "${em}" != "both" ]; then
	echo 'mode must be sys or usr'
d38 12
a49 1
fi
d57 2
a58 3
	if [ "${em}" = "both" -o "${what}" = "${em}" ]; then
		for arg in $* ; do echo src${pfx}${arg} ; done
	fi
d64 2
a65 1
# sources necessary for building rump kernel components
d69 1
a69 2
lsrc sys /lib/lib		c util rump
lsrc sys /lib/librump		user client hijack dev net vfs
d76 2
a77 2
lsrc sys /usr.bin/		rpcgen rump_server rump_allserver rump_wmd
lsrc sys /usr.bin/		stat shmif_dumpbus
d80 6
d112 2
a113 2
if ${cvsmode:-false}; then
	[ "${em}" = "sys" ] && echo \!src/sys/arch src/sys
@


1.14
log
@Add cat, rpcgen and stat to TOOLS_BUILDRUMP.  They're useful for
installing headers for the app stack cases that need it done, and small
enough to not matter for the kernel-only cases that don't.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.13 2014/02/24 19:22:14 pooka Exp $
d14 18
a31 1
precho ()
d34 6
a39 3
	pfx=$1
	shift
	for arg in $* ; do echo ${pfx}${arg} ; done
d45 39
a83 14
precho src/			build.sh Makefile Makefile.inc
precho src/			tools common include share/mk
precho src/etc/			Makefile.params master.passwd group
precho src/lib/lib		c util rump
precho src/lib/librump		user client hijack dev net vfs
precho src/external/bsd/	flex mdocml byacc
precho src/external/cddl/	osnet
precho src/external/historical/	nawk
precho src/bin/			cat
precho src/usr.bin/		make xinstall config mktemp sed tsort
precho src/usr.bin/		lorder join cksum m4 mkdep Makefile.inc
precho src/usr.bin/		rpcgen rump_server rump_allserver rump_wmd
precho src/usr.bin/		stat shmif_dumpbus
precho src/usr.sbin/		mtree
d87 2
a88 2
if [ "${1}" = '-c' ]; then
	echo \!src/sys/arch src/sys
d92 1
a92 1
		precho src/sys/arch/${arch}/ include ${arch} Makefile
d95 1
a95 1
		echo src/sys/arch/${extra}
d98 1
a98 1
	echo src/sys
@


1.13
log
@+rump_wmd
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.12 2013/12/20 10:13:24 pooka Exp $
d33 1
d36 2
a37 2
precho src/usr.bin/		rump_server rump_allserver rump_wmd
precho src/usr.bin/		shmif_dumpbus
@


1.13.2.1
log
@Rebase.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.17 2014/07/09 12:20:32 pooka Exp $
d7 2
a8 2
# This script echoes the NetBSD source directories useful for
# rump kernels.
a12 3
# Note: after making changes, test that "sh listsrcdirs all | sort | uniq -d"
# returns an empty set.
#
d14 2
a15 2
# default echomode (for compat)
em='sys posix'
d17 1
a17 7
# everything we support
all='sys posix usr'

# mini-getopt (so that we don't have to with getopt vs. getopts
cvsmode=false
if [ "${1}" = "-c" ]; then
	cvsmode=true
d19 1
a19 31
fi

[ ! -z "${*}" ] && em="${*}"
[ "$em" = all ] && em="${all}"
for x in ${em}; do
	for y in ${all}; do
		[ $x = $y ] && continue 2
	done
	echo invalid specifier $x
	exit 1
done

iswanted ()
{

	for x in ${em}; do
		if [ "$x" = "$1" ]; then
			return 0
		fi
	done
	return 1
}

lsrc ()
{

	what=$1
	pfx=$2
	shift 2

	iswanted ${what} && for arg in $* ; do echo src${pfx}${arg} ; done
d25 13
a37 45
# sources necessary for building rump kernel components.  This list
# depends on TOOLS_BUILDRUMP=yes.
lsrc sys /			build.sh Makefile Makefile.inc
lsrc sys /			tools common include share/mk
lsrc sys /etc/			Makefile.params master.passwd group
lsrc sys /lib/lib		c util
lsrc sys /external/bsd/		flex mdocml byacc
lsrc sys /external/cddl/	osnet
lsrc sys /external/historical/	nawk
lsrc sys /bin/			cat
lsrc sys /usr.bin/		make xinstall config mktemp sed tsort
lsrc sys /usr.bin/		lorder join cksum m4 mkdep Makefile.inc
lsrc sys /usr.bin/		rpcgen rump_wmd
lsrc sys /usr.bin/		stat
lsrc sys /usr.sbin/		mtree

# sources hosted in the NetBSD tree that are required/useful
# when targeting POSIX-y platforms
lsrc posix /lib/lib		rump rumpdev rumpnet rumpvfs
lsrc posix /lib/lib		rumpuser rumpclient rumphijack
lsrc posix /usr.bin/		rump_server rump_allserver shmif_dumpbus

# assorted userspace sources, mostly for configuration & diagnostics
lsrc usr /lib/lib		crypt ipsec m npf pci prop
lsrc usr /lib/lib		pthread rmt y z
lsrc usr /libexec/		ld.elf_so
lsrc usr /bin/			chmod cp dd df ed ln ls mkdir mv pax
lsrc usr /bin/			rm rmdir
lsrc usr /sbin/			cgdconfig chown
lsrc usr /sbin/			disklabel dump
lsrc usr /sbin/			fsck fsck_ext2fs fsck_ffs fsck_msdos
lsrc usr /sbin/			ifconfig mknod
lsrc usr /sbin/			modstat mount
lsrc usr /sbin/			mount_ext2fs mount_ffs mount_msdos mount_tmpfs
lsrc usr /sbin/			newfs newfs_ext2fs newfs_msdos
lsrc usr /sbin/			ping ping6 raidctl reboot
lsrc usr /sbin/			rndctl route setkey sysctl umount
lsrc usr /usr.bin/		kdump ktrace
lsrc usr /usr.sbin/		arp dumpfs ndp npf pcictl vnconfig
lsrc usr /usr.sbin/		wlanctl
lsrc usr /external/bsd/		libpcap tcpdump wpa
lsrc usr /crypto/		Makefile.openssl
lsrc usr /crypto/dist/		ipsec-tools
lsrc usr /crypto/external/bsd/	openssl

d41 2
a42 2
if ${cvsmode}; then
	iswanted sys && echo \!src/sys/arch src/sys
d46 1
a46 1
		lsrc sys /sys/arch/${arch}/ include ${arch} Makefile
d49 1
a49 1
		lsrc sys /sys/arch/ ${extra}
d52 1
a52 1
	lsrc sys / sys
@


1.13.4.1
log
@file listsrcdirs was added on branch yamt-pagecache on 2014-05-22 11:41:11 +0000
@
text
@d1 53
@


1.13.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 53
#!/bin/sh
#
#	$NetBSD$
#

#
# This script echoes the NetBSD source directories required to build rump
# kernels with TOOLS_BUILDRUMP=yes (used for example by buildrump.sh).
# Feed the output to whichever method you use to obtain NetBSD sources, e.g.
#
# ./listsrcdirs | xargs cvs -d anoncvs@@anoncvs.netbsd.org:/cvsroot -z3 co -P
#

precho ()
{

	pfx=$1
	shift
	for arg in $* ; do echo ${pfx}${arg} ; done
}

ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips"
ARCHS_EXTRA="arm/arm32 Makefile"

precho src/			build.sh Makefile Makefile.inc
precho src/			tools common include share/mk
precho src/etc/			Makefile.params master.passwd group
precho src/lib/lib		c util rump
precho src/lib/librump		user client hijack dev net vfs
precho src/external/bsd/	flex mdocml byacc
precho src/external/cddl/	osnet
precho src/external/historical/	nawk
precho src/usr.bin/		make xinstall config mktemp sed tsort
precho src/usr.bin/		lorder join cksum m4 mkdep Makefile.inc
precho src/usr.bin/		rump_server rump_allserver rump_wmd
precho src/usr.bin/		shmif_dumpbus
precho src/usr.sbin/		mtree

# If -c is given, use CVS syntax to exclude large subdirectories
# of sys.  Otherwise just do it wholesale.
if [ "${1}" = '-c' ]; then
	echo \!src/sys/arch src/sys

	# pick a few useful archs, namely those mentioned in buildrump.sh
	for arch in ${ARCHS}; do
		precho src/sys/arch/${arch}/ include ${arch} Makefile
	done
	for extra in ${ARCHS_EXTRA}; do
		echo src/sys/arch/${extra}
	done
else
	echo src/sys
fi
@


1.12
log
@include shmif_dumpbus
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.11 2013/10/29 16:19:28 pooka Exp $
d35 2
a36 1
precho src/usr.bin/		rump_server rump_allserver shmif_dumpbus
@


1.11
log
@Add MIPS.  Requested by Justin Cormack.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.10 2013/10/29 16:18:42 pooka Exp $
d34 2
a35 2
precho src/usr.bin/		lorder join cksum m4 mkdep
precho src/usr.bin/		Makefile.inc rump_server rump_allserver
@


1.10
log
@Maintain arch list in a separate variable.
no functional change
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.9 2013/09/19 16:16:03 pooka Exp $
d22 1
a22 1
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc"
@


1.9
log
@Pull in all of sys/dev (i.e. don't skip pci/ and microcode/).
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.8 2013/09/10 17:08:57 pooka Exp $
d22 3
d44 5
a48 2
	for x in amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc; do
		precho src/sys/arch/${x}/ include ${x} Makefile
a49 2
	echo src/sys/arch/arm/arm32
	echo src/sys/arch/Makefile
@


1.8
log
@+rump_server
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.7 2013/08/12 10:25:05 pooka Exp $
d38 1
a38 2
	echo \!src/sys/arch \!src/sys/dev/microcode	\
	    \!src/sys/dev/pci src/sys
@


1.7
log
@building ARM rump kernels now requires sys/arch/arm/arm32
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.6 2013/08/11 09:10:47 pooka Exp $
d32 1
@


1.6
log
@Include powerpc+evbpcc.  Allows the buildrump.sh checkout to work on
powerpc machines.  Tested on Linux/ppc64 by Justin Cormack.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.5 2013/07/30 09:29:34 pooka Exp $
d44 1
@


1.5
log
@Include Makefiles under sys/arch.

This makes it easy to install the set of kernel headers that were used
by buildrump.sh.  Requested by Justin Cormack for ljsyscall (Lua interface
definitions).
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.4 2013/03/18 15:55:43 pooka Exp $
d41 1
a41 1
	for x in amd64 i386 x86 arm evbarm sparc sparc64 ; do
@


1.4
log
@add librumphijack to the list
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.3 2013/03/10 14:15:54 pooka Exp $
d42 1
a42 1
		precho src/sys/arch/${x}/ include ${x}
d44 1
@


1.4.6.1
log
@sync with head
@
text
@d3 1
a3 1
#	$NetBSD$
d41 2
a42 2
	for x in amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc; do
		precho src/sys/arch/${x}/ include ${x} Makefile
a43 2
	echo src/sys/arch/arm/arm32
	echo src/sys/arch/Makefile
@


1.4.6.2
log
@sync with head
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.4.6.1 2013/08/28 23:59:36 rmind Exp $
a21 3
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips"
ARCHS_EXTRA="arm/arm32 Makefile"

d31 1
a31 3
precho src/usr.bin/		lorder join cksum m4 mkdep Makefile.inc
precho src/usr.bin/		rump_server rump_allserver rump_wmd
precho src/usr.bin/		shmif_dumpbus
d37 2
a38 1
	echo \!src/sys/arch src/sys
d41 2
a42 5
	for arch in ${ARCHS}; do
		precho src/sys/arch/${arch}/ include ${arch} Makefile
	done
	for extra in ${ARCHS_EXTRA}; do
		echo src/sys/arch/${extra}
d44 2
@


1.3
log
@Add -c, which produces cvs syntax output for the necessary subset
of src/sys.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs,v 1.2 2013/03/10 09:18:50 pooka Exp $
d26 1
a26 1
precho src/lib/librump		user client dev net vfs
@


1.2
log
@Avoid dependency on curlybrace expansion.
@
text
@d3 1
a3 1
#	$NetBSD: listsrcdirs v 1.1 2013/02/13 18:45:20 pooka Exp $
a12 3
# TODO: avoid checkout of sys/arch, since only sys/arch/*/include
# is required.
#
d23 1
a23 1
precho src/			sys tools common include share/mk
d33 14
@


1.1
log
@Move the list of source directories required by TOOLS_BUILDRUMP=yes from
the buildrump.sh repo to here.  While I don't expect the list to change
often, it's a function of the NetBSD source tree -r/-D and therefore
easier to maintain here.
@
text
@d1 3
a3 1
#	$NetBSD$
d7 1
a7 2
# Run this script with a shell which supports brace expansion (bash, csh, etc.)
# It will echo all of the NetBSD source directories required to build rump
d11 4
a14 1
# bash listsrcdirs | xargs cvs -d anoncvs@@anoncvs.netbsd.org:/cvsroot -z3 co -P
d17 19
a35 12
echo src/{build.sh,Makefile,Makefile.inc} \
    src/{sys,tools,common,include} \
    src/share/mk \
    src/etc/{Makefile.params,master.passwd,group} \
    src/lib/lib{c,util} \
    src/lib/librump{user,client,,dev,net,vfs} \
    src/external/bsd/{flex,mdocml,byacc} \
    src/external/historical/nawk \
    src/external/cddl/osnet \
    src/usr.bin/{make,xinstall,config,mktemp,sed,tsort,cksum,m4,mkdep,lorder} \
    src/usr.bin/join \
    src/usr.sbin/mtree
@


1.1.4.1
log
@file listsrcdirs was added on branch tls-maxphys on 2013-02-25 00:30:07 +0000
@
text
@d1 24
@


1.1.4.2
log
@resync with head
@
text
@a0 24
#	$NetBSD$
#

#
# Run this script with a shell which supports brace expansion (bash, csh, etc.)
# It will echo all of the NetBSD source directories required to build rump
# kernels with TOOLS_BUILDRUMP=yes (used for example by buildrump.sh).
# Feed the output to whichever method you use to obtain NetBSD sources, e.g.
#
# bash listsrcdirs | xargs cvs -d anoncvs@@anoncvs.netbsd.org:/cvsroot -z3 co -P
#

echo src/{build.sh,Makefile,Makefile.inc} \
    src/{sys,tools,common,include} \
    src/share/mk \
    src/etc/{Makefile.params,master.passwd,group} \
    src/lib/lib{c,util} \
    src/lib/librump{user,client,,dev,net,vfs} \
    src/external/bsd/{flex,mdocml,byacc} \
    src/external/historical/nawk \
    src/external/cddl/osnet \
    src/usr.bin/{make,xinstall,config,mktemp,sed,tsort,cksum,m4,mkdep,lorder} \
    src/usr.bin/join \
    src/usr.sbin/mtree
@


1.1.4.3
log
@resync from head
@
text
@a0 2
#!/bin/sh
#
d5 2
a6 1
# This script echoes the NetBSD source directories required to build rump
d10 1
a10 1
# ./listsrcdirs | xargs cvs -d anoncvs@@anoncvs.netbsd.org:/cvsroot -z3 co -P
d13 12
a24 33
precho ()
{

	pfx=$1
	shift
	for arg in $* ; do echo ${pfx}${arg} ; done
}

precho src/			build.sh Makefile Makefile.inc
precho src/			tools common include share/mk
precho src/etc/			Makefile.params master.passwd group
precho src/lib/lib		c util rump
precho src/lib/librump		user client hijack dev net vfs
precho src/external/bsd/	flex mdocml byacc
precho src/external/cddl/	osnet
precho src/external/historical/	nawk
precho src/usr.bin/		make xinstall config mktemp sed tsort
precho src/usr.bin/		lorder join cksum m4 mkdep
precho src/usr.sbin/		mtree

# If -c is given, use CVS syntax to exclude large subdirectories
# of sys.  Otherwise just do it wholesale.
if [ "${1}" = '-c' ]; then
	echo \!src/sys/arch \!src/sys/dev/microcode	\
	    \!src/sys/dev/pci src/sys

	# pick a few useful archs, namely those mentioned in buildrump.sh
	for x in amd64 i386 x86 arm evbarm sparc sparc64 ; do
		precho src/sys/arch/${x}/ include ${x}
	done
else
	echo src/sys
fi
@


1.1.4.4
log
@Rebase to HEAD as of a few days ago.
@
text
@d7 2
a8 2
# This script echoes the NetBSD source directories useful for
# rump kernels.
a12 3
# Note: after making changes, test that "sh listsrcdirs all | sort | uniq -d"
# returns an empty set.
#
d14 2
a15 5
# default echomode (for compat)
em='sys posix'

# everything we support
all='sys posix usr'
d17 1
a17 4
# mini-getopt (so that we don't have to with getopt vs. getopts
cvsmode=false
if [ "${1}" = "-c" ]; then
	cvsmode=true
d19 1
a19 21
fi

[ ! -z "${*}" ] && em="${*}"
[ "$em" = all ] && em="${all}"
for x in ${em}; do
	for y in ${all}; do
		[ $x = $y ] && continue 2
	done
	echo invalid specifier $x
	exit 1
done

iswanted ()
{

	for x in ${em}; do
		if [ "$x" = "$1" ]; then
			return 0
		fi
	done
	return 1
d22 11
a32 58
lsrc ()
{

	what=$1
	pfx=$2
	shift 2

	iswanted ${what} && for arg in $* ; do echo src${pfx}${arg} ; done
}

ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips"
ARCHS_EXTRA="arm/arm32 Makefile"

# sources necessary for building rump kernel components.  This list
# depends on TOOLS_BUILDRUMP=yes.
lsrc sys /			build.sh Makefile Makefile.inc
lsrc sys /			tools common include share/mk
lsrc sys /etc/			Makefile.params master.passwd group
lsrc sys /lib/lib		c util
lsrc sys /external/bsd/		flex mdocml byacc
lsrc sys /external/cddl/	osnet
lsrc sys /external/historical/	nawk
lsrc sys /bin/			cat
lsrc sys /usr.bin/		make xinstall config mktemp sed tsort
lsrc sys /usr.bin/		lorder join cksum m4 mkdep Makefile.inc
lsrc sys /usr.bin/		rpcgen rump_wmd
lsrc sys /usr.bin/		stat
lsrc sys /usr.sbin/		mtree

# sources hosted in the NetBSD tree that are required/useful
# when targeting POSIX-y platforms
lsrc posix /lib/lib		rump rumpdev rumpnet rumpvfs
lsrc posix /lib/lib		rumpuser rumpclient rumphijack
lsrc posix /usr.bin/		rump_server rump_allserver shmif_dumpbus

# assorted userspace sources, mostly for configuration & diagnostics
lsrc usr /lib/lib		crypt ipsec m npf pci prop
lsrc usr /lib/lib		pthread rmt y z
lsrc usr /libexec/		ld.elf_so
lsrc usr /bin/			chmod cp dd df ed ln ls mkdir mv pax
lsrc usr /bin/			rm rmdir
lsrc usr /sbin/			cgdconfig chown
lsrc usr /sbin/			disklabel dump
lsrc usr /sbin/			fsck fsck_ext2fs fsck_ffs fsck_msdos
lsrc usr /sbin/			ifconfig mknod
lsrc usr /sbin/			modstat mount
lsrc usr /sbin/			mount_ext2fs mount_ffs mount_msdos mount_tmpfs
lsrc usr /sbin/			newfs newfs_ext2fs newfs_msdos
lsrc usr /sbin/			ping ping6 raidctl reboot
lsrc usr /sbin/			rndctl route setkey sysctl umount
lsrc usr /usr.bin/		kdump ktrace
lsrc usr /usr.sbin/		arp dumpfs ndp npf pcictl vnconfig
lsrc usr /usr.sbin/		wlanctl
lsrc usr /external/bsd/		libpcap tcpdump wpa
lsrc usr /crypto/		Makefile.openssl
lsrc usr /crypto/dist/		ipsec-tools
lsrc usr /crypto/external/bsd/	openssl

d36 3
a38 2
if ${cvsmode}; then
	iswanted sys && echo \!src/sys/arch src/sys
d41 2
a42 5
	for arch in ${ARCHS}; do
		lsrc sys /sys/arch/${arch}/ include ${arch} Makefile
	done
	for extra in ${ARCHS_EXTRA}; do
		lsrc sys /sys/arch/ ${extra}
d45 1
a45 1
	lsrc sys / sys
@


1.1.4.5
log
@update from HEAD
@
text
@d13 3
a15 8

# Check that the intersection between all branches is the null set
if [ "${LISTSRCDIRS_INSANITY}" != 'y' ]; then
	if [ ! -z "$(LISTSRCDIRS_INSANITY=y sh $0 all | sort | uniq -d)" ]; then
		echo $0: INTERNAL ERROR
		exit 1
	fi
fi
d61 1
a61 1
ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips aarch64 evbarm64 riscv"
d77 1
a77 1
lsrc sys /usr.bin/		genassym stat uname
d87 1
a87 4
# NOTE! libc++ is handled below as a special case due to the NetBSD
# dist directory consisting ~90% (50+MB) of tests unnecessary to us
lsrc usr /lib/			i18n_module
lsrc usr /lib/lib		crypt ipsec kvm m npf pci prop
d92 2
a93 2
lsrc usr /sbin/			brconfig cgdconfig chown
lsrc usr /sbin/			disklabel dump fdisk
d101 4
a104 4
lsrc usr /usr.bin/		kdump ktrace mixerctl sockstat
lsrc usr /usr.sbin/		arp dumpfs mdconfig ndp npf pcictl
lsrc usr /usr.sbin/		rtadvd vnconfig wlanctl
lsrc usr /external/bsd/		libelf libpcap tcpdump wpa
a114 4
	iswanted usr && \
	    echo \!src/external/bsd/libc++/dist/libcxx/test \
	           src/external/bsd/libc++

a123 2

	lsrc usr /external /bsd/libc++
@


