head	1.31;
access;
symbols
	netbsd-11-0-RC4:1.28.4.1
	netbsd-11-0-RC3:1.28.4.1
	netbsd-11-0-RC2:1.28.4.1
	netbsd-11-0-RC1:1.28.4.1
	perseant-exfatfs-base-20250801:1.28
	netbsd-11:1.28.0.4
	netbsd-11-base:1.28
	netbsd-10-1-RELEASE:1.25.6.1
	perseant-exfatfs-base-20240630:1.28
	perseant-exfatfs:1.28.0.2
	perseant-exfatfs-base:1.28
	netbsd-8-3-RELEASE:1.15.4.2
	netbsd-9-4-RELEASE:1.17.4.2
	netbsd-10-0-RELEASE:1.25
	netbsd-10-0-RC6:1.25
	netbsd-10-0-RC5:1.25
	netbsd-10-0-RC4:1.25
	netbsd-10-0-RC3:1.25
	netbsd-10-0-RC2:1.25
	netbsd-10-0-RC1:1.25
	netbsd-10:1.25.0.6
	netbsd-10-base:1.25
	netbsd-9-3-RELEASE:1.17.4.1
	cjep_sun2x-base1:1.25
	cjep_sun2x:1.25.0.4
	cjep_sun2x-base:1.25
	cjep_staticlib_x-base1:1.25
	netbsd-9-2-RELEASE:1.17.4.1
	cjep_staticlib_x:1.25.0.2
	cjep_staticlib_x-base:1.25
	netbsd-9-1-RELEASE:1.17.4.1
	phil-wifi-20200421:1.25
	phil-wifi-20200411:1.25
	is-mlppp:1.23.0.2
	is-mlppp-base:1.23
	phil-wifi-20200406:1.25
	netbsd-8-2-RELEASE:1.15.4.1
	netbsd-9-0-RELEASE:1.17.4.1
	netbsd-9-0-RC2:1.17.4.1
	netbsd-9-0-RC1:1.17.4.1
	phil-wifi-20191119:1.18
	netbsd-9:1.17.0.4
	netbsd-9-base:1.17
	phil-wifi-20190609:1.17
	netbsd-8-1-RELEASE:1.15.4.1
	netbsd-8-1-RC1:1.15.4.1
	pgoyette-compat-merge-20190127:1.16.2.1
	pgoyette-compat-20190127:1.17
	pgoyette-compat-20190118:1.17
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	netbsd-7-2-RELEASE:1.3.6.2
	pgoyette-compat-0728:1.17
	netbsd-8-0-RELEASE:1.15
	phil-wifi:1.17.0.2
	phil-wifi-base:1.17
	pgoyette-compat-0625:1.17
	netbsd-8-0-RC2:1.15
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	netbsd-8-0-RC1:1.15
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.16
	pgoyette-compat-0330:1.16
	pgoyette-compat-0322:1.16
	pgoyette-compat-0315:1.16
	netbsd-7-1-2-RELEASE:1.3.6.2
	pgoyette-compat:1.16.0.2
	pgoyette-compat-base:1.16
	netbsd-7-1-1-RELEASE:1.3.6.2
	matt-nb8-mediatek:1.15.0.8
	matt-nb8-mediatek-base:1.15
	perseant-stdc-iso10646:1.15.0.6
	perseant-stdc-iso10646-base:1.15
	netbsd-8:1.15.0.4
	netbsd-8-base:1.15
	prg-localcount2-base3:1.15
	prg-localcount2-base2:1.15
	prg-localcount2-base1:1.15
	prg-localcount2:1.15.0.2
	prg-localcount2-base:1.15
	pgoyette-localcount-20170426:1.15
	bouyer-socketcan-base1:1.15
	pgoyette-localcount-20170320:1.15
	netbsd-7-1:1.3.6.2.0.6
	netbsd-7-1-RELEASE:1.3.6.2
	netbsd-7-1-RC2:1.3.6.2
	netbsd-7-nhusb-base-20170116:1.3.6.2
	bouyer-socketcan:1.11.0.2
	bouyer-socketcan-base:1.11
	pgoyette-localcount-20170107:1.11
	netbsd-7-1-RC1:1.3.6.2
	pgoyette-localcount-20161104:1.9
	netbsd-7-0-2-RELEASE:1.3.6.2
	localcount-20160914:1.9
	netbsd-7-nhusb:1.3.6.2.0.4
	netbsd-7-nhusb-base:1.3.6.2
	pgoyette-localcount-20160806:1.9
	pgoyette-localcount-20160726:1.9
	pgoyette-localcount:1.9.0.2
	pgoyette-localcount-base:1.9
	netbsd-7-0-1-RELEASE:1.3.6.2
	netbsd-7-0:1.3.6.2.0.2
	netbsd-7-0-RELEASE:1.3.6.2
	netbsd-7-0-RC3:1.3.6.2
	netbsd-7-0-RC2:1.3.6.2
	netbsd-7-0-RC1:1.3.6.2
	netbsd-7:1.3.0.6
	netbsd-7-base:1.3
	yamt-pagecache:1.3.0.4
	yamt-pagecache-base9:1.3
	tls-earlyentropy:1.3.0.2
	tls-earlyentropy-base:1.3
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.3
	riastradh-drm2-base3:1.3
	riastradh-drm2-base2:1.2
	riastradh-drm2-base1:1.2
	riastradh-drm2:1.2.0.2
	riastradh-drm2-base:1.2
	tls-maxphys-base:1.3
	tls-maxphys:1.1.0.6
	khorben-n900:1.1.0.4
	agc-symver:1.1.0.2
	agc-symver-base:1.1;
locks; strict;
comment	@# @;


1.31
date	2025.12.17.20.05.54;	author riastradh;	state Exp;
branches;
next	1.30;
commitid	VTItd4VlxdDOGNmG;

