Makefile.ramdisk revision 1.11
11.11Sapb# $NetBSD: Makefile.ramdisk,v 1.11 2012/10/16 08:23:21 apb 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.1Shubertf ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 281.6Sabs ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 291.9Sroy ${DISTRIBDIR}/common/services 301.1ShubertfPARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q} 311.1Shubertf 321.1Shubertf# This propogates through to the link of ramdiskbin 331.1Shubertf# The map file is useful when trying to prune the image 341.10SjoergLDFLAGS+= -Wl,-Map,${CRUNCHBIN}.map,--cref 351.10SjoergCRUNCHENV += LDFLAGS=${LDFLAGS:Q} 361.1Shubertf 371.1Shubertf.if defined(USE_SYSINST) 381.1Shubertf.if ${USE_SYSINST} != yes 391.1ShubertfLISTS+= ${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST} 401.1Shubertf.else 411.1ShubertfLISTS+= ${DISTRIBDIR}/common/list.sysinst 421.1Shubertf.endif 431.1ShubertfMAKEFS_FLAGS+= -f 14 441.1Shubertf.endif 451.1Shubertf 461.1Shubertf# Use stubs to eliminate some large stuff from libc 471.1ShubertfHACKSRC= ${DISTRIBDIR}/utils/libhack 481.1Shubertf.include "${HACKSRC}/Makefile.inc" 491.1Shubertf${CRUNCHBIN}: libhack.o 501.1Shubertf 511.1Shubertf.include "${DISTRIBDIR}/common/Makefile.crunch" 521.1Shubertf.include "${DISTRIBDIR}/common/Makefile.makedev" 531.1Shubertf.include "${DISTRIBDIR}/common/Makefile.image" 541.1Shubertf 551.1Shubertfrelease: 561.1Shubertf 571.1Shubertf.include <bsd.prog.mk> 58