Home | History | Annotate | Line # | Download | only in common
      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 
      6 OFPPCCOMMON=	${.CURDIR}/../common
      7 
      8 .PATH:		${OFPPCCOMMON}
      9 
     10 WARNS=		1
     11 DBG=		-Os -fno-asynchronous-unwind-tables
     12 
     13 CRUNCHBIN=	ramdiskbin
     14 
     15 # Use ${.CURDIR}/list only if LISTS was not already defined by the caller.
     16 LISTS?=		${.CURDIR}/list
     17 LISTS+=		${OFPPCCOMMON}/list.ramdisk
     18 MTREECONF=	${DISTRIBDIR}/common/mtree.common ${.CURDIR}/../common/mtree.ramdisk
     19 MAKEDEVTARGETS=	ramdisk
     20 IMAGEENDIAN=	le
     21 IMAGEDEPENDS+= 	${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
     27 PARSELISTENV+=	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
     32 LISTS+=		${.CURDIR}/../common/list.sysinst
     33 MAKEFS_FLAGS+=	-f 14
     34 .endif
     35 
     36 # Use stubs to eliminate some large stuff from libc
     37 HACKSRC=	${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 
     46 release:
     47 
     48 .include <bsd.prog.mk>
     49