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