2011-01-29 10:14:22 +08:00
|
|
|
#
|
2012-10-24 03:53:44 +08:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-06-27 08:35:46 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-08-13 02:23:01 +08:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2010-03-29 05:41:56 +08:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2005-08-13 02:23:01 +08:00
|
|
|
|
|
|
|
PKG_NAME:=linux-atm
|
2011-01-23 06:44:58 +08:00
|
|
|
PKG_VERSION:=2.5.2
|
2012-10-24 03:53:44 +08:00
|
|
|
PKG_RELEASE:=5
|
2005-08-13 02:23:01 +08:00
|
|
|
|
2011-01-23 06:44:58 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
|
|
|
PKG_MD5SUM:=d49499368c3cf15f73a05d9bce8824a8
|
2010-02-21 07:42:25 +08:00
|
|
|
|
2010-07-25 05:39:33 +08:00
|
|
|
PKG_INSTALL:=1
|
2012-09-15 19:37:04 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-06-30 16:19:48 +08:00
|
|
|
PKG_CHECK_FORMAT_SECURITY:=0
|
2010-07-25 05:39:33 +08:00
|
|
|
|
2006-06-21 10:32:39 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-08-13 02:23:01 +08:00
|
|
|
|
2012-12-05 22:18:08 +08:00
|
|
|
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)
|
|
|
|
|
2006-05-31 03:50:48 +08:00
|
|
|
define Package/linux-atm
|
2006-09-24 03:30:35 +08:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2007-09-07 16:30:26 +08:00
|
|
|
TITLE:=Linux ATM library
|
|
|
|
URL:=http://linux-atm.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/linux-atm/description
|
|
|
|
This package contains a library for accessing the Linux ATM subsystem.
|
2006-05-31 03:50:48 +08:00
|
|
|
endef
|
|
|
|
|
2012-12-05 00:19:21 +08:00
|
|
|
define Package/linux-atm/Default
|
2007-09-16 05:01:43 +08:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2013-07-08 08:37:49 +08:00
|
|
|
DEPENDS:=+linux-atm
|
2007-09-16 05:01:43 +08:00
|
|
|
URL:=http://linux-atm.sourceforge.net/
|
2012-12-05 22:58:54 +08:00
|
|
|
SUBMENU:=Linux ATM tools
|
2007-09-16 05:01:43 +08:00
|
|
|
endef
|
|
|
|
|
2012-12-05 00:19:21 +08:00
|
|
|
define Package/atm-tools
|
|
|
|
$(call Package/linux-atm/Default)
|
|
|
|
TITLE:=Linux ATM tools
|
|
|
|
endef
|
|
|
|
|
2007-09-16 05:01:43 +08:00
|
|
|
define Package/atm-tools/description
|
|
|
|
This package contains the Linux ATM tools.
|
|
|
|
endef
|
|
|
|
|
2011-04-09 21:05:48 +08:00
|
|
|
define Package/atm-diagnostics
|
2012-12-05 00:19:21 +08:00
|
|
|
$(call Package/linux-atm/Default)
|
2011-04-09 21:05:48 +08:00
|
|
|
TITLE:=Linux ATM Diagnostics
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/atm-diagnostics/description
|
|
|
|
This package contains the Linux ATM diagnostics.
|
|
|
|
endef
|
|
|
|
|
2012-12-05 00:19:24 +08:00
|
|
|
define Package/atm-debug-tools
|
|
|
|
$(call Package/linux-atm/Default)
|
|
|
|
TITLE:=Linux ATM debugging tools
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/atm-debug-tools/description
|
|
|
|
This package contains the Linux ATM debugging tools.
|
|
|
|
endef
|
|
|
|
|
2011-01-29 10:14:22 +08:00
|
|
|
define Package/br2684ctl
|
2012-12-05 00:19:21 +08:00
|
|
|
$(call Package/linux-atm/Default)
|
2011-01-29 10:14:22 +08:00
|
|
|
TITLE:=ATM Ethernet bridging configuration utility
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/br2684ctl/description
|
|
|
|
Support for AAL5 encapsulation (RFC-1483/RFC-2684) over ATM.
|
|
|
|
endef
|
|
|
|
|
2012-12-05 22:18:08 +08:00
|
|
|
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))))
|
|
|
|
|
2006-06-18 19:20:13 +08:00
|
|
|
define Build/Configure
|
2010-03-16 02:30:56 +08:00
|
|
|
$(call Build/Configure/Default)
|
2006-06-18 19:20:13 +08:00
|
|
|
# prevent autoheader invocation
|
|
|
|
touch $(PKG_BUILD_DIR)/stamp-h.in
|
|
|
|
endef
|
|
|
|
|
2011-07-26 18:47:59 +08:00
|
|
|
unexport PREFIX
|
2010-03-29 05:41:56 +08:00
|
|
|
|
2006-05-31 03:50:48 +08:00
|
|
|
define Build/Compile
|
2010-03-23 22:32:14 +08:00
|
|
|
# src/qgen is built with HOSTCC, which does not really like our LDFLAGS
|
2012-09-23 17:50:01 +08:00
|
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src/qgen \
|
2010-03-23 22:32:14 +08:00
|
|
|
LDFLAGS="" \
|
2010-04-12 20:59:09 +08:00
|
|
|
all
|
2012-09-23 17:50:01 +08:00
|
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) OBJCOPY=$(TARGET_CROSS)objcopy all
|
2006-05-31 03:50:48 +08:00
|
|
|
endef
|
2005-08-23 20:29:00 +08:00
|
|
|
|
2010-03-29 05:41:44 +08:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib \
|
|
|
|
$(1)/usr/
|
|
|
|
endef
|
2005-08-13 02:23:01 +08:00
|
|
|
|
2006-09-24 03:30:35 +08:00
|
|
|
define Package/linux-atm/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-03-29 05:41:44 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.so* $(1)/usr/lib/
|
2006-09-24 03:30:35 +08:00
|
|
|
endef
|
|
|
|
|
2007-09-16 05:01:43 +08:00
|
|
|
define Package/atm-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
2012-11-21 14:07:23 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/
|
2012-12-05 00:19:24 +08:00
|
|
|
endef
|
2010-03-15 02:58:33 +08:00
|
|
|
|
2012-12-05 22:18:08 +08:00
|
|
|
|
|
|
|
define BuildAtmPlugin
|
|
|
|
define Package/$(1)/install
|
|
|
|
$(INSTALL_DIR) $$(1)/usr/$(3)
|
2012-12-05 22:37:03 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/$(3)/$(2) $$(1)/usr/$(3)
|
2012-12-05 22:18:08 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$$(eval $$(call BuildPackage,$(1)))
|
|
|
|
endef
|
|
|
|
|
2012-12-05 00:19:24 +08:00
|
|
|
define Package/atm-debug-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmaddr $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmloop $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmtcp $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/esi $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmsigd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bus $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmid $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmidiag $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lecs $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/les $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mpcd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zeppelin $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmswitch $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/saaldump $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sonetdiag $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_recv $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_send $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttcp_atm $(1)/usr/bin/
|
2007-09-16 05:01:43 +08:00
|
|
|
endef
|
|
|
|
|
2011-04-09 21:05:48 +08:00
|
|
|
define Package/atm-diagnostics/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2011-01-29 10:14:22 +08:00
|
|
|
define Package/br2684ctl/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) ./files/br2684ctl $(1)/etc/init.d/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
2006-05-31 03:50:48 +08:00
|
|
|
$(eval $(call BuildPackage,linux-atm))
|
2007-09-16 05:01:43 +08:00
|
|
|
$(eval $(call BuildPackage,atm-tools))
|
2012-12-05 00:19:24 +08:00
|
|
|
$(eval $(call BuildPackage,atm-debug-tools))
|
2011-04-09 21:05:48 +08:00
|
|
|
$(eval $(call BuildPackage,atm-diagnostics))
|
2011-01-29 10:14:22 +08:00
|
|
|
$(eval $(call BuildPackage,br2684ctl))
|
2012-12-05 22:18:08 +08:00
|
|
|
$(foreach t,$(ATM_DEBUG_BINS),$(eval $(call BuildAtmPlugin,atm-$(t),$(t),bin)))
|
|
|
|
$(foreach t,$(ATM_DEBUG_SBINS),$(eval $(call BuildAtmPlugin,atm-$(t),$(t),sbin)))
|