Makefile.ramdisk revision 1.16
11.16Sriastrad# $NetBSD: Makefile.ramdisk,v 1.16 2024/03/20 13:51:35 riastradh Exp $ 21.14Skamil 31.14SkamilNOSANITIZER= # defined 41.1Shubertf 51.1Shubertf.include <bsd.own.mk> 61.1Shubertf.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 71.1Shubertf 81.1ShubertfI386COMMON= ${.CURDIR}/../common 91.1Shubertf 101.1Shubertf.PATH: ${I386COMMON} 111.1Shubertf 121.1ShubertfWARNS= 1 131.1ShubertfDBG= -Os 141.1Shubertf 151.1ShubertfCRUNCHBIN= ramdiskbin 161.11Sapb 171.11Sapb# Use ${.CURDIR}/list only if LISTS was not already defined by the caller. 181.11SapbLISTS?= ${.CURDIR}/list 191.11SapbLISTS+= ${I386COMMON}/list.ramdisk 201.1ShubertfMTREECONF= ${DISTRIBDIR}/common/mtree.common 211.1ShubertfIMAGEENDIAN= le 221.1ShubertfIMAGEDEPENDS+= ${CRUNCHBIN} \ 231.4Stsutsui dot.profile \ 241.1Shubertf ${DESTDIR}/usr/mdec/boot \ 251.1Shubertf ${DESTDIR}/usr/mdec/bootxx_ffsv1 \ 261.1Shubertf ${DESTDIR}/usr/mdec/mbr \ 271.1Shubertf ${DESTDIR}/usr/mdec/mbr_ext \ 281.1Shubertf ${DESTDIR}/usr/mdec/mbr_bootsel \ 291.12Smartin ${DESTDIR}/usr/mdec/gptmbr.bin \ 301.1Shubertf ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 311.6Sabs ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 321.9Sroy ${DISTRIBDIR}/common/services 331.1ShubertfPARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q} 341.1Shubertf 351.15Sandvar# This propagates through to the link of ramdiskbin 361.1Shubertf# The map file is useful when trying to prune the image 371.10SjoergLDFLAGS+= -Wl,-Map,${CRUNCHBIN}.map,--cref 381.13SmrgCRUNCHENV+= LDFLAGS=${LDFLAGS:Q} 391.13SmrgCLEANFILES+= ${CRUNCHBIN}.map 401.1Shubertf 411.1Shubertf.if defined(USE_SYSINST) 421.1Shubertf.if ${USE_SYSINST} != yes 431.1ShubertfLISTS+= ${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST} 441.1Shubertf.else 451.1ShubertfLISTS+= ${DISTRIBDIR}/common/list.sysinst 461.1Shubertf.endif 471.1ShubertfMAKEFS_FLAGS+= -f 14 481.1Shubertf.endif 491.1Shubertf 501.1Shubertf# Use stubs to eliminate some large stuff from libc 511.1ShubertfHACKSRC= ${DISTRIBDIR}/utils/libhack 521.1Shubertf.include "${HACKSRC}/Makefile.inc" 531.1Shubertf${CRUNCHBIN}: libhack.o 541.1Shubertf 551.1Shubertf.include "${DISTRIBDIR}/common/Makefile.crunch" 561.1Shubertf.include "${DISTRIBDIR}/common/Makefile.makedev" 571.1Shubertf.include "${DISTRIBDIR}/common/Makefile.image" 581.1Shubertf 591.16Sriastradrelease: ${IMAGE} 601.16Sriastrad ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${IMAGE} \ 611.16Sriastrad ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/ramdisk/ 621.1Shubertf 631.1Shubertf.include <bsd.prog.mk> 64