1.30
date	2025.12.03.20.09.16;	author brad;	state Exp;
branches;
next	1.29;
commitid	Y4cqtKg7F8PF90lG;

1.29
date	2025.12.01.21.22.33;	author brad;	state Exp;
branches;
next	1.28;
commitid	JeQkYjZWGfcNCKkG;

1.28
date	2024.05.17.21.31.10;	author christos;	state Exp;
branches
	1.28.4.1;
next	1.27;
commitid	i5TAOhIGrJrNLoaF;

1.27
date	2024.05.17.20.26.48;	author christos;	state Exp;
branches;
next	1.26;
commitid	6Qqq6Fgz2ANLpoaF;

1.26
date	2024.03.15.02.20.58;	author riastradh;	state Exp;
branches;
next	1.25;
commitid	iXAtpIAc4r3Vqc2F;

1.25
date	2020.03.26.07.44.43;	author skrll;	state Exp;
branches
	1.25.6.1;
next	1.24;
commitid	Ma5XlyCLyDLCPS1C;

1.24
date	2020.03.23.11.45.00;	author martin;	state Exp;
branches;
next	1.23;
commitid	BEYYc2g99it0gw1C;

1.23
date	2020.03.01.20.59.54;	author christos;	state Exp;
branches;
next	1.22;
commitid	os9gHVBY60F92KYB;

1.22
date	2020.02.28.13.00.51;	author christos;	state Exp;
branches;
next	1.21;
commitid	zzoJl5z4EdlIrrYB;

1.21
date	2020.01.21.14.58.58;	author mlelstv;	state Exp;
branches;
next	1.20;
commitid	hQRLm34peol9kzTB;

1.20
date	2020.01.21.11.48.10;	author martin;	state Exp;
branches;
next	1.19;
commitid	MyRtd8rnSVFGgyTB;

1.19
date	2019.11.21.13.01.51;	author martin;	state Exp;
branches;
next	1.18;
commitid	p9MTgizoYfwyDILB;

1.18
date	2019.08.14.12.08.27;	author martin;	state Exp;
branches;
next	1.17;
commitid	tbUxcF7ybaLhwZyB;

1.17
date	2018.04.08.15.48.39;	author mlelstv;	state Exp;
branches
	1.17.2.1
	1.17.4.1;
next	1.16;
commitid	Xod3CSAtayruAExA;

1.16
date	2017.10.22.23.15.54;	author joerg;	state Exp;
branches
	1.16.2.1;
next	1.15;
commitid	fUtFBm77XFkMs6cA;

1.15
date	2017.03.18.17.07.04;	author sevan;	state Exp;
branches
	1.15.4.1;
next	1.14;
commitid	ZS9F7GD3YuPbq3Kz;

1.14
date	2017.02.11.22.57.00;	author christos;	state Exp;
branches;
next	1.13;
commitid	PAKcvUGP8i4zuAFz;

1.13
date	2017.02.11.03.07.06;	author christos;	state Exp;
branches;
next	1.12;
commitid	RQbVHlgh5ObhUtFz;

1.12
date	2017.01.24.18.04.02;	author christos;	state Exp;
branches;
next	1.11;
commitid	kdLAgdCEWzeUrfDz;

1.11
date	2016.12.19.16.23.10;	author christos;	state Exp;
branches
	1.11.2.1;
next	1.10;
commitid	8Ah8qzf09AI33Cyz;

1.10
date	2016.12.19.15.50.13;	author christos;	state Exp;
branches;
next	1.9;
commitid	MBU0YKJnXImIRByz;

1.9
date	2015.07.15.11.24.03;	author martin;	state Exp;
branches
	1.9.2.1;
next	1.8;
commitid	ulc5gZ3sMnCpcnty;

1.8
date	2015.02.23.23.21.47;	author joerg;	state Exp;
branches;
next	1.7;
commitid	RbaqkbxcmUWPJbby;

1.7
date	2015.02.16.21.48.48;	author skrll;	state Exp;
branches;
next	1.6;
commitid	PAAXv0yV8AwXrhay;

1.6
date	2014.10.31.08.43.24;	author uebayasi;	state Exp;
branches;
next	1.5;
commitid	53ZS9qjAiatOzkWx;

1.5
date	2014.08.14.18.38.29;	author joerg;	state Exp;
branches;
next	1.4;
commitid	5MztmNmqp7DlnmMx;

1.4
date	2014.08.12.11.49.04;	author martin;	state Exp;
branches;
next	1.3;
commitid	wehGhHV3uXqOa4Mx;

1.3
date	2014.03.02.13.25.43;	author joerg;	state Exp;
branches
	1.3.4.1
	1.3.6.1;
next	1.2;
commitid	n3kXYHHjnTdRW7rx;

1.2
date	2013.06.28.15.31.26;	author htodd;	state Exp;
branches;
next	1.1;
commitid	5Mpx8L3CU64kAoVw;

1.1
date	2013.03.19.22.16.53;	author garbled;	state Exp;
branches
	1.1.6.1;
next	;

1.28.4.1
date	2026.01.22.19.51.52;	author martin;	state Exp;
branches;
next	;
commitid	LckBANOV0xlfsqrG;

1.25.6.1
date	2024.04.18.15.40.16;	author martin;	state Exp;
branches;
next	;
commitid	mb8r6LcrGXqnLD6F;

1.17.2.1
date	2020.04.08.14.03.45;	author martin;	state Exp;
branches;
next	1.17.2.2;
commitid	Qli2aW9E74UFuA3C;

1.17.2.2
date	2020.04.13.07.45.26;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.17.4.1
date	2019.08.23.04.22.49;	author msaitoh;	state Exp;
branches;
next	1.17.4.2;
commitid	2MxTCqF6jgENE6AB;

