[BACK]Return to listsrcdirs CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / rump

File: [cvs.NetBSD.org] / src / sys / rump / listsrcdirs (download)

Revision 1.17, Wed Jul 9 12:20:32 2014 UTC (2 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RC1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.16: +7 -7 lines

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).

#	$NetBSD: listsrcdirs,v 1.17 2014/07/09 12:20:32 pooka 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
# Note: after making changes, test that "sh listsrcdirs all | sort | uniq -d"
# returns an empty set.

# 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
if [ "${1}" = "-c" ]; then

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

iswanted ()

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

lsrc ()

	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

# 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

	# pick a few useful archs, namely those mentioned in buildrump.sh
	for arch in ${ARCHS}; do
		lsrc sys /sys/arch/${arch}/ include ${arch} Makefile
	for extra in ${ARCHS_EXTRA}; do
		lsrc sys /sys/arch/ ${extra}
	lsrc sys / sys