Changeset 34502


Ignore:
Timestamp:
2012-12-05T15:18:08+01:00 (5 years ago)
Author:
florian
Message:

linux-atm: package each available atm debug tool individually

Signed-off-by: Florian Fainelli <florian@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/linux-atm/Makefile

    r34477 r34502  
    2121 
    2222include $(INCLUDE_DIR)/package.mk 
     23 
     24ATM_DEBUG_BINS:=aread awrite atmdiag atmdump atmswitch saaldump \ 
     25                sonetdiag svc_recv svc_send ttcp_atm 
     26ATM_DEBUG_SBINS:=atmaddr atmloop atmtcp esi atmsigd bus \ 
     27                 ilmid ilmidiag lecs les mpcd zeppelin 
     28ATM_DEBUG_TOOLS:=$(ATM_DEBUG_BINS) $(ATM_DEBUG_SBINS) 
    2329 
    2430define Package/linux-atm 
     
    7682endef 
    7783 
     84define GenAtmPlugin 
     85  define Package/$(1) 
     86     $(call Package/linux-atm/Default) 
     87     TITLE:=Linux ATM tool $(2) 
     88  endef 
     89 
     90  define Package/$(1)/description 
     91     Linux ATM tool $(2). 
     92  endef 
     93endef 
     94 
     95$(foreach t,$(ATM_DEBUG_TOOLS),$(eval $(call GenAtmPlugin,atm-$(t),$(t)))) 
     96 
    7897define Build/Configure 
    7998        $(call Build/Configure/Default) 
     
    108127        $(INSTALL_DIR) $(1)/usr/sbin/ 
    109128        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/ 
     129endef 
     130 
     131 
     132define BuildAtmPlugin 
     133  define Package/$(1)/install 
     134        $(INSTALL_DIR) $$(1)/usr/$(3) 
     135        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/$(3)/$(2) $$(1)/$(3) 
     136  endef 
     137 
     138  $$(eval $$(call BuildPackage,$(1))) 
    110139endef 
    111140 
     
    157186$(eval $(call BuildPackage,atm-diagnostics)) 
    158187$(eval $(call BuildPackage,br2684ctl)) 
     188$(foreach t,$(ATM_DEBUG_BINS),$(eval $(call BuildAtmPlugin,atm-$(t),$(t),bin))) 
     189$(foreach t,$(ATM_DEBUG_SBINS),$(eval $(call BuildAtmPlugin,atm-$(t),$(t),sbin))) 
Note: See TracChangeset for help on using the changeset viewer.