1.17.4.2
date	2024.04.18.15.41.13;	author martin;	state Exp;
branches;
next	;
commitid	8BgR9kmVlpzHLD6F;

1.16.2.1
date	2018.04.16.01.57.31;	author pgoyette;	state Exp;
branches;
next	;
commitid	qk3nktk0szmTIByA;

1.15.4.1
date	2018.11.01.07.52.59;	author martin;	state Exp;
branches;
next	1.15.4.2;
commitid	tzzKMBeNMT0zidYA;

1.15.4.2
date	2024.04.18.15.42.45;	author martin;	state Exp;
branches;
next	;
commitid	NpZ290RHnhVdMD6F;

1.11.2.1
date	2017.04.21.16.51.09;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.9.2.1
date	2017.01.07.08.53.42;	author pgoyette;	state Exp;
branches;
next	1.9.2.2;
commitid	uEL0C1YuiJrlV0Bz;

1.9.2.2
date	2017.03.20.06.52.05;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.3.4.1
date	2014.03.02.13.25.43;	author yamt;	state dead;
branches;
next	1.3.4.2;
commitid	yqlfOuaAhYmASwBx;

1.3.4.2
date	2014.05.22.12.01.28;	author yamt;	state Exp;
branches;
next	;
commitid	yqlfOuaAhYmASwBx;

1.3.6.1
date	2015.05.07.20.42.37;	author riz;	state Exp;
branches;
next	1.3.6.2;
commitid	E7MsgeQgr0PIvyky;

1.3.6.2
date	2015.05.09.08.37.32;	author msaitoh;	state Exp;
branches;
next	;
commitid	Cln80OvPARcVqKky;

1.1.6.1
date	2013.03.19.22.16.53;	author tls;	state dead;
branches;
next	1.1.6.2;
commitid	OnlO1cBgtQRcIHUw;

1.1.6.2
date	2013.06.23.06.26.17;	author tls;	state Exp;
branches;
next	1.1.6.3;
commitid	OnlO1cBgtQRcIHUw;

1.1.6.3
date	2014.08.19.23.45.38;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;


desc
@@


1.31
log
@evbarm/instkernel/sshramdisk: Get libssh out of objdir now.

Should fix problems like:

    --- ramdiskbin.link ---
    #      link  sshramdisk/ramdiskbin.link
    /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/bin/armv6eb--netbsdelf-eabihf-gcc    --sysroot=/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest    -static  -o ramdiskbin.link  ramdiskbin.o  -Wl,-rpath-link,/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest/lib  -L=/lib -L/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest/usr/lib cat.cro chmod.cro cp.cro dd.cro df.cro ed.cro ln.cro ls.cro mkdir.cro mv.cro pax.cro pwd.cro rm.cro rmdir.cro sh.cro stty.cro sync.cro sleep.cro chown.cro disklabel.cro fdisk.cro fsck.cro fsck_msdos.cro fsck_ffs.cro gpt.cro ifconfig.cro init.cro mknod.cro mount.cro mount_cd9660.cro mount_ext2fs.cro mount_ffs.cro mount_kernfs.cro mount_msdos.cro mount_nfs.cro mount_tmpfs.cro newfs.cro newfs_ext2fs.cro ping.cro reboot.cro restore.cro route.cro shutdown.cro slattach.cro swapctl.cro umount.cro ftp.cro tip.cro gzip.cro less.cro sed.cro tset.cro chroot.cro sshd.cro sysinst.cro progress.cro dhcpcd.cro  libhack.o -ledit -lutil -lcurses -lterminfo -lrmt -lcrypt -ll -lm -lz -lprop -lssh -lcrypto -lpthread
    /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/lib/gcc/armv6eb--netbsdelf-eabihf/14.3.0/../../../../armv6eb--netbsdelf-eabihf/bin/ld: cannot find -lssh: No such file or directory
    /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/lib/gcc/armv6eb--netbsdelf-eabihf/14.3.0/../../../../armv6eb--netbsdelf-eabihf/bin/ld: have you installed the static version of the ssh library ?
    collect2: error: ld returned 1 exit status

    *** Failed target: ramdiskbin.link
    *** In directory: /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-obj/home/source/ab/HEAD/src/distrib/evbarm/instkernel/sshramdisk
    *** Failed commands:
            ${_MKTARGET_LINK}
            => @@echo '#  ' "   link " sshramdisk/ramdiskbin.link
            ${_CCLINK.${:Uramdiskbin}}  ${_LDFLAGS.${:Uramdiskbin}} ${_LDSTATIC.${:Uramdiskbin}} -o ${.TARGET}  ${OBJS.${:Uramdiskbin}} ${_PROGLDOPTS} ${_LDADD.${:Uramdiskbin}}
            => /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/bin/armv6eb--netbsdelf-eabihf-gcc    --sysroot=/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest    -static  -o ramdiskbin.link  ramdiskbin.o  -Wl,-rpath-link,/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest/lib  -L=/lib -L/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest/usr/lib cat.cro chmod.cro cp.cro dd.cro df.cro ed.cro ln.cro ls.cro mkdir.cro mv.cro pax.cro pwd.cro rm.cro rmdir.cro sh.cro stty.cro sync.cro sleep.cro chown.cro disklabel.cro fdisk.cro fsck.cro fsck_msdos.cro fsck_ffs.cro gpt.cro ifconfig.cro init.cro mknod.cro mount.cro mount_cd9660.cro mount_ext2fs.cro mount_ffs.cro mount_kernfs.cro mount_msdos.cro mount_nfs.cro mount_tmpfs.cro newfs.cro newfs_ext2fs.cro ping.cro reboot.cro restore.cro route.cro shutdown.cro slattach.cro swapctl.cro umount.cro ftp.cro tip.cro gzip.cro less.cro sed.cro tset.cro chroot.cro sshd.cro sysinst.cro progress.cro dhcpcd.cro  libhack.o -ledit -lutil -lcurses -lterminfo -lrmt -lcrypt -ll -lm -lz -lprop -lssh -lcrypto -lpthread
            ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ${OBJS.${:Uramdiskbin}}
            => /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/bin/nbctfmerge -t -g -L VERSION -g -o ramdiskbin.link ramdiskbin.o
    *** [ramdiskbin.link] Error code 1

