1 # $NetBSD: Makefile.ramdisk,v 1.14.2.2 2024/03/25 15:19:44 martin Exp $ 2 3 NOSANITIZER= # defined 4 5 .include <bsd.own.mk> 6 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 7 8 AMD64COMMON= ${.CURDIR}/../common 9 10 .PATH: ${AMD64COMMON} 11 12 WARNS= 1 13 DBG= -Os -fno-asynchronous-unwind-tables 14 CRUNCHGEN_FLAGS= -d "${DBG}" 15 16 CRUNCHBIN= ramdiskbin 17 18 # Use ${.CURDIR}/list only if LISTS was not already defined by the caller. 19 LISTS?= ${.CURDIR}/list 20 LISTS+= ${AMD64COMMON}/list.ramdisk 21 MTREECONF= ${DISTRIBDIR}/common/mtree.common 22 IMAGEENDIAN= le 23 IMAGEDEPENDS+= ${CRUNCHBIN} \ 24 dot.profile \ 25 ${DESTDIR}/usr/mdec/boot \ 26 ${DESTDIR}/usr/mdec/bootxx_ffsv1 \ 27 ${DESTDIR}/usr/mdec/mbr \ 28 ${DESTDIR}/usr/mdec/mbr_ext \ 29 ${DESTDIR}/usr/mdec/mbr_bootsel \ 30 ${DESTDIR}/usr/mdec/gptmbr.bin \ 31 ${DESTDIR}/usr/mdec/bootia32.efi \ 32 ${DESTDIR}/usr/mdec/bootx64.efi \ 33 ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 34 ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 35 ${DISTRIBDIR}/common/services 36 PARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q} 37 38 .if defined(USE_SYSINST) 39 LISTS+= ${DISTRIBDIR}/common/list.sysinst 40 MAKEFS_FLAGS+= -f 14 41 .endif 42 43 # Use stubs to eliminate some large stuff from libc 44 HACKSRC= ${DISTRIBDIR}/utils/libhack 45 .include "${HACKSRC}/Makefile.inc" 46 ${CRUNCHBIN}: libhack.o 47 48 .include "${DISTRIBDIR}/common/Makefile.crunch" 49 .include "${DISTRIBDIR}/common/Makefile.dhcpcd" 50 .include "${DISTRIBDIR}/common/Makefile.makedev" 51 .include "${DISTRIBDIR}/common/Makefile.image" 52 53 release: ${IMAGE} 54 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${IMAGE} \ 55 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/ramdisk/ 56 57 .include <bsd.prog.mk> 58