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

File: [cvs.NetBSD.org] / src / sys / rump / fs / Attic / Makefile.rumpfs (download)

Revision 1.8, Wed Jan 2 18:15:12 2008 UTC (16 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-1, wrstuden-revivesa-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2, haad-dm
Changes since 1.7: +2 -2 lines

Add the ability to run puffs in userspace.  This means that puffs
can now be developed in userspace using puffs for development
(I hate emulators, they are annoyingly clumsy).

To e.g. mount psshfs using puffs-on-puffs, run fs/bin/syspuffs/syspuffs
with the regular mount_psshfs command line as an argument:

    golem> ./syspuffs /usr/sbin/mount_psshfs ftp.netbsd.org:/pub /puffs

This will make the mount appear as usual, with the exception that the
requests will be passed through puffs both in the kernel and userspace:

    ftp.netbsd.org:/pub on /puffs type puffs|p2k|puffs|psshfs

#	$NetBSD: Makefile.rumpfs,v 1.8 2008/01/02 18:15:12 pooka Exp $
#

.include <bsd.own.mk>

RUMPFSLIST=	cd9660fs efs ext2fs ffs hfs lfs msdosfs ntfs syspuffs tmpfs udf
RUMPFSALL=	${RUMPFSLIST} p2k ukfs ufs

RUMPFSLIBDIR?=	${NETBSDSRCDIR}/sys/rump/fs/lib

.for var in ${RUMPFSALL}
RUMPFSLIBS+=lib${var}
.endfor

# this is a hack: PRINTOBJDIR is really expensive, so do it only when necessary
.ifndef RUMPFS_NOFSLIB
RUMPFS_WANT+=${PROG} p2k ukfs
.endif

.for var in ${RUMPFS_WANT}
.ifndef RUMPFSLIB${var:tu}OBJDIR
RUMPFSLIB${var:tu}OBJDIR != cd ${RUMPFSLIBDIR}/lib${var} && ${PRINTOBJDIR}
RUMPFSLD_${var:tu}:=-L${RUMPFSLIB${var:tu}OBJDIR} -Wl,--whole-archive \
		      -l${var} -Wl,--no-whole-archive
RUMPFSDP_${var:tu}:=${RUMPFSLIB${var:tu}OBJDIR}/lib${var}.a

RUMPFSLD_ALL+=${RUMPFSLD_${var:tu}}
RUMPFSDP_ALL+=${RUMPFSDP_${var:tu}}
.endif
.endfor