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