diff options
| author | Roy Marples <roy@marples.name> | 2016-09-09 09:56:26 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-09-09 09:56:26 +0000 |
| commit | 98cc5e0b723fa5b40711f5529d240510dfdb09bb (patch) | |
| tree | 73b7856c7132f75954863d9c7421461af2eba51f /configure | |
| parent | 4faac32f3a6b1120bed7272bdea473da886a64d0 (diff) | |
| download | dhcpcd-98cc5e0b723fa5b40711f5529d240510dfdb09bb.tar.xz | |
Add the --small configure option which currently removes non essential options
from being parsed out into dhcpcd-run-hooks and removes support for
DHCPv6 Prefix Delegation.
This is mainly to build a tiny dhcpcd for install media size there are more
extreme space limitations.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -24,8 +24,11 @@ STATIC= DEVS= EMBEDDED= POLL= +SMALL= STATUSARG= +DHCPCD_DEFS=dhcpcd-definitions.conf + for x do opt=${x%%=*} var=${x#*=} @@ -81,6 +84,7 @@ for x do --serviceexists) SERVICEEXISTS=$var;; --servicecmd) SERVICECMD=$var;; --servicestatus) SERVICESTATUS=$var;; + --small) SMALL=yes;; --statusarg) STATUSARG=$var;; --infodir|--includedir) ;; # ignore autotools --disable-maintainer-mode|--disable-dependency-tracking) ;; @@ -372,6 +376,13 @@ if [ -n "$FORK" -a "$FORK" != yes -a "$FORK" != true ]; then echo "CPPFLAGS+= -DTHERE_IS_NO_FORK" >>$CONFIG_MK fi +if [ "$SMALL" = yes ]; then + echo "Building with -DSMALL" + echo "CPPFLAGS+= -DSMALL" >>$CONFIG_MK + DHCPCD_DEFS=dhcpcd-definitions-small.conf + echo "DHCPCD_DEFS= $DHCPCD_DEFS" >>$CONFIG_MK +fi + case "$OS" in freebsd*|kfreebsd*) # FreeBSD hide some newer POSIX APIs behind _GNU_SOURCE ... @@ -461,10 +472,10 @@ fi $CC --version | $SED -e '1!d' if [ -z "$EMBEDDED" -o "$EMBEDDED" = yes ]; then - echo "dhcpcd-definitions.conf will be embedded in dhcpcd itself" + echo "$DHCPCD_DEFS will be embedded in dhcpcd itself" echo "DHCPCD_SRCS+= dhcpcd-embedded.c" >>$CONFIG_MK else - echo "dhcpcd-definitions.conf will be installed to $LIBEXECDIR" + echo "$DHCPCD_DEFS will be installed to $LIBEXECDIR" echo "CPPFLAGS+= -DEMBEDDED_CONFIG=\\\"$LIBEXECDIR/dhcpcd-definitions.conf\\\"" >>$CONFIG_MK echo "EMBEDDEDINSTALL= _embeddedinstall" >>$CONFIG_MK fi |
