Home | History | Annotate | Line # | Download | only in common
Makefile.ramdisk revision 1.1
      1 #	$NetBSD: Makefile.ramdisk,v 1.1 2006/06/02 22:11:07 hubertf Exp $
      2 
      3 .include <bsd.own.mk>
      4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
      5 
      6 I386COMMON=	${.CURDIR}/../common
      7 
      8 .PATH:		${I386COMMON}
      9 
     10 WARNS=		1
     11 DBG=		-Os
     12 
     13 CRUNCHBIN=	ramdiskbin
     14 LISTS=		${.CURDIR}/list ${I386COMMON}/list.ramdisk
     15 MTREECONF=	${DISTRIBDIR}/common/mtree.common
     16 IMAGEENDIAN=	le
     17 IMAGEDEPENDS+= 	${CRUNCHBIN} \
     18 		dot.profile termcap.mini \
     19 		${DESTDIR}/usr/mdec/boot \
     20 		${DESTDIR}/usr/mdec/bootxx_ffsv1 \
     21 		${DESTDIR}/usr/mdec/mbr \
     22 		${DESTDIR}/usr/mdec/mbr_ext \
     23 		${DESTDIR}/usr/mdec/mbr_bootsel \
     24 		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
     25 		${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
     26 		${NETBSDSRCDIR}/etc/services
     27 PARSELISTENV+=	BOOTMODEL=${BOOTMODEL:Q}
     28 
     29 # This propogates through to the link of ramdiskbin
     30 # The map file is useful when trying to prune the image
     31 CRUNCHENV += LDFLAGS='-Wl,-Map,${CRUNCHBIN}.map,--cref'
     32 
     33 .if defined(USE_SYSINST)
     34 .if ${USE_SYSINST} != yes
     35 LISTS+=		${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST}
     36 .else
     37 LISTS+=		${DISTRIBDIR}/common/list.sysinst
     38 .endif
     39 MAKEFS_FLAGS+=	-f 14
     40 .endif
     41 
     42 # Use stubs to eliminate some large stuff from libc
     43 HACKSRC=	${DISTRIBDIR}/utils/libhack
     44 .include	"${HACKSRC}/Makefile.inc"
     45 ${CRUNCHBIN}:	libhack.o
     46 
     47 .include "${DISTRIBDIR}/common/Makefile.crunch"
     48 .include "${DISTRIBDIR}/common/Makefile.makedev"
     49 .include "${DISTRIBDIR}/common/Makefile.image"
     50 
     51 release:
     52 
     53 .include <bsd.prog.mk>
     54