firmware: rework fritz-tools package
[openwrt/openwrt.git] / package / utils / fritz-tools / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=fritz-tools
4 PKG_RELEASE:=1
5 CMAKE_INSTALL:=1
6
7 include $(INCLUDE_DIR)/package.mk
8 include $(INCLUDE_DIR)/cmake.mk
9
10 define Package/fritz-tools/Default
11 SECTION:=utils
12 CATEGORY:=Utilities
13 endef
14
15 define Package/fritz-tffs
16 $(call Package/fritz-tools/Default)
17 TITLE:=Utility to partially read the TFFS filesystems
18 endef
19
20 define Package/fritz-tffs/description
21 Utility to partially read the TFFS filesystems.
22 endef
23
24 define Package/fritz-caldata
25 $(call Package/fritz-tools/Default)
26 DEPENDS:=+zlib
27 TITLE:=Utility to extract WLAN calibration data
28 endef
29
30 define Package/fritz-caldata/description
31 Utility to extract the zlib compress calibration data from flash.
32 endef
33
34 define Package/fritz-tffs/install
35 $(INSTALL_DIR) $(1)/usr/bin
36 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fritz_tffs_read $(1)/usr/bin/fritz_tffs
37 endef
38
39 define Package/fritz-caldata/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fritz_cal_extract $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,fritz-tffs))
45 $(eval $(call BuildPackage,fritz-caldata))