Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (C) 2015 Rafał Miłecki <[email protected]>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=otrx
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=$(PROJECT_GIT)/project/firmware-utils.git
  12. PKG_SOURCE_DATE:=2021-12-02
  13. PKG_SOURCE_VERSION:=56e8e19151743c923f48604c457850cf8eb52076
  14. PKG_MIRROR_HASH:=2a40ac73e8eab0a7a4474cb331b8e2fc972635314b0b5e02a9f2b9a32c5d5f3b
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/otrx
  17. SECTION:=utils
  18. CATEGORY:=Base system
  19. TITLE:=Utility for opening (analyzing) TRX firmware images
  20. MAINTAINER:=Rafał Miłecki <[email protected]>
  21. DEPENDS:=@(TARGET_bcm47xx||TARGET_bcm53xx)
  22. endef
  23. define Package/otrx/description
  24. This package contains an utility that allows validating TRX images.
  25. endef
  26. TARGET_CFLAGS += -Wall
  27. define Build/Compile
  28. $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
  29. -o $(PKG_BUILD_DIR)/otrx \
  30. $(PKG_BUILD_DIR)/src/otrx.c
  31. endef
  32. define Package/otrx/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/otrx $(1)/usr/bin/
  35. endef
  36. $(eval $(call BuildPackage,otrx))