1
0

Makefile 1.5 KB

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