2 # Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
16 include $(INCLUDE_DIR)/package.mk
21 TITLE:=Utility for opening (analyzing) TRX firmware images
22 MAINTAINER:=Rafał Miłecki <zajec5@gmail.com>
23 DEPENDS:=@TARGET_brcm47xx||@TARGET_bcm53xx
26 define Package/otrx/description
27 This package contains an utility that allows validating TRX images.
31 mkdir -p $(PKG_BUILD_DIR)
32 $(CP) ./src/* $(PKG_BUILD_DIR)/
36 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CFLAGS="$(TARGET_CFLAGS) -Wall"
41 define Package/otrx/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/otrx $(1)/usr/bin/
46 $(eval $(call BuildPackage,otrx))