Makefile.ramdisk revision 1.12
11.12Smartin# $NetBSD: Makefile.ramdisk,v 1.12 2015/10/07 14:09:05 martin 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.10SjoergCRUNCHENV += LDFLAGS=${LDFLAGS:Q} 371.1Shubertf 381.1Shubertf.if defined(USE_SYSINST) 391.1Shubertf.if ${USE_SYSINST} != yes 401.1ShubertfLISTS+= ${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST} 411.1Shubertf.else 421.1ShubertfLISTS+= ${DISTRIBDIR}/common/list.sysinst 431.1Shubertf.endif 441.1ShubertfMAKEFS_FLAGS+= -f 14 451.1Shubertf.endif 461.1Shubertf 471.1Shubertf# Use stubs to eliminate some large stuff from libc 481.1ShubertfHACKSRC= ${DISTRIBDIR}/utils/libhack 491.1Shubertf.include "${HACKSRC}/Makefile.inc" 501.1Shubertf${CRUNCHBIN}: libhack.o 511.1Shubertf 521.1Shubertf.include "${DISTRIBDIR}/common/Makefile.crunch" 531.1Shubertf.include "${DISTRIBDIR}/common/Makefile.makedev" 541.1Shubertf.include "${DISTRIBDIR}/common/Makefile.image" 551.1Shubertf 561.1Shubertfrelease: 571.1Shubertf 581.1Shubertf.include <bsd.prog.mk> 59