PR lib/58648: private shared libraries should go in
/usr/lib/private, not /usr/lib
@
text
@#	$NetBSD: Makefile,v 1.30 2025/12/03 20:09:16 brad Exp $

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

IMAGE=		sshramdisk.fs
IMAGESIZE=	51000k
MAKEFS_FLAGS+=	-f 15

.if ${MKREPRO_TIMESTAMP:Uno} != "no"
MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
.endif

WARNS=		1
DBG=		-Os

CRUNCHBIN=	ramdiskbin
LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF=	${.CURDIR}/mtree.conf
.if empty(MACHINE_ARCH:M*eb)
IMAGEENDIAN=	le
.else
IMAGEENDIAN=	be
.endif
MAKEDEVTARGETS=	ramdisk
IMAGEDEPENDS=	${CRUNCHBIN} \
		dot.profile master.passwd sshd_config ssh_host_rsa_key \
		${NETBSDSRCDIR}/etc/group \
		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
		${DISTRIBDIR}/common/services
IMAGERUNTIME= libdata/firmware
IMAGESPECEXTRA= libdata

# Use stubs to eliminate some large stuff from libc
HACKSRC=	${DISTRIBDIR}/utils/libhack
.include	"${HACKSRC}/Makefile.inc"
${CRUNCHBIN}:	libhack.o

USE_PAM := no
USE_YP := no
USE_SKEY := no
USE_KERBEROS := no
USE_LDAP := no
.export USE_PAM
.export USE_YP
.export USE_SKEY
.export USE_KERBEROS
.export USE_LDAP

# libssh is private, so libssh.a is not installed in DESTDIR, so we
# have to get it out of the objdir.
#
# XXX Should do this differently, and uniformly for all libraries.
.if !defined(LIBDO.ssh)
LIBDO.ssh!=	cd ${NETBSDSRCDIR}/crypto/external/bsd/openssh/lib && \
		${PRINTOBJDIR}
.MAKEOVERRIDES+=LIBDO.ssh
.endif
CRUNCHGEN_FLAGS+=-L ${LIBDO.ssh}

.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"

release:

.include <bsd.prog.mk>
@


1.30
log
@

The LLVM build is a bit larger than the GCC build.  Bump the size up a bit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2025/12/01 21:22:33 brad Exp $
d51 11
@


1.29
log
@

Make the sshramdisk a bit bigger.  Hopefully fixes the build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2024/05/17 21:31:10 christos Exp $
d7 1
a7 1
IMAGESIZE=	50000k
@


1.28
log
@use IMAGESPECEXTRA to include libdata and don't include IMAGERUNTIME
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2024/05/17 20:26:48 christos Exp $
d7 1
a7 1
IMAGESIZE=	45000k
@


1.28.4.1
log
@Pull up following revision(s) (requested by snj in ticket #150):

	distrib/sets/lists/debug/shl.mi: revision 1.380
	crypto/external/bsd/openssh/lib/Makefile: revision 1.45
	distrib/sets/lists/debug/shl.mi: revision 1.381
	crypto/external/bsd/openssh/lib/Makefile: revision 1.46
	distrib/sets/lists/debug/shl.mi: revision 1.382
	distrib/evbarm/instkernel/sshramdisk/list: revision 1.7
	share/mk/bsd.lib.mk: revision 1.423
	share/mk/bsd.lib.mk: revision 1.425
	distrib/sets/lists/comp/mi: revision 1.2503
	distrib/sets/lists/comp/mi: revision 1.2504
	distrib/evbarm/instkernel/sshramdisk/Makefile: revision 1.31
	distrib/sets/lists/base/shl.mi: revision 1.1019
	rescue/list: revision 1.56
	etc/mtree/NetBSD.dist.compat.in: revision 1.9
	distrib/sets/lists/debug/mi: revision 1.494
	distrib/sets/lists/debug/mi: revision 1.495
	distrib/sets/lists/base/mi: revision 1.1371
	distrib/sets/lists/base/mi: revision 1.1372
	distrib/sets/lists/comp/shl.mi: revision 1.362
	etc/mtree/NetBSD.dist.base: revision 1.262
	lib/libpam/modules/pam_ssh/Makefile: revision 1.15
	share/mk/bsd.prog.mk: revision 1.358
	share/mk/bsd.prog.mk: revision 1.359
	usr.sbin/wg-keygen/Makefile: revision 1.2
	usr.sbin/wg-keygen/Makefile: revision 1.3
	distrib/sets/lists/base/shl.mi: revision 1.1020
	share/mk/bsd.README: revision 1.457
	crypto/external/bsd/openssh/Makefile.inc: revision 1.18
	distrib/sets/lists/xdebug/mi: revision 1.52
	rescue/Makefile: revision 1.43

Add logic for /usr/lib/private libraries.

New variables for makefiles to define:
<bsd.lib.mk> LIBSUBDIR -- If nonempty, install library into
    ${LIBDIR}/${LIBSUBDIR} instead of ${LIBDIR}.  Typically set
    either to empty or to `private'.
<bsd.lib.mk> LIBDPSUBDIRS -- List of subdirectories _subdir_ to add
    -L${SHLIBDIR}/${_subdir_} -Wl,-R${SHLIBDIR}/${_subdir_} to
    ldflags when linking library.  Note: Should only be used inside
    private libraries, not inside public libraries to link against
    private libraries, which can't work -- see comment.
<bsd.prog.mk> PROGDPSUBDIRS -- List of subdirectories _subdir_ to add
    -L${SHLIBDIR}/${_subdir_} -Wl,-R${SHLIBDIR}/${_subdir_} to
    ldflags when linking program.

(XXX bsd.lib.mk/bsd.prog.mk should figure LIBDPSUBDIRS/PROGDPSUBDIRS
out automatically by LIBDPLIBS/PROGDPLIBS, but for now we don't have
that mechanism -- TBD in subsequent work.)

Libraries that we want to install because we use them in binaries we
ship, but that we want to keep private from applications so we don't
have to worry about ABI breakage or leakage into pkgsrc builds,
should generally set:

LIBSUBDIR=      private         # Install into /usr/lib/private.
NOCOMPAT=       # defined       # Don't build compat lib.
NOLINKLIB=      # defined       # Don't install .so link or .a lib.

(XXX Maybe we should have a `LIBISPRIVATE= installed' or something
for this combination of options, but for now I'm putting in the
minimal mechanism to implement this and we can condense a common
pattern later.)

