Home | History | Annotate | Line # | Download | only in sshramdisk
Makefile revision 1.22
      1 #	$NetBSD: Makefile,v 1.22 2020/02/28 13:00:51 christos Exp $
      2 
      3 .include <bsd.own.mk>
      4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
      5 
      6 IMAGE=		sshramdisk.fs
      7 IMAGESIZE=	33000k
      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=	${TOOL_PAX} ${PAX_TIMESTAMP} -rw -pp ${DESTDIR}/libdata/firmware ${WORKDIR}
     33 
     34 .PATH:	${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist
     35 liboverride.o: ssh-sk-client.o
     36 	${_MKTARGET_LINK}
     37 	${LD} -r -o ${.TARGET} ${.ALLSRC}
     38 
     39 CLEANFILES+=	liboverride.o ssh-sk-client.o
     40 
     41 
     42 # Use stubs to eliminate some large stuff from libc
     43 HACKSRC=	${DISTRIBDIR}/utils/libhack
     44 .include	"${HACKSRC}/Makefile.inc"
     45 ${CRUNCHBIN}:	libhack.o liboverride.o
     46 
     47 USE_PAM := no
     48 USE_YP := no
     49 USE_SKEY := no
     50 USE_KERBEROS := no
     51 USE_LDAP := no
     52 .export USE_PAM
     53 .export USE_YP
     54 .export USE_SKEY
     55 .export USE_KERBEROS
     56 .export USE_LDAP
     57 
     58 .include "${DISTRIBDIR}/common/Makefile.crunch"
     59 .include "${DISTRIBDIR}/common/Makefile.dhcpcd"
     60 .include "${DISTRIBDIR}/common/Makefile.makedev"
     61 .include "${DISTRIBDIR}/common/Makefile.image"
     62 
     63 release:
     64 
     65 .include <bsd.prog.mk>
     66