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.

71 lines
1.9 KiB

  1. #
  2. # Copyright (c) 2021 Sergey Ryazanov <ryazanov.s.a@gmail.com>
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=atheepmgr
  6. PKG_VERSION:=2.1.1
  7. PKG_RELEASE:=2
  8. PKG_SOURCE_VERSION:=$(PKG_NAME)-$(PKG_VERSION)
  9. PKG_SOURCE_PROTO:=git
  10. PKG_SOURCE_URL:=https://github.com/rsa9000/$(PKG_NAME).git
  11. PKG_MIRROR_HASH:=dc77354538bd16343afb3e93c50cdd46792ced0f1632c7be0ddf56d2fcd75ba4
  12. PKG_MAINTAINER:=Sergey Ryazanov <ryazanov.s.a@gmail.com>
  13. PKG_LICENSE:=ISC
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_CONFIG_DEPENDS:=\
  16. CONFIG_ATHEEPMGR_DANGEROUS_FUNCTIONS \
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/atheepmgr
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=EEPROM/boarddata management utility for Atheros WLAN chips
  22. MENU:=1
  23. endef
  24. define Package/atheepmgr/description
  25. This utility is intended to investigate the content of Atheros WLAN
  26. chips EEPROM (OTP, boarddata, ART, etc.). It supports data extraction,
  27. unpacking, parsing, dumping in a text form, saving binary data for
  28. further analysis, as well as quick editing of some basic fields (e.g.
  29. MAC address, etc.).
  30. The utility supports both data access methods: direct EEPROM (OTP)
  31. access (via the chip) and offline binary dumps handling.
  32. endef
  33. define Package/atheepmgr/config
  34. if PACKAGE_atheepmgr
  35. config ATHEEPMGR_DANGEROUS_FUNCTIONS
  36. bool "Enable dangerous functions"
  37. default n
  38. help
  39. This option enables some functions, the use of which could cause
  40. permanent hardware damages and (or) make the operation of the
  41. equipment illegal due to RF spectre usage violation.
  42. These functions are intended for use by developers and radio
  43. engineers.
  44. You have been warned. If unsure, say no.
  45. endif
  46. endef
  47. MAKE_VARS += \
  48. OS=Linux \
  49. CONFIG_CON_PCI=n \
  50. CONFIG_I_KNOW_WHAT_I_AM_DOING=$(CONFIG_ATHEEPMGR_DANGEROUS_FUNCTIONS) \
  51. define Package/atheepmgr/install
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(INSTALL_BIN) $(PKG_BUILD_DIR)/atheepmgr $(1)/usr/bin/
  54. endef
  55. $(eval $(call BuildPackage,atheepmgr))