Programs using the library will also have to set
PROGDPSUBDIRS+= private
so that they will get the rpath /usr/lib/private.

PR lib/58648: private shared libraries should go in /usr/lib/private,
not /usr/lib


openssh: Install libssh.so in /usr/lib/private.

This way it doesn't get exposed to applications accidentally, and we
don't need to worry about breaking ABI when updating openssh in base.
PR lib/58648: private shared libraries should go in /usr/lib/private,
not /usr/lib

openssh: Do build and install compat libssh after all.

Even though it's not exposed for applications to _link_ against, it
is used by the dynamically _loadable_ pam_ssh module, which exists as
a compat module and therefore needs libssh as a compat library to be
installed somewhere.  That somewhere will be
/usr/lib/${COMPAT_ARCH}/private.

Should fix problems like:
    dependall ===> compat/sparc64/sparc/../../../lib/libpam/modules/pam_ssh
    nbmake[11]: don't know how to make /home/source/ab/HEAD/src/crypto/external/bsd/openssh/lib/libssh.a. Stop
Verified in an amd64 build that the compat i386 pam_ssh.so is linked
correctly:
    (chroot HEAD)# ldd /usr/lib/i386/security/pam_ssh.so.4
    /usr/lib/i386/security/pam_ssh.so.4:
            -lssh.50 => /usr/lib/i386/private/libssh.so.50
            -lcrypto.16 => /usr/lib/i386/libcrypto.so.16
            -lcrypt.1 => /usr/lib/i386/libcrypt.so.1
            -lgcc_s.1 => /usr/lib/i386/libgcc_s.so.1
            -lc.12 => /usr/lib/i386/libc.so.12
            -lz.1 => /usr/lib/i386/libz.so.1

PR lib/58648: private shared libraries should go in /usr/lib/private,
not /usr/lib


wg-keygen(8): Find private libssh.so.
Should fix:
    /usr/sbin/wg-keygen: Shared object "libssh.so.50" not found
PR lib/58648: private shared libraries should go in /usr/lib/private,
not /usr/lib


evbarm/instkernel/sshramdisk: Get libssh out of objdir now.
Should fix problems like:
    --- ramdiskbin.link ---
    #      link  sshramdisk/ramdiskbin.link
    /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/bin/armv6eb--netbsdelf-eabihf-gcc    --sysroot=/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest    -static  -o
ramdiskbin.link  ramdiskbin.o  -Wl,-rpath-link,/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest/lib  -L=/lib -L/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest/usr/lib cat.cro
chmod.cro cp.cro dd.cro df.cro ed.cro ln.cro ls.cro mkdir.cro mv.cro pax.cro pwd.cro rm.cro rmdir.cro sh.cro stty.cro sync.cro sleep.cro chown.cro disklabel.cro fdisk.cro fsck.cro fsck_msdos.cro
fsck_ffs.cro gpt.cro ifconfig.cro init.cro mknod.cro mount.cro mount_cd9660.cro mount_ext2fs.cro mount_ffs.cro mount_kernfs.cro mount_msdos.cro mount_nfs.cro mount_tmpfs.cro newfs.cro
newfs_ext2fs.cro ping.cro reboot.cro restore.cro route.cro shutdown.cro slattach.cro swapctl.cro umount.cro ftp.cro tip.cro gzip.cro less.cro sed.cro tset.cro chroot.cro sshd.cro sysinst.cro
progress.cro dhcpcd.cro  libhack.o
-ledit -lutil -lcurses -lterminfo -lrmt -lcrypt -ll -lm -lz -lprop -lssh -lcrypto -lpthread
    /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/lib/gcc/armv6eb--netbsdelf-eabihf/14.3.0/../../../../armv6eb--netbsdelf-eabihf/bin/ld: cannot find -lssh: No such file or directory
    /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/lib/gcc/armv6eb--netbsdelf-eabihf/14.3.0/../../../../armv6eb--netbsdelf-eabihf/bin/ld: have you installed the static version of the
ssh library ?
    collect2: error: ld returned 1 exit status
    *** Failed target: ramdiskbin.link
    *** In directory: /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-obj/home/source/ab/HEAD/src/distrib/evbarm/instkernel/sshramdisk
    *** Failed commands:
            ${_MKTARGET_LINK}
            => @@echo '#  ' "   link " sshramdisk/ramdiskbin.link
            ${_CCLINK.${:Uramdiskbin}}  ${_LDFLAGS.${:Uramdiskbin}} ${_LDSTATIC.${:Uramdiskbin}} -o ${.TARGET}  ${OBJS.${:Uramdiskbin}} ${_PROGLDOPTS} ${_LDADD.${:Uramdiskbin}}
            => /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/bin/armv6eb--netbsdelf-eabihf-gcc    --sysroot=/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest    -static  -o
