zoukankan      html  css  js  c++  java
  • csdr Makefile for openwrt(纯粹笔记,暂未成功)

    1、自已学着写的Makefile给csdr在openwrt平台上使用

    参照:https://blog.csdn.net/lvshaorong/article/details/54668220

    include $(TOPDIR)/rules.mk
    
    PKG_NAME:=csdr
    PKG_VERSION:=0.1
    PKG_RELEASE:=1
    PKG_SOURCE_PROTO:=git
    PKG_SOURCE_URL:=https://github.com/simonyiszk/csdr.git
    PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
    PKG_SOURCE_VERSION:=6ef2a74206887155290a54c7117636f66742f858
    PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
    PKG_MAINTAINER:=Andras Retzler, HA7ILM <randras@sdr.hu>
    PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
    
    include $(INCLUDE_DIR)/package.mk
    
    define Package/csdr
    	SECTION:=net
    	CATEGORY:=Network
    	TITLE:=csdr is a command line tool to carry out DSP tasks for Software Defined Radio.
    	URL:=https://github.com/simonyiszk/csdr
    	DEPENDS:=+libfftw3
    endef
    
    define Package/csdr/description
    It can be used to build simple signal processing flow graphs, right from the command line. 
    The included libcsdr library contains the DSP functions that csdr makes use of. 
    It was designed to use auto-vectorization available in gcc, 
     and also has some functions optimized with inline assembly for ARM NEON 
     to achieve some speedup by taking advantage of SIMD command sets available in today's CPUs.
    endef
    
    define Package/csdr/conffiles
    	/etc/config/csdr
    endef
    
    define Package/redsocks2/install
    	$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN)
    	$(PKG_BUILD_DIR)/csdr $(1)/usr/bin
    	$(INSTALL_DIR) $(1)/etc/csdr
    	$(INSTALL_DATA) ./files/csdr.template $(1)/etc/csdr/config.template
    endef
    
    $(eval $(call BuildPackage,csdr))
    

    2、遇到个坑:

    make编译时报了个错:has both : and :: entries

    参考这里:http://www.voidcn.com/article/p-opfdcfpi-cc.html

    解决:把每行的结尾空格都好好检查一次,去掉空格....

  • 相关阅读:
    mark::开源绘图工具graphviz
    bzoj1013球形空间产生器sphere 高斯消元(有系统差的写法
    背包专题练习
    仿射加密与S-DES加密算法的实现
    1178:成绩排序
    1177:奇数单增序列
    1176:谁考了第k名
    1311:【例2.5】求逆序对
    1310:【例2.2】车厢重组
    1175:除以13
  • 原文地址:https://www.cnblogs.com/d9394/p/11116284.html
Copyright © 2011-2022 走看看