# $NetBSD: Makefile,v 1.16.4.1 2017/07/18 19:13:07 snj Exp $ .include .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" IMAGE= ramdisk.fs IMAGESIZE= 3072k MAKEFS_FLAGS+= -f 15 WARNS= 1 DBG= -Os .if !empty(MACHINE_ARCH:Mearmv7*) && ${ACTIVE_CC} == "gcc" DBG+= -mthumb -mthumb-interwork .endif CRUNCHBIN= ramdiskbin LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst MTREECONF= ${DISTRIBDIR}/common/mtree.common .if empty(MACHINE_ARCH:M*eb) IMAGEENDIAN= le .else IMAGEENDIAN= be .endif MAKEDEVTARGETS= ramdisk IMAGEDEPENDS= ${CRUNCHBIN} \ dot.profile \ ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ ${DISTRIBDIR}/common/services # Use stubs to eliminate some large stuff from libc HACKSRC= ${DISTRIBDIR}/utils/libhack .include "${HACKSRC}/Makefile.inc" ${CRUNCHBIN}: libhack.o .include "${DISTRIBDIR}/common/Makefile.crunch" .include "${DISTRIBDIR}/common/Makefile.dhcpcd" .include "${DISTRIBDIR}/common/Makefile.makedev" .include "${DISTRIBDIR}/common/Makefile.image" release: ${IMAGE} ${RELEASE_INSTALL} ${IMAGE} \ ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/ramdisk/ ${TOOL_MKUBOOTIMAGE} -A arm -C none -O linux -T ramdisk \ -a 0 -n "NetBSD/${MACHINE_ARCH} ramdisk" ${IMAGE} \ ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/ramdisk/${IMAGE:S/.fs/.ub/} .include