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 <[email protected]>
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

解決:把每行的結尾空格都好好檢查一次,去掉空格....

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章