Makefile.ramdisk revision 1.16
11.82Sknakahar# $NetBSD: Makefile.ramdisk,v 1.16 2024/03/20 13:51:35 riastradh Exp $ 21.1Sdyoung 31.1SdyoungNOSANITIZER= # defined 41.40Sdyoung 51.1Sdyoung.include <bsd.own.mk> 61.1Sdyoung.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 71.1Sdyoung 81.1SdyoungI386COMMON= ${.CURDIR}/../common 91.1Sdyoung 101.1Sdyoung.PATH: ${I386COMMON} 111.1Sdyoung 121.1SdyoungWARNS= 1 131.1SdyoungDBG= -Os 141.1Sdyoung 151.1SdyoungCRUNCHBIN= ramdiskbin 161.1Sdyoung 171.1Sdyoung# Use ${.CURDIR}/list only if LISTS was not already defined by the caller. 181.1SdyoungLISTS?= ${.CURDIR}/list 191.1SdyoungLISTS+= ${I386COMMON}/list.ramdisk 201.1SdyoungMTREECONF= ${DISTRIBDIR}/common/mtree.common 211.1SdyoungIMAGEENDIAN= le 221.1SdyoungIMAGEDEPENDS+= ${CRUNCHBIN} \ 231.1Sdyoung dot.profile \ 241.1Sdyoung ${DESTDIR}/usr/mdec/boot \ 251.1Sdyoung ${DESTDIR}/usr/mdec/bootxx_ffsv1 \ 261.1Sdyoung ${DESTDIR}/usr/mdec/mbr \ 271.1Sdyoung ${DESTDIR}/usr/mdec/mbr_ext \ 281.1Sdyoung ${DESTDIR}/usr/mdec/mbr_bootsel \ 291.1Sdyoung ${DESTDIR}/usr/mdec/gptmbr.bin \ 301.1Sdyoung ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 311.1Sdyoung ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 321.1Sdyoung ${DISTRIBDIR}/common/services 331.1SdyoungPARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q} 341.1Sdyoung 351.3Sdyoung# This propagates through to the link of ramdiskbin 361.47Sskrll# The map file is useful when trying to prune the image 371.40SdyoungLDFLAGS+= -Wl,-Map,${CRUNCHBIN}.map,--cref 381.40SdyoungCRUNCHENV+= LDFLAGS=${LDFLAGS:Q} 391.82SknakaharCLEANFILES+= ${CRUNCHBIN}.map 401.3Sdyoung 411.1Sdyoung.if defined(USE_SYSINST) 421.79Spooka.if ${USE_SYSINST} != yes 431.1SdyoungLISTS+= ${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST} 441.79Spooka.else 451.1SdyoungLISTS+= ${DISTRIBDIR}/common/list.sysinst 461.5Sdyoung.endif 471.5SdyoungMAKEFS_FLAGS+= -f 14 481.5Sdyoung.endif 491.1Sdyoung 501.38Sperry# Use stubs to eliminate some large stuff from libc 511.75SchristosHACKSRC= ${DISTRIBDIR}/utils/libhack 521.1Sdyoung.include "${HACKSRC}/Makefile.inc" 531.40Sdyoung${CRUNCHBIN}: libhack.o 541.1Sdyoung 551.74Schristos.include "${DISTRIBDIR}/common/Makefile.crunch" 561.1Sdyoung.include "${DISTRIBDIR}/common/Makefile.makedev" 571.1Sdyoung.include "${DISTRIBDIR}/common/Makefile.image" 581.1Sdyoung 591.1Sdyoungrelease: ${IMAGE} 601.1Sdyoung ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${IMAGE} \ 611.1Sdyoung ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/ramdisk/ 621.1Sdyoung 631.1Sdyoung.include <bsd.prog.mk> 641.1Sdyoung