Commit bd8bceae authored by Mike Frysinger's avatar Mike Frysinger

slattach/plipconfig: add a config knob to control them

parent 93912384
......@@ -33,7 +33,7 @@ SBINDIR ?= /sbin
NET_LIB_PATH = lib
NET_LIB_NAME = net-tools
PROGS := ifconfig netstat route slattach plipconfig nameif
PROGS := ifconfig netstat route nameif
-include config.make
ifeq ($(HAVE_ARP_TOOLS),1)
......@@ -48,6 +48,12 @@ endif
ifeq ($(HAVE_MII),1)
PROGS += mii-tool
endif
ifeq ($(HAVE_PLIP_TOOLS),1)
PROGS += plipconfig
endif
ifeq ($(HAVE_SERIAL_TOOLS),1)
PROGS += slattach
endif
# Compiler and Linker Options
CFLAGS ?= -O2 -g
......@@ -210,9 +216,7 @@ installbin:
install -m 0755 ifconfig ${BASEDIR}${BINDIR}
install -m 0755 nameif ${BASEDIR}${SBINDIR}
install -m 0755 netstat ${BASEDIR}${BINDIR}
install -m 0755 plipconfig $(BASEDIR)${SBINDIR}
install -m 0755 route ${BASEDIR}${BINDIR}
install -m 0755 slattach $(BASEDIR)${SBINDIR}
ifeq ($(HAVE_ARP_TOOLS),1)
install -m 0755 arp ${BASEDIR}${SBINDIR}
install -m 0755 rarp ${BASEDIR}${SBINDIR}
......@@ -236,6 +240,12 @@ endif
ifeq ($(HAVE_MII),1)
install -m 0755 mii-tool $(BASEDIR)${SBINDIR}
endif
ifeq ($(HAVE_PLIP_TOOLS),1)
install -m 0755 plipconfig $(BASEDIR)${SBINDIR}
endif
ifeq ($(HAVE_SERIAL_TOOLS),1)
install -m 0755 slattach $(BASEDIR)${SBINDIR}
endif
savebin:
@for i in ${BASEDIR}${SBINDIR}/arp ${BASEDIR}${SBINDIR}/ifconfig \
......
......@@ -95,4 +95,6 @@ bool 'Build hostname' HAVE_HOSTNAME_TOOLS y
bool 'Install hostname NIS/YP symlinks' HAVE_HOSTNAME_SYMLINKS y
bool 'Build iptunnel and ipmaddr' HAVE_IP_TOOLS y
bool 'Build mii-tool' HAVE_MII y
bool 'Build plipconfig' HAVE_PLIP_TOOLS y
bool 'Build slattach' HAVE_SERIAL_TOOLS y
bool 'SELinux support' HAVE_SELINUX n
......@@ -58,6 +58,12 @@ endif
ifneq ($(HAVE_MII),1)
IGNORE_CMDS += |mii-tool.?
endif
ifneq ($(HAVE_PLIP_TOOLS),1)
IGNORE_CMDS += |plipconfig.?
endif
ifneq ($(HAVE_SERIAL_TOOLS),1)
IGNORE_CMDS += |slattach.?
endif
all:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment