summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2018-05-31 05:27:45 +0000
committermrg <mrg@NetBSD.org>2018-05-31 05:27:45 +0000
commit6118266e58c0fa4fa9a9c9d2354a7bcc1af274ae (patch)
treeaf6af06b13f8572090b4af76eafae4dac70c4423 /sys/dev/microcode
parent085b55326a0487d3739339a707a68e1b2b121f1d (diff)
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.
Diffstat (limited to 'sys/dev/microcode')
-rw-r--r--sys/dev/microcode/ral/Makefile6
-rw-r--r--sys/dev/microcode/rum/Makefile6
-rw-r--r--sys/dev/microcode/run/Makefile6
-rw-r--r--sys/dev/microcode/zyd/Makefile6
4 files changed, 20 insertions, 4 deletions
diff --git a/sys/dev/microcode/ral/Makefile b/sys/dev/microcode/ral/Makefile
index 47178df16d9..967abdea34d 100644
--- a/sys/dev/microcode/ral/Makefile
+++ b/sys/dev/microcode/ral/Makefile
@@ -1,8 +1,12 @@
-# $NetBSD: Makefile,v 1.6 2016/04/27 19:50:06 christos Exp $
+# $NetBSD: Makefile,v 1.7 2018/05/31 05:27:46 mrg Exp $
NOMAN= # defined
+.include <bsd.own.mk>
+
+.if ${MKFIRMWARE} != "no"
FILES= ral-rt2561 ral-rt2561s ral-rt2661 ral-rt2860 ral-license
+.endif
# XXX
includes:
diff --git a/sys/dev/microcode/rum/Makefile b/sys/dev/microcode/rum/Makefile
index 45474c95453..5bab5b78299 100644
--- a/sys/dev/microcode/rum/Makefile
+++ b/sys/dev/microcode/rum/Makefile
@@ -1,8 +1,12 @@
-# $NetBSD: Makefile,v 1.3 2012/06/01 13:19:39 nonaka Exp $
+# $NetBSD: Makefile,v 1.4 2018/05/31 05:27:46 mrg Exp $
NOMAN= # defined
+.include <bsd.own.mk>
+
+.if ${MKFIRMWARE} != "no"
FILES= rum-rt2573 rum-license
+.endif
# XXX
includes:
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 <bsd.own.mk>
+
+.if ${MKFIRMWARE} != "no"
FILES= run-rt2870 run-rt3071 run-license
+.endif
# XXX
includes:
diff --git a/sys/dev/microcode/zyd/Makefile b/sys/dev/microcode/zyd/Makefile
index abe7ad27753..fd2100e65d5 100644
--- a/sys/dev/microcode/zyd/Makefile
+++ b/sys/dev/microcode/zyd/Makefile
@@ -1,8 +1,12 @@
-# $NetBSD: Makefile,v 1.2 2009/02/18 10:51:17 hira Exp $
+# $NetBSD: Makefile,v 1.3 2018/05/31 05:27:46 mrg Exp $
NOMAN= # defined
+.include <bsd.own.mk>
+
+.if ${MKFIRMWARE} != "no"
FILES= zyd-zd1211 zyd-zd1211b zd1211-license
+.endif
# XXX
includes: