NetBSD/distrib/sets/mkvars.mk
mrg a37025c593 introduce MKFIRMWARE that controls where (most) of the contents
of /libdata/firmware and /usr/libdata/firmware are not installed
if set to "no".  from the bsd.README:

MKFIRMWARE      If "no", install the /libdata/firmware directory,
		which is necessary for several drivers: athn(4), bwfm(4),
		ipw(4), iwi(4), iwm(4), iwn(4), otus(4), rtwn(4), urtwn(4),
		wpi(4), ral(4), rum(4), run(4), zyd(4), bcm43xx(4), and
		the Tegra 124 SoC.
		Default: yes on amd64, cobalt, evbarm evbmips, evbppc, hpcarm,
		hppa, i386, mac68k, macppc, sandpoint, and sparc64, no elsewhere.

convert MKRADEONFIRMWARE and MKTEGRAFIRMWARE into FOO.arch lists,
and move their defaults above the general defaults setting.

saves about 12MB in a normal installation for other platforms.
2018-05-31 05:27:45 +00:00

119 lines
2.0 KiB
Makefile

# $NetBSD: mkvars.mk,v 1.35 2018/05/31 05:27:45 mrg Exp $
MKEXTRAVARS= \
MACHINE \
MACHINE_ARCH \
MACHINE_CPU \
HAVE_GCC \
HAVE_GDB \
HAVE_XORG_SERVER_VER \
HAVE_BINUTILS \
HAVE_LIBGCC_EH \
HAVE_OPENSSL \
HAVE_SSP \
OBJECT_FMT \
TOOLCHAIN_MISSING \
EXTSRCS \
MKMANZ \
MKBFD \
MKCOMPAT \
MKCOMPATTESTS \
MKCOMPATMODULES \
MKDTC \
MKDYNAMICROOT \
MKFIRMWARE \
MKMANPAGES \
MKSLJIT \
MKSOFTFLOAT \
MKXORG \
MKXORG_SERVER \
MKRADEONFIRMWARE \
MKSTATICPIE \
USE_INET6 \
USE_KERBEROS \
USE_LDAP \
USE_YP \
NETBSDSRCDIR \
MAKEVERBOSE \
TARGET_ENDIANNESS \
EABI \
ARCH64
#####
.include <bsd.own.mk>
.include <bsd.endian.mk>
.if (${MKMAN} == "no" || empty(MANINSTALL:Mmaninstall))
MKMANPAGES=no
.else
MKMANPAGES=yes
.endif
.if ${MKCOMPAT} != "no"
ARCHDIR_SUBDIR:=
.include "${NETBSDSRCDIR}/compat/archdirs.mk"
COMPATARCHDIRS:=${ARCHDIR_SUBDIR:T}
.endif
.if ${MKKMOD} != "no" && ${MKCOMPATMODULES} != "no"
ARCHDIR_SUBDIR:=
.include "${NETBSDSRCDIR}/sys/modules/arch/archdirs.mk"
KMODARCHDIRS:=${ARCHDIR_SUBDIR:T}
.endif
.if ${MKX11} != "no"
MKXORG:=yes
# We have to force this off, because "MKX11" is still an option
# that is in _MKVARS.
MKX11:=no
.endif
.if (!empty(MACHINE_ARCH:Mearm*))
EABI=yes
.else
EABI=no
.endif
.if (!empty(MACHINE_ARCH:M*64*) || ${MACHINE_ARCH} == alpha)
ARCH64=yes
.else
ARCH64=no
.endif
#####
mkvars: mkvarsyesno mkextravars mksolaris .PHONY
mkvarsyesno: .PHONY
.for i in ${_MKVARS.yes}
@echo $i="${$i}"
.endfor
.for i in ${_MKVARS.no}
@echo $i="${$i}"
.endfor
mkextravars: .PHONY
.for i in ${MKEXTRAVARS}
@echo $i="${$i}"
.endfor
.if ${MKCOMPAT} != "no"
@echo COMPATARCHDIRS=${COMPATARCHDIRS:S/ /,/gW}
.else
@echo COMPATARCHDIRS=
.endif
.if ${MKKMOD} != "no" && ${MKCOMPATMODULES} != "no"
@echo KMODARCHDIRS=${KMODARCHDIRS:S/ /,/gW}
.else
@echo KMODARCHDIRS=
.endif
mksolaris: .PHONY
.if (${MKDTRACE} != "no" || ${MKZFS} != "no" || ${MKCTF} != "no")
@echo MKSOLARIS="yes"
.else
@echo MKSOLARIS="no"
.endif
.include <bsd.files.mk>