aboutsummaryrefslogtreecommitdiff
path: root/utils/atheepmgr/Makefile
blob: 93a4c0892add45590466de40cddbdaeadbd31353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Copyright (c) 2021 Sergey Ryazanov <ryazanov.s.a@gmail.com>
#

include $(TOPDIR)/rules.mk

PKG_NAME:=atheepmgr
PKG_VERSION:=2.1.1
PKG_RELEASE:=2

PKG_SOURCE_VERSION:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/rsa9000/$(PKG_NAME).git
PKG_MIRROR_HASH:=c221ba20fce2e08bd5aefa46e9e89c3d9ab879e2ecc8f87e87afd0b0b72aa9cd

PKG_MAINTAINER:=Sergey Ryazanov <ryazanov.s.a@gmail.com>
PKG_LICENSE:=ISC
PKG_LICENSE_FILES:=LICENSE

PKG_CONFIG_DEPENDS:=\
	CONFIG_ATHEEPMGR_DANGEROUS_FUNCTIONS \

include $(INCLUDE_DIR)/package.mk

define Package/atheepmgr
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=EEPROM/boarddata management utility for Atheros WLAN chips
  MENU:=1
endef

define Package/atheepmgr/description
  This utility is intended to investigate the content of Atheros WLAN
  chips EEPROM (OTP, boarddata, ART, etc.). It supports data extraction,
  unpacking, parsing, dumping in a text form, saving binary data for
  further analysis, as well as quick editing of some basic fields (e.g.
  MAC address, etc.).

  The utility supports both data access methods: direct EEPROM (OTP)
  access (via the chip) and offline binary dumps handling.

endef

define Package/atheepmgr/config
	if PACKAGE_atheepmgr
		config ATHEEPMGR_DANGEROUS_FUNCTIONS
			bool "Enable dangerous functions"
			default n
			help
			  This option enables some functions, the use of which could cause
			  permanent hardware damages and (or) make the operation of the
			  equipment illegal due to RF spectre usage violation.

			  These functions are intended for use by developers and radio
			  engineers.

			  You have been warned. If unsure, say no.
	endif
endef

MAKE_VARS += \
	OS=Linux \
	CONFIG_CON_PCI=n \
	CONFIG_I_KNOW_WHAT_I_AM_DOING=$(CONFIG_ATHEEPMGR_DANGEROUS_FUNCTIONS) \

define Package/atheepmgr/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/atheepmgr $(1)/usr/bin/
endef

$(eval $(call BuildPackage,atheepmgr))