1# $NetBSD: Makefile,v 1.27 2021/06/18 20:30:58 mrg Exp $ 2 3.include <bsd.own.mk> 4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5.include <bsd.kernobj.mk> 6 7IMAGE= ramdisk.fs 8IMAGESIZE= 600k 9MAKEFS_FLAGS+= -f 15 -o density=3072,bsize=4096,fsize=512,optimization=space 10 11WARNS= 1 12DBG= -Os -fno-unwind-tables -fno-ident 13 14# XXXMRG - see if these help/hinder reduced size? 15#-fno-jump-tables 16#-fzero-initialized-in-bss 17#-fgcse-after-reload 18#-fdelete-null-pointer-checks 19#-fno-sched-interblock 20#-fno-sched-spec 21#-fsched-pressure 22#-fcode-hoisting 23#-ftree-partial-pre 24#-fno-ipa-cp 25#-ftree-builtin-call-dce 26#-fno-align-functions 27#-fno-align-loops 28#-fno-align-jumps 29#-fno-align-labels 30#-fallow-store-data-races 31 32CRUNCHBIN= rd_bin 33LISTS= ${.CURDIR}/list 34MTREECONF= ${.CURDIR}/mtree.conf 35IMAGEENDIAN= be 36MAKEDEVTARGETS= std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0 37IMAGEDEPENDS= ${CRUNCHBIN} \ 38 fstab passwd protocols ${DISTRIBDIR}/common/services \ 39 sshrc welcome ${NETBSDSRCDIR}/etc/netconfig 40 41MDSETTARGETS= RAMDISK ramdisk.fs - 42MDSET_RELEASEDIR= binary/kernel 43 44# Use stubs to eliminate some large stuff from libc 45HACKSRC= ${DISTRIBDIR}/utils/libhack 46.MAKEFLAGS+= NOIEEE80211=1 47.include "${HACKSRC}/Makefile.inc" 48${CRUNCHBIN}: libhack.o 49 50fstab: .PHONY 51 52.include "${DISTRIBDIR}/common/Makefile.crunch" 53.include "${DISTRIBDIR}/common/Makefile.makedev" 54.include "${DISTRIBDIR}/common/Makefile.image" 55.include "${DISTRIBDIR}/common/Makefile.mdset" 56 57.include <bsd.prog.mk> 58