1 # $NetBSD: Makefile,v 1.26 2024/03/15 02:20:58 riastradh Exp $ 2 3 .include <bsd.own.mk> 4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 6 IMAGE= sshramdisk.fs 7 IMAGESIZE= 45000k 8 MAKEFS_FLAGS+= -f 15 9 10 .if ${MKREPRO_TIMESTAMP:Uno} != "no" 11 MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}" 12 PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}" 13 .endif 14 15 WARNS= 1 16 DBG= -Os 17 18 CRUNCHBIN= ramdiskbin 19 LISTS= ${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst 20 MTREECONF= ${.CURDIR}/mtree.conf 21 .if empty(MACHINE_ARCH:M*eb) 22 IMAGEENDIAN= le 23 .else 24 IMAGEENDIAN= be 25 .endif 26 MAKEDEVTARGETS= ramdisk 27 IMAGEDEPENDS= ${CRUNCHBIN} \ 28 dot.profile master.passwd sshd_config ssh_host_rsa_key \ 29 ${NETBSDSRCDIR}/etc/group \ 30 ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 31 ${DISTRIBDIR}/common/services 32 IMAGEPREBUILD= \ 33 (cd ${DESTDIR} && ${TOOL_PAX} ${PAX_TIMESTAMP} -w libdata/firmware) \ 34 | (cd ${WORKDIR} && ${TOOL_PAX} -r -pp) 35 36 # Use stubs to eliminate some large stuff from libc 37 HACKSRC= ${DISTRIBDIR}/utils/libhack 38 .include "${HACKSRC}/Makefile.inc" 39 ${CRUNCHBIN}: libhack.o 40 41 USE_PAM := no 42 USE_YP := no 43 USE_SKEY := no 44 USE_KERBEROS := no 45 USE_LDAP := no 46 .export USE_PAM 47 .export USE_YP 48 .export USE_SKEY 49 .export USE_KERBEROS 50 .export USE_LDAP 51 52 .include "${DISTRIBDIR}/common/Makefile.crunch" 53 .include "${DISTRIBDIR}/common/Makefile.dhcpcd" 54 .include "${DISTRIBDIR}/common/Makefile.makedev" 55 .include "${DISTRIBDIR}/common/Makefile.image" 56 57 release: 58 59 .include <bsd.prog.mk> 60