1 1.13 mrg # $NetBSD: Makefile.ramdisk,v 1.13 2018/03/13 02:22:43 mrg Exp $ 2 1.1 hubertf 3 1.1 hubertf .include <bsd.own.mk> 4 1.1 hubertf .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 1.1 hubertf 6 1.1 hubertf I386COMMON= ${.CURDIR}/../common 7 1.1 hubertf 8 1.1 hubertf .PATH: ${I386COMMON} 9 1.1 hubertf 10 1.1 hubertf WARNS= 1 11 1.1 hubertf DBG= -Os 12 1.1 hubertf 13 1.1 hubertf CRUNCHBIN= ramdiskbin 14 1.11 apb 15 1.11 apb # Use ${.CURDIR}/list only if LISTS was not already defined by the caller. 16 1.11 apb LISTS?= ${.CURDIR}/list 17 1.11 apb LISTS+= ${I386COMMON}/list.ramdisk 18 1.1 hubertf MTREECONF= ${DISTRIBDIR}/common/mtree.common 19 1.1 hubertf IMAGEENDIAN= le 20 1.1 hubertf IMAGEDEPENDS+= ${CRUNCHBIN} \ 21 1.4 tsutsui dot.profile \ 22 1.1 hubertf ${DESTDIR}/usr/mdec/boot \ 23 1.1 hubertf ${DESTDIR}/usr/mdec/bootxx_ffsv1 \ 24 1.1 hubertf ${DESTDIR}/usr/mdec/mbr \ 25 1.1 hubertf ${DESTDIR}/usr/mdec/mbr_ext \ 26 1.1 hubertf ${DESTDIR}/usr/mdec/mbr_bootsel \ 27 1.12 martin ${DESTDIR}/usr/mdec/gptmbr.bin \ 28 1.1 hubertf ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 29 1.6 abs ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 30 1.9 roy ${DISTRIBDIR}/common/services 31 1.1 hubertf PARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q} 32 1.1 hubertf 33 1.1 hubertf # This propogates through to the link of ramdiskbin 34 1.1 hubertf # The map file is useful when trying to prune the image 35 1.10 joerg LDFLAGS+= -Wl,-Map,${CRUNCHBIN}.map,--cref 36 1.13 mrg CRUNCHENV+= LDFLAGS=${LDFLAGS:Q} 37 1.13 mrg CLEANFILES+= ${CRUNCHBIN}.map 38 1.1 hubertf 39 1.1 hubertf .if defined(USE_SYSINST) 40 1.1 hubertf .if ${USE_SYSINST} != yes 41 1.1 hubertf LISTS+= ${DISTRIBDIR}/common/list.sysinst.${USE_SYSINST} 42 1.1 hubertf .else 43 1.1 hubertf LISTS+= ${DISTRIBDIR}/common/list.sysinst 44 1.1 hubertf .endif 45 1.1 hubertf MAKEFS_FLAGS+= -f 14 46 1.1 hubertf .endif 47 1.1 hubertf 48 1.1 hubertf # Use stubs to eliminate some large stuff from libc 49 1.1 hubertf HACKSRC= ${DISTRIBDIR}/utils/libhack 50 1.1 hubertf .include "${HACKSRC}/Makefile.inc" 51 1.1 hubertf ${CRUNCHBIN}: libhack.o 52 1.1 hubertf 53 1.1 hubertf .include "${DISTRIBDIR}/common/Makefile.crunch" 54 1.1 hubertf .include "${DISTRIBDIR}/common/Makefile.makedev" 55 1.1 hubertf .include "${DISTRIBDIR}/common/Makefile.image" 56 1.1 hubertf 57 1.1 hubertf release: 58 1.1 hubertf 59 1.1 hubertf .include <bsd.prog.mk> 60