Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib Introduce NOIEEE80211 option, by which IEEE 802.11 s...



details:   https://anonhg.NetBSD.org/src/rev/c0bd0e23a4b9
branches:  trunk
changeset: 366037:c0bd0e23a4b9
user:      rin <rin%NetBSD.org@localhost>
date:      Wed May 11 10:45:48 2022 +0000

description:
Introduce NOIEEE80211 option, by which IEEE 802.11 support is dropped from
ifconfig(8) in crunched binaries. This saves ~9KB for, e.g., m68k.

diffstat:

 distrib/common/Makefile.crunch    |  6 +++++-
 distrib/utils/x_ifconfig/Makefile |  5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r b98700196eea -r c0bd0e23a4b9 distrib/common/Makefile.crunch
--- a/distrib/common/Makefile.crunch    Wed May 11 10:36:52 2022 +0000
+++ b/distrib/common/Makefile.crunch    Wed May 11 10:45:48 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.crunch,v 1.26 2019/12/29 18:26:16 christos Exp $
+#      $NetBSD: Makefile.crunch,v 1.27 2022/05/11 10:45:48 rin Exp $
 #
 # Makefile snippet to build a crunchgen(1)ed binary from the provided lists
 #
@@ -41,11 +41,15 @@
 
 SMALLPROG?=            1
 SMALLPROG_INET6?=      0
+NOIEEE80211?=          0
 .if ${SMALLPROG}                               # {
 CRUNCHENV+=            SMALLPROG=1
 .if ${SMALLPROG_INET6} && (${USE_INET6} != "no")
 CRUNCHENV+=            SMALLPROG_INET6=1
 .endif
+.if ${NOIEEE80211}
+CRUNCHENV+=            NOIEEE80211=1
+.endif
 .endif                                         # }
 
 .include "${DISTRIBDIR}/common/Makefile.parselist"
diff -r b98700196eea -r c0bd0e23a4b9 distrib/utils/x_ifconfig/Makefile
--- a/distrib/utils/x_ifconfig/Makefile Wed May 11 10:36:52 2022 +0000
+++ b/distrib/utils/x_ifconfig/Makefile Wed May 11 10:45:48 2022 +0000
@@ -1,6 +1,9 @@
-# $NetBSD: Makefile,v 1.39 2017/05/02 20:12:10 christos Exp $
+# $NetBSD: Makefile,v 1.40 2022/05/11 10:45:48 rin Exp $
 # Build a smaller ifconfig (i.e. for boot media)
 
+# You can drop IEEE 802.11 support by setting NOIEEE80211=1 in
+# parent Makefile's. This saves ~9KB for, e.g., m68k.
+
 NOMAN=         # defined
 SMALLPROG=1
 



Home | Main Index | Thread Index | Old Index