ramdiskbin.link  ramdiskbin.o  -Wl,-rpath-link,/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest/lib  -L=/lib -L/home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-dest/usr/lib cat.cro
chmod.cro cp.cro dd.cro df.cro ed.cro ln.cro ls.cro mkdir.cro mv.cro pax.cro pwd.cro rm.cro rmdir.cro sh.cro stty.cro sync.cro sleep.cro chown.cro disklabel.cro fdisk.cro fsck.cro fsck_msdos.cro
fsck_ffs.cro gpt.cro ifconfig.cro init.cro mknod.cro mount.cro mount_cd9660.cro mount_ext2fs.cro mount_ffs.cro mount_kernfs.cro mount_msdos.cro mount_nfs.cro mount_tmpfs.cro newfs.cro
newfs_ext2fs.cro ping.cro reboot.cro restore.cro route.cro shutdown.cro slattach.cro swapctl.cro umount.cro ftp.cro tip.cro gzip.cro less.cro sed.cro tset.cro chroot.cro sshd.cro sysinst.cro
progress.cro dhcpcd.cro
 libhack.o -ledit -lutil -lcurses -lterminfo -lrmt -lcrypt -ll -lm -lz -lprop -lssh -lcrypto -lpthread
            ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ${OBJS.${:Uramdiskbin}}
            => /home/builds/ab/HEAD/evbarm-earmv6hfeb/20251217070550Z-tools/bin/nbctfmerge -t -g -L VERSION -g -o ramdiskbin.link ramdiskbin.o
    *** [ramdiskbin.link] Error code 1
PR lib/58648: private shared libraries should go in
/usr/lib/private, not /usr/lib


distrib/sets/lists/comp: libssh is private for lint too.
Might fix:
    checkflist ===> distrib/sets
    ======  1 missing files in DESTDIR  ========
    Files in flist but missing from DESTDIR.
    File wasn't installed ?
    ------------------------------------------
    ./usr/libdata/lint/llib-lssh.ln
    ========  end of 1 missing files  ==========
PR lib/58648: private shared libraries should go in /usr/lib/private,
not /usr/lib

PR/58648: Fix MKDEBUG=yes build:
1. if NOLINKLIB is set don't install libfoo_g.a and libfoo_p.a libraries.
   libfoo.a, libfoo_p.a were not being installed already, just make the
   testing consistent
2. Move .a libraries from shl.mi to mi where they belong.
3. Make stray libfoo_g.a libraries that were install accidentally before
   obsolete.

rescue/list: Touch for CRUNCHGEN_FLAGS change for libssh.
PR lib/58648: private shared libraries should go in /usr/lib/private,
not /usr/lib
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2024/05/17 21:31:10 christos Exp $
a50 11
# libssh is private, so libssh.a is not installed in DESTDIR, so we
# have to get it out of the objdir.
#
# XXX Should do this differently, and uniformly for all libraries.
.if !defined(LIBDO.ssh)
LIBDO.ssh!=	cd ${NETBSDSRCDIR}/crypto/external/bsd/openssh/lib && \
		${PRINTOBJDIR}
.MAKEOVERRIDES+=LIBDO.ssh
.endif
CRUNCHGEN_FLAGS+=-L ${LIBDO.ssh}

@


1.27
log
@use IMAGERUNTIME to copy extra data instead of random pax commands
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2024/03/15 02:20:58 riastradh Exp $
d33 1
@


1.26
log
@evbarm/instkernel/sshramdisk: Put firmware in the right paths.

Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2020/03/26 07:44:43 skrll Exp $
d32 1
a32 3
IMAGEPREBUILD= \
	(cd ${DESTDIR} && ${TOOL_PAX} ${PAX_TIMESTAMP} -w libdata/firmware) \
	| (cd ${WORKDIR} && ${TOOL_PAX} -r -pp)
@


1.25
log
@Bump IMAGESIZE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2020/03/23 11:45:00 martin Exp $
d32 3
a34 1
IMAGEPREBUILD=	${TOOL_PAX} ${PAX_TIMESTAMP} -rw -pp ${DESTDIR}/libdata/firmware ${WORKDIR}
@


