Makefile 974 B

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