@ -37,6 +37,7 @@ define Package/ip-tiny
$( call Package /iproute 2/Default )
$( call Package /iproute 2/Default )
TITLE:= Routing control utility ( Minimal)
TITLE:= Routing control utility ( Minimal)
VARIANT:= tiny
VARIANT:= tiny
DEFAULT_VARIANT:= 1
PROVIDES:= ip
PROVIDES:= ip
ALTERNATIVES:= 200:/sbin/ip:/usr/libexec/ip-tiny
ALTERNATIVES:= 200:/sbin/ip:/usr/libexec/ip-tiny
DEPENDS:= +libnl-tiny +( PACKAGE_devlink|| PACKAGE_rdma) :libmnl
DEPENDS:= +libnl-tiny +( PACKAGE_devlink|| PACKAGE_rdma) :libmnl
@ -54,6 +55,8 @@ endef
d e f i n e P a c k a g e / t c
d e f i n e P a c k a g e / t c
$( call Package /iproute 2/Default )
$( call Package /iproute 2/Default )
TITLE:= Traffic control utility
TITLE:= Traffic control utility
VARIANT:= tc
PROVIDES:= tc
DEPENDS:= +kmod-sched-core +libxtables +libelf +( PACKAGE_devlink|| PACKAGE_rdma) :libmnl
DEPENDS:= +kmod-sched-core +libxtables +libelf +( PACKAGE_devlink|| PACKAGE_rdma) :libmnl
e n d e f
e n d e f
@ -127,12 +130,15 @@ define Build/Compile
+$( MAKE_VARS) $( MAKE) $( PKG_JOBS) -C $( PKG_BUILD_DIR) $( MAKE_FLAGS)
+$( MAKE_VARS) $( MAKE) $( PKG_JOBS) -C $( PKG_BUILD_DIR) $( MAKE_FLAGS)
e n d e f
e n d e f
# use minimal functionality for dev libraries
i f e q ( $( BUILD_VARIANT ) , t i n y )
d e f i n e B u i l d / I n s t a l l D e v
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( INSTALL_DIR) $( 1) /usr/include
$( CP) $( PKG_BUILD_DIR) /include/{ libgenl,libnetlink} .h $( 1) /usr/include/
$( CP) $( PKG_BUILD_DIR) /include/{ libgenl,libnetlink} .h $( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/libnetlink.a $( 1) /usr/lib/
$( CP) $( PKG_BUILD_DIR) /lib/libnetlink.a $( 1) /usr/lib/
e n d e f
e n d e f
e n d i f
d e f i n e P a c k a g e / i p - t i n y / i n s t a l l
d e f i n e P a c k a g e / i p - t i n y / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/libexec
$( INSTALL_DIR) $( 1) /usr/libexec
@ -151,6 +157,8 @@ define Package/tc/install
$( INSTALL_BIN) ./files/15-teql $( 1) /etc/hotplug.d/iface/
$( INSTALL_BIN) ./files/15-teql $( 1) /etc/hotplug.d/iface/
e n d e f
e n d e f
# ensure other packages are only saved during 'tiny' builds.
i f e q ( $( BUILD_VARIANT ) , t i n y )
d e f i n e P a c k a g e / g e n l / i n s t a l l
d e f i n e P a c k a g e / g e n l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /genl/genl $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /genl/genl $( 1) /usr/sbin/
@ -180,6 +188,7 @@ define Package/rdma/install
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /rdma/rdma $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /rdma/rdma $( 1) /usr/sbin/
e n d e f
e n d e f
e n d i f
$( eval $ ( call BuildPackage ,ip -tiny ) )
$( eval $ ( call BuildPackage ,ip -tiny ) )
$( eval $ ( call BuildPackage ,ip -full ) )
$( eval $ ( call BuildPackage ,ip -full ) )