Home | History | Annotate | Line # | Download | only in ramdisk
Makefile revision 1.27
      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 
      7 IMAGE=		ramdisk.fs
      8 IMAGESIZE=	600k
      9 MAKEFS_FLAGS+=	-f 15 -o density=3072,bsize=4096,fsize=512,optimization=space
     10 
     11 WARNS=		1
     12 DBG=		-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 
     32 CRUNCHBIN=	rd_bin
     33 LISTS=		${.CURDIR}/list
     34 MTREECONF=	${.CURDIR}/mtree.conf
     35 IMAGEENDIAN=	be
     36 MAKEDEVTARGETS=	std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0
     37 IMAGEDEPENDS=	${CRUNCHBIN} \
     38 		fstab passwd protocols ${DISTRIBDIR}/common/services \
     39 		sshrc welcome ${NETBSDSRCDIR}/etc/netconfig
     40 
     41 MDSETTARGETS=		RAMDISK ramdisk.fs -
     42 MDSET_RELEASEDIR=	binary/kernel
     43 
     44 # Use stubs to eliminate some large stuff from libc
     45 HACKSRC=	${DISTRIBDIR}/utils/libhack
     46 .MAKEFLAGS+=	NOIEEE80211=1
     47 .include	"${HACKSRC}/Makefile.inc"
     48 ${CRUNCHBIN}:	libhack.o
     49 
     50 fstab: .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