Changeset 26044


Ignore:
Timestamp:
2011-03-11T22:11:37+01:00 (5 years ago)
Author:
nbd
Message:

ltq-vmmc: do not download nonexistant firmware files, only attempt to build for lantiq xway

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ltq-vmmc/Makefile

    r26023 r26044  
    7474  FW_FILE=fw_voip_danube-12.1.0.1.0.tar.gz 
    7575  FW_MD5SUM:=51868b88dee9dbc65d3dbba355ded91c 
     76  FW_DOWNLOAD:=1 
    7677  COEF_TARGET:=danube_bbd_fxs.bin 
    7778  COEF_FILE:=coef_voip_danube-0.9.0.tar.gz 
    7879  COEF_MD5SUM:=c8ac6592b304b03829a8123560e15710 
     80  COEF_DOWNLOAD:=1 
    7981endif 
    8082 
     
    9496  MD5SUM:=$(FW_MD5SUM) 
    9597endef 
    96 $(eval $(call Download,firmware)) 
     98$(eval $(if $(FW_DOWNLOAD),$(call Download,firmware))) 
    9799 
    98100define Download/coef 
     
    101103  MD5SUM:=$(COEF_MD5SUM) 
    102104endef 
    103 $(eval $(call Download,coef)) 
     105$(eval $(if $(COEF_DOWNLOAD),$(call Download,coef))) 
    104106 
    105107define Build/Configure 
     
    116118endef 
    117119 
    118 define Build/InstallDev 
     120ifdef CONFIG_TARGET_lantiq_xway 
     121  define Build/InstallDev 
    119122        $(INSTALL_DIR) $(1)/usr/include 
    120123        mkdir -p $(1)/usr/include/drv_vmmc 
    121124        $(CP) -v --dereference $(PKG_BUILD_DIR)/include/* $(1)/usr/include/drv_vmmc 
    122125        (cd $(1)/usr/include/drv_vmmc && ln -snf . include) 
    123 endef 
     126  endef 
    124127 
    125 define KernelPackage/ltq-vmmc/install 
     128  define KernelPackage/ltq-vmmc/install 
    126129        $(INSTALL_DIR) $(1)/etc/init.d $(1)/$(FW_DIR) 
    127130        $(INSTALL_BIN) ./files/vmmc.init $(1)/etc/init.d/vmmc 
    128131        $(CP) $(PKG_BUILD_DIR)/firmware/$(FW_SOURCE) $(1)/$(FW_DIR)/$(FW_TARGET) 
    129132        $(CP) $(PKG_BUILD_DIR)/coef/$(COEF_TARGET) $(1)/$(FW_DIR)/$(COEF_TARGET) 
    130 endef 
     133  endef 
     134endif 
    131135 
    132136$(eval $(call KernelPackage,ltq-vmmc)) 
Note: See TracChangeset for help on using the changeset viewer.