Add x_mount, which does not include any MOUNT_PROGS.
Installer does not require all vfs progs and all binaries are crunched after all.
This commit is contained in:
parent
088a73301e
commit
899149f1e5
@ -1,8 +1,8 @@
|
||||
# $NetBSD: Makefile,v 1.11 2001/01/31 20:48:11 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.12 2001/02/18 06:15:48 tsutsui Exp $
|
||||
|
||||
SUBDIR= libhack init_s more ssh tls \
|
||||
x_dd x_dhclient x_dmesg x_ed x_ftp x_gzip x_ifconfig x_netstat x_ping \
|
||||
x_route x_sh x_umount zcat
|
||||
x_dd x_dhclient x_dmesg x_ed x_ftp x_gzip x_ifconfig x_mount \
|
||||
x_netstat x_ping x_route x_sh x_umount zcat
|
||||
|
||||
.if exists(sysinst/arch/${MACHINE})
|
||||
SUBDIR+=sysinst
|
||||
|
20
distrib/utils/x_mount/Makefile
Normal file
20
distrib/utils/x_mount/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
# $NetBSD: Makefile,v 1.1 2001/02/18 06:15:49 tsutsui Exp $
|
||||
# Build a smaller mount (i.e. for boot media)
|
||||
|
||||
PROG= mount
|
||||
MKMAN= no
|
||||
|
||||
SRCDIR= ${.CURDIR}/../../../sbin/mount
|
||||
|
||||
SRCS= mount.c vfslist.c
|
||||
|
||||
CPPFLAGS+= -DNO_MOUNT_PROGS -I${SRCDIR}
|
||||
COPTS+= -Os
|
||||
LDSTATIC?=-static
|
||||
WARNS?= 1
|
||||
|
||||
all: ${PROG}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SRCDIR}
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mount.c,v 1.55 2000/11/01 04:10:02 enami Exp $ */
|
||||
/* $NetBSD: mount.c,v 1.56 2001/02/18 06:15:49 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1989, 1993, 1994
|
||||
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1989, 1993, 1994\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: mount.c,v 1.55 2000/11/01 04:10:02 enami Exp $");
|
||||
__RCSID("$NetBSD: mount.c,v 1.56 2001/02/18 06:15:49 tsutsui Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -83,7 +83,9 @@ static int mountfs __P((const char *, const char *, const char *,
|
||||
static void prmount __P((struct statfs *));
|
||||
static void usage __P((void));
|
||||
|
||||
#ifndef NO_MOUNT_PROGS
|
||||
void checkname __P((int, char *[]));
|
||||
#endif
|
||||
int main __P((int, char *[]));
|
||||
|
||||
/* Map from mount otions to printable formats. */
|
||||
@ -130,8 +132,10 @@ main(argc, argv)
|
||||
char *options;
|
||||
const char *mountopts, *fstypename;
|
||||
|
||||
#ifndef NO_MOUNT_PROGS
|
||||
/* if called as specific mount, call it's main mount routine */
|
||||
checkname(argc, argv);
|
||||
#endif
|
||||
|
||||
/* started as "mount" */
|
||||
all = forceall = init_flags = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user