You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=fft-eval
  3. PKG_VERSION:=2017-06-28
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_VERSION:=3cc175570379da172b0b2bcdbb8d2a42f83dad88
  6. PKG_SOURCE:=FFT_eval-$(PKG_SOURCE_VERSION).tar.gz
  7. PKG_SOURCE_URL:=https://codeload.github.com/simonwunderlich/FFT_eval/tar.gz/$(PKG_SOURCE_VERSION)?
  8. PKG_HASH:=9d70125fffc83918e6613d5938c4a9925aea07323e09470cf059cf0026e5937c
  9. PKG_BUILD_DIR:=$(BUILD_DIR)/FFT_eval-$(PKG_SOURCE_VERSION)
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/$(PKG_NAME)
  12. SECTION:=utils
  13. CATEGORY:=Utilities
  14. MAINTAINER:=Nicolas Pace <nicopace@altermundi.net>
  15. URL:=https://github.com/simonwunderlich/FFT_eval
  16. TITLE:=Evaluates FFT samples from ath9k driver
  17. DEPENDS:= +libc @PACKAGE_ATH_DEBUG @PACKAGE_ATH_SPECTRAL
  18. endef
  19. define Package/$(PKG_NAME)/description
  20. Evaluates FFT samples from diferent wifi boards drivers
  21. endef
  22. TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
  23. define Build/Compile
  24. $(TARGET_CC) -D__NOSDL__ $(PKG_BUILD_DIR)/fft_eval.c -o $(PKG_BUILD_DIR)/fft_eval -lm
  25. endef
  26. define Package/$(PKG_NAME)/install
  27. $(INSTALL_DIR) $(1)/usr/bin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fft_eval $(1)/usr/bin/fft_eval
  29. endef
  30. $(eval $(call BuildPackage,$(PKG_NAME)))