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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值