Module Name: src
Committed By: rin
Date: Wed May 11 10:45:48 UTC 2022
Modified Files:
src/distrib/common: Makefile.crunch
src/distrib/utils/x_ifconfig: Makefile
Log Message:
Introduce NOIEEE80211 option, by which IEEE 802.11 support is dropped from
ifconfig(8) in crunched binaries. This saves ~9KB for, e.g., m68k.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/distrib/common/Makefile.crunch
cvs rdiff -u -r1.39 -r1.40 src/distrib/utils/x_ifconfig/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/common/Makefile.crunch
diff -u src/distrib/common/Makefile.crunch:1.26 src/distrib/common/Makefile.crunch:1.27
--- src/distrib/common/Makefile.crunch:1.26 Sun Dec 29 18:26:16 2019
+++ src/distrib/common/Makefile.crunch Wed May 11 10:45:48 2022
@@ -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 @@ CRUNCHENV+= AWK=${TOOL_AWK:Q}
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"
Index: src/distrib/utils/x_ifconfig/Makefile
diff -u src/distrib/utils/x_ifconfig/Makefile:1.39 src/distrib/utils/x_ifconfig/Makefile:1.40
--- src/distrib/utils/x_ifconfig/Makefile:1.39 Tue May 2 20:12:10 2017
+++ src/distrib/utils/x_ifconfig/Makefile Wed May 11 10:45:48 2022
@@ -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