1.25.6.1
log
@Pull up following revision(s) (requested by riastradh in ticket #657):

	distrib/evbarm/instkernel/sshramdisk/Makefile: revision 1.26

evbarm/instkernel/sshramdisk: Put firmware in the right paths.

Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2020/03/26 07:44:43 skrll Exp $
d32 1
a32 3
IMAGEPREBUILD= \
	(cd ${DESTDIR} && ${TOOL_PAX} ${PAX_TIMESTAMP} -w libdata/firmware) \
	| (cd ${WORKDIR} && ${TOOL_PAX} -r -pp)
@


1.24
log
@Bump image size - new firmware files need more space
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2020/03/01 20:59:54 christos Exp $
d7 1
a7 1
IMAGESIZE=	43000k
@


1.23
log
@Redo the sshsk_sign() stuff properly, but putting the helper in libssh.so
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2020/01/21 14:58:58 mlelstv Exp $
d7 1
a7 1
IMAGESIZE=	33000k
@


1.22
log
@Deal with sshkey_sign. I am going to fix this properly at some point, but
it needs coordination from upstream (Patrick Welche)
@
text
@a33 8
.PATH:	${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist
liboverride.o: ssh-sk-client.o
	${_MKTARGET_LINK}
	${LD} -r -o ${.TARGET} ${.ALLSRC}

CLEANFILES+=	liboverride.o ssh-sk-client.o


d37 1
a37 1
${CRUNCHBIN}:	libhack.o liboverride.o
@


1.21
log
@Was too slight a bump.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2020/01/21 11:48:10 martin Exp $
d34 8
d45 1
a45 1
${CRUNCHBIN}:	libhack.o
@


1.20
log
@Bump image size slightly
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2019/11/21 13:01:51 martin Exp $
d7 1
a7 1
IMAGESIZE=	32000k
@


1.19
log
@Bump image size for gcc8
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2019/08/14 12:08:27 martin Exp $
d7 1
a7 1
IMAGESIZE=	30000k
@


1.18
log
@Update to newer sshd (the host key is the same as before, it already
was a rsa key). From Harold Gutch.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2018/04/08 15:48:39 mlelstv Exp $
d7 1
a7 1
IMAGESIZE=	28000k
@


1.17
log
@increase sshramdisk from 24000k to 28000k.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2017/10/22 23:15:54 joerg Exp $
d28 1
a28 1
		dot.profile master.passwd sshd_config ssh_host_dsa_key \
@


1.17.2.1
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
a7 1
IMAGESIZE=	45000k
@


1.17.2.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d28 1
a28 1
		dot.profile master.passwd sshd_config ssh_host_rsa_key \
@


1.17.4.1
log
@Pullup the following revision (requested by martin in ticket #105):

	distrib/evbarm/instkernel/sshramdisk/Makefile		1.18
	distrib/evbarm/instkernel/sshramdisk/list		1.2
	distrib/evbarm/instkernel/sshramdisk/sshd_config	1.2
	distrib/evbarm/instkernel/sshramdisk/ssh_host_dsa_key	delete
	distrib/evbarm/instkernel/sshramdisk/ssh_host_rsa_key	1.1

Update to newer sshd (the host key is the same as before, it already
was a rsa key). From Harold Gutch
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2018/04/08 15:48:39 mlelstv Exp $
d28 1
a28 1
		dot.profile master.passwd sshd_config ssh_host_rsa_key \
@


1.17.4.2
log
@Pull up following revision(s) (requested by riastradh in ticket #1829):

	distrib/evbarm/instkernel/sshramdisk/Makefile: revision 1.26

evbarm/instkernel/sshramdisk: Put firmware in the right paths.

Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17.4.1 2019/08/23 04:22:49 msaitoh Exp $
d32 1
a32 3
IMAGEPREBUILD= \
	(cd ${DESTDIR} && ${TOOL_PAX} ${PAX_TIMESTAMP} -w libdata/firmware) \
	| (cd ${WORKDIR} && ${TOOL_PAX} -r -pp)
@


1.16
log
@Bump image size to 24MB, won't fit for plain evbarm otherwise.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2017/03/18 17:07:04 sevan Exp $
d7 1
a7 1
IMAGESIZE=	24000k
@


1.16.2.1
log
@Sync with HEAD, resolve some conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2018/04/08 15:48:39 mlelstv Exp $
d7 1
a7 1
IMAGESIZE=	28000k
@


1.15
log
@Bump image size to unbreak builds.
nbmakefs: `work' size of 21610496 is larger than the maxsize of 20480000.

ok jakllsch
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2017/02/11 22:57:00 christos Exp $
d7 1
a7 1
IMAGESIZE=	22000k
@


1.15.4.1
log
@Pull up the following trying to fix the build:

	distrib/evbarm/instkernel/sshramdisk/Makefile	1.16,1.17

Bump image size to 28000k.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2017/03/18 17:07:04 sevan Exp $
d7 1
a7 1
IMAGESIZE=	28000k
@


1.15.4.2
log
@Pull up following revision(s) (requested by riastradh in ticket #1955):

	distrib/evbarm/instkernel/sshramdisk/Makefile: revision 1.26

evbarm/instkernel/sshramdisk: Put firmware in the right paths.

Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.4.1 2018/11/01 07:52:59 martin Exp $
d32 1
a32 3
IMAGEPREBUILD= \
	(cd ${DESTDIR} && ${TOOL_PAX} ${PAX_TIMESTAMP} -w libdata/firmware) \
	| (cd ${WORKDIR} && ${TOOL_PAX} -r -pp)
@


1.14
log
@fix typo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2017/02/11 03:07:06 christos Exp $
d7 1
a7 1
IMAGESIZE=	20000k
@


1.13
log
@more MKREPRO_TIMESTAMP fixes (for pax/tar generated files)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2017/01/24 18:04:02 christos Exp $
d32 1
a32 1
IMAGEPREBUILD=	${TOOL_PAX} ${PAX_TIMESTAMP{ -rw -pp ${DESTDIR}/libdata/firmware ${WORKDIR}
@


1.12
log
@+= for MAKEFS_FLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2016/12/19 16:23:10 christos Exp $
d10 5
d32 1
a32 1
IMAGEPREBUILD=	${TOOL_PAX} -rw -pp ${DESTDIR}/libdata/firmware ${WORKDIR}
@


1.11
log
@give it a bit more room.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2016/12/19 15:50:13 christos Exp $
d8 1
a8 1
MAKEFS_FLAGS=	-f 15
@


1.11.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2017/03/18 17:07:04 sevan Exp $
d7 2
a8 7
IMAGESIZE=	22000k
MAKEFS_FLAGS+=	-f 15

.if ${MKREPRO_TIMESTAMP:Uno} != "no"
MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
.endif
d27 1
a27 1
IMAGEPREBUILD=	${TOOL_PAX} ${PAX_TIMESTAMP} -rw -pp ${DESTDIR}/libdata/firmware ${WORKDIR}
@


1.10
log
@grow so that new intel firmware fits.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2015/07/15 11:24:03 martin Exp $
d7 1
a7 1
IMAGESIZE=	19000k
@


1.9
log
@Set IMAGEENDIAN properly for big endian builds.
From Rin Okuyama.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2015/02/23 23:21:47 joerg Exp $
d7 1
a7 1
IMAGESIZE=	14848k
@


1.9.2.1
log
@Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2016/12/19 16:23:10 christos Exp $
d7 1
a7 1
IMAGESIZE=	20000k
@


1.9.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2017/03/18 17:07:04 sevan Exp $
d7 2
a8 7
IMAGESIZE=	22000k
MAKEFS_FLAGS+=	-f 15

.if ${MKREPRO_TIMESTAMP:Uno} != "no"
MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
.endif
d27 1
a27 1
IMAGEPREBUILD=	${TOOL_PAX} ${PAX_TIMESTAMP} -rw -pp ${DESTDIR}/libdata/firmware ${WORKDIR}
@


1.8
log
@Give LLVM a bit breathing room for the sshramdisk when building for
generic ARM.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2015/02/16 21:48:48 skrll Exp $
d16 1
d18 3
@


1.7
log
@Bump size to fix build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2014/10/31 08:43:24 uebayasi Exp $
d7 1
a7 1
IMAGESIZE=	14m
@


1.6
log
@Bump image size to compensate new iwn(4) firmwares.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
a7 1
IMAGESIZE=	13m
@


1.5
log
@LLVM sshramdisk needs 8.9MB, so bump again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2014/08/12 11:49:04 martin Exp $
d7 1
a7 1
IMAGESIZE=	8900k
@


1.4
log
@Add firmware images to this image, as discussed on port-arm.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2014/03/02 13:25:43 joerg Exp $
d7 1
a7 1
IMAGESIZE=	8600k
@


1.3
log
@Bump sshramdisk size to 3800k, reserve 4MB in the install kernel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2013/06/28 15:31:26 htodd Exp $
d7 1
a7 1
IMAGESIZE=	3800k
d23 1
@


1.3.6.1
log
@Apply patch (requested by snj in ticket #738):

distrib/evbarm/instkernel/sshramdisk/Makefile	patch

	Bump ramdisk size.
	[snj, ticket #738]
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2014/03/02 13:25:43 joerg Exp $
d7 1
a7 1
IMAGESIZE=	4321k
@


1.3.6.2
log
@Pull up following revision(s) (requested by snj in ticket #742):

distrib/evbarm/instkernel/sshramdisk/Makefile	patch
sys/arch/evbarm/conf/RPI_INSTALL		patch

	Increase ramdisk size to fix build break.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3.6.1 2015/05/07 20:42:37 riz Exp $
d7 1
a7 1
IMAGESIZE=	5000k
@


1.3.4.1
log
@file Makefile was added on branch yamt-pagecache on 2014-05-22 12:01:28 +0000
@
text
@d1 47
@


1.3.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 47
#	$NetBSD$

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

IMAGE=		sshramdisk.fs
IMAGESIZE=	3800k
MAKEFS_FLAGS=	-f 15

WARNS=		1
DBG=		-Os

CRUNCHBIN=	ramdiskbin
LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF=	${.CURDIR}/mtree.conf
IMAGEENDIAN=	le
MAKEDEVTARGETS=	ramdisk
IMAGEDEPENDS=	${CRUNCHBIN} \
		dot.profile master.passwd sshd_config ssh_host_dsa_key \
		${NETBSDSRCDIR}/etc/group \
		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
		${DISTRIBDIR}/common/services

# Use stubs to eliminate some large stuff from libc
HACKSRC=	${DISTRIBDIR}/utils/libhack
.include	"${HACKSRC}/Makefile.inc"
${CRUNCHBIN}:	libhack.o

USE_PAM := no
USE_YP := no
USE_SKEY := no
USE_KERBEROS := no
USE_LDAP := no
.export USE_PAM
.export USE_YP
.export USE_SKEY
.export USE_KERBEROS
.export USE_LDAP

.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"

release:

.include <bsd.prog.mk>
@


1.2
log
@Bump imagesize to fix build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2013/03/19 22:16:53 garbled Exp $
d7 1
a7 1
IMAGESIZE=	3684k
@


1.1
log
@Add a new installer image for Raspberry PI to evbarm

Includes the following major changes:

1) Add new configmenu item to sysinst to allow creation of users at
post-install time.
2) Add an sshramdisk type to evbarm, which is a ramdisk with sshd
enabled, allowing users to install on a headless PI by sshing to the
device with the account "sysinst" password "netbsd" to begin the
installation. (Note, neither the account, nor the ssh setup are copied to
the finalized installation image)
3) Change mkimage to build a boot-only image, without the root filesystems.

Much of the sshramdisk code could be reused on other ports easily.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
a7 1
IMAGESIZE=	3572k
@


1.1.6.1
log
@file Makefile was added on branch tls-maxphys on 2013-06-23 06:26:17 +0000
@
text
@d1 47
@


1.1.6.2
log
@resync from head
@
text
@a0 47
#	$NetBSD$

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

IMAGE=		sshramdisk.fs
IMAGESIZE=	3572k
MAKEFS_FLAGS=	-f 15

WARNS=		1
DBG=		-Os

CRUNCHBIN=	ramdiskbin
LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
MTREECONF=	${.CURDIR}/mtree.conf
IMAGEENDIAN=	le
MAKEDEVTARGETS=	ramdisk
IMAGEDEPENDS=	${CRUNCHBIN} \
		dot.profile master.passwd sshd_config ssh_host_dsa_key \
		${NETBSDSRCDIR}/etc/group \
		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
		${DISTRIBDIR}/common/services

# Use stubs to eliminate some large stuff from libc
HACKSRC=	${DISTRIBDIR}/utils/libhack
.include	"${HACKSRC}/Makefile.inc"
${CRUNCHBIN}:	libhack.o

USE_PAM := no
USE_YP := no
USE_SKEY := no
USE_KERBEROS := no
USE_LDAP := no
.export USE_PAM
.export USE_YP
.export USE_SKEY
.export USE_KERBEROS
.export USE_LDAP

.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"

release:

.include <bsd.prog.mk>
@


1.1.6.3
log
@Rebase to HEAD as of a few days ago.
@
text
@d7 1
a7 1
IMAGESIZE=	3800k
@


