From 6118266e58c0fa4fa9a9c9d2354a7bcc1af274ae Mon Sep 17 00:00:00 2001 From: mrg Date: Thu, 31 May 2018 05:27:45 +0000 Subject: 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. --- sys/dev/microcode/run/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/microcode/run') diff --git a/sys/dev/microcode/run/Makefile b/sys/dev/microcode/run/Makefile index f112694d7b4..7356e56b683 100644 --- a/sys/dev/microcode/run/Makefile +++ b/sys/dev/microcode/run/Makefile @@ -1,8 +1,12 @@ -# $NetBSD: Makefile,v 1.1 2012/06/01 13:19:39 nonaka Exp $ +# $NetBSD: Makefile,v 1.2 2018/05/31 05:27:46 mrg Exp $ NOMAN= # defined +.include + +.if ${MKFIRMWARE} != "no" FILES= run-rt2870 run-rt3071 run-license +.endif # XXX includes: -- cgit