aboutsummaryrefslogtreecommitdiffstats
path: root/package/linux-atm
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-12-05 14:18:08 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-12-05 14:18:08 +0000
commitb459e36579a5b94188a6808ec0617301413e1a3b (patch)
treef0d4ccd9052fcbcb6ec774aa086d31ec4d392471 /package/linux-atm
parent512baafc6b88c6e30bab7979c87c6931714a1c43 (diff)
downloadupstream-b459e36579a5b94188a6808ec0617301413e1a3b.tar.gz
upstream-b459e36579a5b94188a6808ec0617301413e1a3b.tar.bz2
upstream-b459e36579a5b94188a6808ec0617301413e1a3b.zip
linux-atm: package each available atm debug tool individually
Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34502
Diffstat (limited to 'package/linux-atm')
-rw-r--r--package/linux-atm/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/linux-atm/Makefile b/package/linux-atm/Makefile
index a4edcf7f4d..88135d86a1 100644
--- a/package/linux-atm/Makefile
+++ b/package/linux-atm/Makefile
@@ -21,6 +21,12 @@ PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
+ATM_DEBUG_BINS:=aread awrite atmdiag atmdump atmswitch saaldump \
+ sonetdiag svc_recv svc_send ttcp_atm
+ATM_DEBUG_SBINS:=atmaddr atmloop atmtcp esi atmsigd bus \
+ ilmid ilmidiag lecs les mpcd zeppelin
+ATM_DEBUG_TOOLS:=$(ATM_DEBUG_BINS) $(ATM_DEBUG_SBINS)
+
define Package/linux-atm
SECTION:=libs
CATEGORY:=Libraries
@@ -75,6 +81,19 @@ define Package/br2684ctl/description
Support for AAL5 encapsulation (RFC-1483/RFC-2684) over ATM.
endef
+define GenAtmPlugin
+ define Package/$(1)
+ $(call Package/linux-atm/Default)
+ TITLE:=Linux ATM tool $(2)
+ endef
+
+ define Package/$(1)/description
+ Linux ATM tool $(2).
+ endef
+endef
+
+$(foreach t,$(ATM_DEBUG_TOOLS),$(eval $(call GenAtmPlugin,atm-$(t),$(t))))
+
define Build/Configure
$(call Build/Configure/Default)
# prevent autoheader invocation
@@ -109,6 +128,16 @@ define Package/atm-tools/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/
endef
+
+define BuildAtmPlugin
+ define Package/$(1)/install
+ $(INSTALL_DIR) $$(1)/usr/$(3)
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/$(3)/$(2) $$(1)/$(3)
+ endef
+
+ $$(eval $$(call BuildPackage,$(1)))
+endef
+
define Package/atm-debug-tools/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/sbin/
@@ -156,3 +185,5 @@ $(eval $(call BuildPackage,atm-tools))
$(eval $(call BuildPackage,atm-debug-tools))
$(eval $(call BuildPackage,atm-diagnostics))
$(eval $(call BuildPackage,br2684ctl))
+$(foreach t,$(ATM_DEBUG_BINS),$(eval $(call BuildAtmPlugin,atm-$(t),$(t),bin)))
+$(foreach t,$(ATM_DEBUG_SBINS),$(eval $(call BuildAtmPlugin,atm-$(t),$(t),sbin)))