fft-eval: add package 8265/head
authorPaul Spooren <mail@aparcar.org>
Wed, 20 Feb 2019 15:07:36 +0000 (16:07 +0100)
committerPaul Spooren <mail@aparcar.org>
Thu, 21 Feb 2019 07:56:43 +0000 (08:56 +0100)
This program has been created to aid open source spectrum analyzer
development for Qualcomm/Atheros AR92xx and AR93xx based chipsets.

Find more information about the package here:
https://github.com/simonwunderlich/FFT_eval

This package is used in LibreMesh, however our CI doesn't support
multiple architecures as all LibreMesh code is lua. Adding this package
to the official repos allows us to offer it in our tool chain.

Signed-off-by: Paul Spooren <mail@aparcar.org>
utils/fft-eval/Makefile [new file with mode: 0644]

diff --git a/utils/fft-eval/Makefile b/utils/fft-eval/Makefile
new file mode 100644 (file)
index 0000000..d0de014
--- /dev/null
@@ -0,0 +1,39 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=fft-eval
+PKG_VERSION:=2017-06-28
+PKG_RELEASE=$(PKG_SOURCE_VERSION)
+
+PKG_SOURCE_VERSION:=3cc175570379da172b0b2bcdbb8d2a42f83dad88
+PKG_SOURCE:=FFT_eval-$(PKG_SOURCE_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/simonwunderlich/FFT_eval/tar.gz/$(PKG_SOURCE_VERSION)?
+PKG_HASH:=9d70125fffc83918e6613d5938c4a9925aea07323e09470cf059cf0026e5937c
+PKG_BUILD_DIR:=$(BUILD_DIR)/FFT_eval-$(PKG_SOURCE_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/$(PKG_NAME)
+       SECTION:=utils
+       CATEGORY:=Utilities
+       MAINTAINER:=Nicolas Pace <nicopace@altermundi.net>
+       URL:=https://github.com/simonwunderlich/FFT_eval
+       TITLE:=Evaluates FFT samples from ath9k driver
+       DEPENDS:= +libc @PACKAGE_ATH_DEBUG @PACKAGE_ATH_SPECTRAL
+endef
+
+define Package/$(PKG_NAME)/description
+       Evaluates FFT samples from diferent wifi boards drivers
+endef
+
+TARGET_CFLAGS  += -ffunction-sections -fdata-sections -flto
+
+define Build/Compile
+       $(TARGET_CC) -D__NOSDL__ $(PKG_BUILD_DIR)/fft_eval.c -o $(PKG_BUILD_DIR)/fft_eval -lm
+endef
+
+define Package/$(PKG_NAME)/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/fft_eval $(1)/usr/bin/fft_eval
+endef
+
+$(eval $(call BuildPackage,$(PKG_NAME)))