Changeset 39854


Ignore:
Timestamp:
2014-03-09T14:32:59+01:00 (4 years ago)
Author:
nbd
Message:

iproute2: add ip-full variant to disable IP_CONFIG_TINY

This change creates a new ip-full variant for the ip package.
It disables IP_CONFIG_TINY to make some iproute2 features available like xfrm, gretap, ...

Signed-off-by: Thomas Wouters <thomaswouters@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/utils/iproute2/Makefile

    r39119 r39854  
    1717PKG_BUILD_PARALLEL:=1 
    1818 
    19 PKG_BUILD_DIR:=$(BUILD_DIR)/iproute2-$(PKG_VERSION) 
     19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) 
    2020 
    2121include $(INCLUDE_DIR)/package.mk 
    2222 
    2323define Package/iproute2/Default 
     24  TITLE:=Routing control utility ($(2)) 
    2425  SECTION:=net 
    2526  CATEGORY:=Network 
    2627  URL:=http://linux-net.osdl.org/index.php/Iproute2 
     28  SUBMENU:=Routing and Redirection 
     29  DEPENDS:= +libnl-tiny 
     30  VARIANT:=$(1) 
    2731endef 
    2832 
    29 define Package/ip 
    30 $(call Package/iproute2/Default) 
    31   SUBMENU:=Routing and Redirection 
    32   DEPENDS:= +libnl-tiny 
    33   TITLE:=Routing control utility 
    34 endef 
     33Package/ip=$(call Package/iproute2/Default,tiny,Minimal) 
     34Package/ip-full=$(call Package/iproute2/Default,full,Full) 
    3535 
    3636define Package/ip/conffiles 
    3737/etc/iproute2/rt_tables 
     38endef 
     39 
     40define Package/ip-$(BUILD_VARIANT)/conffiles 
     41$(Package/ip/conffiles) 
    3842endef 
    3943 
     
    5357  TITLE:=Socket statistics utility 
    5458endef 
     59 
     60ifeq ($(BUILD_VARIANT),tiny) 
     61  IP_CONFIG_TINY:=y 
     62endif 
    5563 
    5664define Build/Configure 
     
    7785        SHARED_LIBS="" \ 
    7886        LDFLAGS="-Wl,--gc-sections" \ 
    79         IP_CONFIG_TINY=y \ 
     87        IP_CONFIG_TINY=$(IP_CONFIG_TINY) \ 
    8088        FPIC="" 
    8189 
     
    98106endef 
    99107 
     108define Package/ip-$(BUILD_VARIANT)/install 
     109        $(Package/ip/install) 
     110endef 
     111 
    100112define Package/tc/install 
    101113        $(INSTALL_DIR) $(1)/usr/sbin 
     
    116128 
    117129$(eval $(call BuildPackage,ip)) 
     130$(eval $(call BuildPackage,ip-full)) 
    118131$(eval $(call BuildPackage,tc)) 
    119132$(eval $(call BuildPackage,genl)) 
Note: See TracChangeset for help on using the changeset viewer.