Makefile.ramdisk revision 1.12
1# $NetBSD: Makefile.ramdisk,v 1.12 2018/06/21 11:48:05 kamil Exp $ 2 3NOSANITIZER= # defined 4 5.include <bsd.own.mk> 6.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 7 8AMD64COMMON= ${.CURDIR}/../common 9 10.PATH: ${AMD64COMMON} 11 12WARNS= 1 13DBG= -Os -fno-asynchronous-unwind-tables 14CRUNCHGEN_FLAGS= -d "${DBG}" 15 16CRUNCHBIN= ramdiskbin 17 18# Use ${.CURDIR}/list only if LISTS was not already defined by the caller. 19LISTS?= ${.CURDIR}/list 20LISTS+= ${AMD64COMMON}/list.ramdisk 21MTREECONF= ${DISTRIBDIR}/common/mtree.common 22IMAGEENDIAN= le 23IMAGEDEPENDS+= ${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 ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 32 ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 33 ${DISTRIBDIR}/common/services 34PARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q} 35 36.if defined(USE_SYSINST) 37LISTS+= ${DISTRIBDIR}/common/list.sysinst 38MAKEFS_FLAGS+= -f 14 39.endif 40 41# Use stubs to eliminate some large stuff from libc 42HACKSRC= ${DISTRIBDIR}/utils/libhack 43.include "${HACKSRC}/Makefile.inc" 44${CRUNCHBIN}: libhack.o 45 46.include "${DISTRIBDIR}/common/Makefile.crunch" 47.include "${DISTRIBDIR}/common/Makefile.dhcpcd" 48.include "${DISTRIBDIR}/common/Makefile.makedev" 49.include "${DISTRIBDIR}/common/Makefile.image" 50 51release: 52 53.include <bsd.prog.mk> 54