xref: /netbsd-src/distrib/evbarm/instkernel/sshramdisk/Makefile (revision 796c32c94f6e154afc9de0f63da35c91bb739b45)
1#	$NetBSD: Makefile,v 1.16 2017/10/22 23:15:54 joerg Exp $
2
3.include <bsd.own.mk>
4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
5
6IMAGE=		sshramdisk.fs
7IMAGESIZE=	24000k
8MAKEFS_FLAGS+=	-f 15
9
10.if ${MKREPRO_TIMESTAMP:Uno} != "no"
11MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
12PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
13.endif
14
15WARNS=		1
16DBG=		-Os
17
18CRUNCHBIN=	ramdiskbin
19LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
20MTREECONF=	${.CURDIR}/mtree.conf
21.if empty(MACHINE_ARCH:M*eb)
22IMAGEENDIAN=	le
23.else
24IMAGEENDIAN=	be
25.endif
26MAKEDEVTARGETS=	ramdisk
27IMAGEDEPENDS=	${CRUNCHBIN} \
28		dot.profile master.passwd sshd_config ssh_host_dsa_key \
29		${NETBSDSRCDIR}/etc/group \
30		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
31		${DISTRIBDIR}/common/services
32IMAGEPREBUILD=	${TOOL_PAX} ${PAX_TIMESTAMP} -rw -pp ${DESTDIR}/libdata/firmware ${WORKDIR}
33
34# Use stubs to eliminate some large stuff from libc
35HACKSRC=	${DISTRIBDIR}/utils/libhack
36.include	"${HACKSRC}/Makefile.inc"
37${CRUNCHBIN}:	libhack.o
38
39USE_PAM := no
40USE_YP := no
41USE_SKEY := no
42USE_KERBEROS := no
43USE_LDAP := no
44.export USE_PAM
45.export USE_YP
46.export USE_SKEY
47.export USE_KERBEROS
48.export USE_LDAP
49
50.include "${DISTRIBDIR}/common/Makefile.crunch"
51.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
52.include "${DISTRIBDIR}/common/Makefile.makedev"
53.include "${DISTRIBDIR}/common/Makefile.image"
54
55release:
56
57.include <bsd.prog.mk>
58