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