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

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

  • 相关阅读:
    852. Peak Index in a Mountain Array
    841. Keys and Rooms
    832. Flipping an Image
    821. Shortest Distance to a Character
    824. Goat Latin
    如何生成git的公钥和私钥
    学习笔记
    加快JavaScript加载和执行效率
    PO BO VO DTO POJO DAO概念及其作用
    jvm 垃圾回收区的形象说明
  • 原文地址:https://www.cnblogs.com/d9394/p/11116284.html
Copyright © 2011-2022 走看看