NetBSD/distrib/amd64/ramdisks/common/Makefile.ramdisk
apb 5d76c7eb78 In distrib/*/ramdisks/common/Makefile.ramdisk, allow the caller to
pre-define the LISTS variable if they do not want it to include
${.CURDIR}/lists.  This opens the possibility of making some of the
many distrib/*/ramdisks/*/lists files shared in the future.

XXX: Some of the differences between these files seem to be unnecessary.
2012-10-16 08:23:20 +00:00

51 lines
1.4 KiB
Makefile

# $NetBSD: Makefile.ramdisk,v 1.10 2012/10/16 08:23:20 apb Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
AMD64COMMON= ${.CURDIR}/../common
.PATH: ${AMD64COMMON}
WARNS= 1
DBG= -Os -fno-asynchronous-unwind-tables
CRUNCHGEN_FLAGS= -d "${DBG}"
CRUNCHBIN= ramdiskbin
# Use ${.CURDIR}/list only if LISTS was not already defined by the caller.
LISTS?= ${.CURDIR}/list
LISTS+= ${AMD64COMMON}/list.ramdisk
MTREECONF= ${DISTRIBDIR}/common/mtree.common
IMAGEENDIAN= le
IMAGEDEPENDS+= ${CRUNCHBIN} \
dot.profile \
${DESTDIR}/usr/mdec/boot \
${DESTDIR}/usr/mdec/bootxx_ffsv1 \
${DESTDIR}/usr/mdec/mbr \
${DESTDIR}/usr/mdec/mbr_ext \
${DESTDIR}/usr/mdec/mbr_bootsel \
${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \
${DISTRIBDIR}/common/services
PARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q}
.if defined(USE_SYSINST)
LISTS+= ${DISTRIBDIR}/common/list.sysinst
MAKEFS_FLAGS+= -f 14
.endif
# 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:
.include <bsd.prog.mk>