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