Makefile.ramdisk revision 1.13
11.13Smrg#	$NetBSD: Makefile.ramdisk,v 1.13 2018/03/13 02:22:43 mrg Exp $
21.1Shubertf
31.1Shubertf.include <bsd.own.mk>
41.1Shubertf.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
51.1Shubertf
61.1ShubertfI386COMMON=	${.CURDIR}/../common
71.1Shubertf
81.1Shubertf.PATH:		${I386COMMON}
91.1Shubertf
101.1ShubertfWARNS=		1
111.1ShubertfDBG=		-Os
121.1Shubertf
131.1ShubertfCRUNCHBIN=	ramdiskbin
141.11Sapb
151.11Sapb# Use ${.CURDIR}/list only if LISTS was not already defined by the caller.
161.11SapbLISTS?=		${.CURDIR}/list
171.11SapbLISTS+=		${I386COMMON}/list.ramdisk
181.1ShubertfMTREECONF=	${DISTRIBDIR}/common/mtree.common
191.1ShubertfIMAGEENDIAN=	le
201.1ShubertfIMAGEDEPENDS+= 	${CRUNCHBIN} \
211.4Stsutsui		dot.profile \
221.1Shubertf		${DESTDIR}/usr/mdec/boot \
231.1Shubertf		${DESTDIR}/usr/mdec/bootxx_ffsv1 \
241.1Shubertf		${DESTDIR}/usr/mdec/mbr \
251.1Shubertf		${DESTDIR}/usr/mdec/mbr_ext \
261.1Shubertf		${DESTDIR}/usr/mdec/mbr_bootsel \
271.12Smartin		${DESTDIR}/usr/mdec/gptmbr.bin \
281.1Shubertf		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
291.6Sabs		${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
301.9Sroy		${DISTRIBDIR}/common/services
311.1ShubertfPARSELISTENV+=	BOOTMODEL=${BOOTMODEL:Q}
321.1Shubertf
331.1Shubertf# This propogates through to the link of ramdiskbin
341.1Shubertf# The map file is useful when trying to prune the image
351.10SjoergLDFLAGS+=	-Wl,-Map,${CRUNCHBIN}.map,--cref
361.13SmrgCRUNCHENV+=	LDFLAGS=${LDFLAGS:Q}
371.13SmrgCLEANFILES+=	${CRUNCHBIN}.map
381.1Shubertf
391.1Shubertf.if defined(USE_SYSINST)
401.1Shubertf.if ${USE_SYSINST} != yes
411.1ShubertfLISTS+=		${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST}
421.1Shubertf.else
431.1ShubertfLISTS+=		${DISTRIBDIR}/common/list.sysinst
441.1Shubertf.endif
451.1ShubertfMAKEFS_FLAGS+=	-f 14
461.1Shubertf.endif
471.1Shubertf
481.1Shubertf# Use stubs to eliminate some large stuff from libc
491.1ShubertfHACKSRC=	${DISTRIBDIR}/utils/libhack
501.1Shubertf.include	"${HACKSRC}/Makefile.inc"
511.1Shubertf${CRUNCHBIN}:	libhack.o
521.1Shubertf
531.1Shubertf.include "${DISTRIBDIR}/common/Makefile.crunch"
541.1Shubertf.include "${DISTRIBDIR}/common/Makefile.makedev"
551.1Shubertf.include "${DISTRIBDIR}/common/Makefile.image"
561.1Shubertf
571.1Shubertfrelease:
581.1Shubertf
591.1Shubertf.include <bsd.prog.mk>
60