Makefile 953 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
  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. include $(INCLUDE_DIR)/package.mk
  11. define Package/otrx
  12. SECTION:=utils
  13. CATEGORY:=Base system
  14. TITLE:=Utility for opening (analyzing) TRX firmware images
  15. MAINTAINER:=Rafał Miłecki <zajec5@gmail.com>
  16. DEPENDS:=@TARGET_brcm47xx||@TARGET_bcm53xx
  17. endef
  18. define Package/otrx/description
  19. This package contains an utility that allows validating TRX images.
  20. endef
  21. define Build/Prepare
  22. mkdir -p $(PKG_BUILD_DIR)
  23. $(CP) ./src/* $(PKG_BUILD_DIR)/
  24. endef
  25. define Build/Compile
  26. $(MAKE) -C $(PKG_BUILD_DIR) \
  27. CC="$(TARGET_CC)" \
  28. CFLAGS="$(TARGET_CFLAGS) -Wall"
  29. endef
  30. define Package/otrx/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/otrx $(1)/usr/bin/
  33. endef
  34. $(eval $(call BuildPackage,otrx))