Makefile.ramdisk revision 1.15
1#	$NetBSD: Makefile.ramdisk,v 1.15 2019/12/29 18:26:16 christos Exp $
2
3NOSANITIZER=	# defined
4
5.include <bsd.own.mk>
6.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
7
8AMD64COMMON=	${.CURDIR}/../common
9
10.PATH:		${AMD64COMMON}
11
12WARNS=		1
13DBG=		-Os -fno-asynchronous-unwind-tables
14
15CRUNCHBIN=	ramdiskbin
16
17# Use ${.CURDIR}/list only if LISTS was not already defined by the caller.
18LISTS?=		${.CURDIR}/list
19LISTS+=		${AMD64COMMON}/list.ramdisk
20MTREECONF=	${DISTRIBDIR}/common/mtree.common
21IMAGEENDIAN=	le
22IMAGEDEPENDS+= 	${CRUNCHBIN} \
23		dot.profile \
24		${DESTDIR}/usr/mdec/boot \
25		${DESTDIR}/usr/mdec/bootxx_ffsv1 \
26		${DESTDIR}/usr/mdec/mbr \
27		${DESTDIR}/usr/mdec/mbr_ext \
28		${DESTDIR}/usr/mdec/mbr_bootsel \
29		${DESTDIR}/usr/mdec/gptmbr.bin \
30		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
31		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
32		${DISTRIBDIR}/common/services
33PARSELISTENV+=	BOOTMODEL=${BOOTMODEL:Q}
34
35.if defined(USE_SYSINST)
36LISTS+=		${DISTRIBDIR}/common/list.sysinst
37MAKEFS_FLAGS+=	-f 14
38.endif
39
40# Use stubs to eliminate some large stuff from libc
41HACKSRC=	${DISTRIBDIR}/utils/libhack
42.include	"${HACKSRC}/Makefile.inc"
43${CRUNCHBIN}:	libhack.o
44
45.include "${DISTRIBDIR}/common/Makefile.crunch"
46.include "${DISTRIBDIR}/common/Makefile.dhcpcd"
47.include "${DISTRIBDIR}/common/Makefile.makedev"
48.include "${DISTRIBDIR}/common/Makefile.image"
49
50release:
51
52.include <bsd.prog.mk>
53