busybox: enable BUSYBOX_DEFAULT_FEATURE_TOUCH_SUSV3 by default, dnsmasq relies on it
[openwrt.git] / package / utils / otrx / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=otrx
11 PKG_RELEASE:=1
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/otrx
16   SECTION:=utils
17   CATEGORY:=Base system
18   TITLE:=Utility for opening (analyzing) TRX firmware images
19   MAINTAINER:=Rafał Miłecki <zajec5@gmail.com>
20   DEPENDS:=@TARGET_brcm47xx||@TARGET_bcm53xx
21 endef
22
23 define Package/otrx/description
24  This package contains an utility that allows validating TRX images.
25 endef
26
27 define Build/Prepare
28         mkdir -p $(PKG_BUILD_DIR)
29         $(CP) ./src/* $(PKG_BUILD_DIR)/
30 endef
31
32 define Build/Compile
33         $(MAKE) -C $(PKG_BUILD_DIR) \
34                 CC="$(TARGET_CC)" \
35                 CFLAGS="$(TARGET_CFLAGS) -Wall"
36 endef
37
38 define Package/otrx/install
39         $(INSTALL_DIR) $(1)/usr/bin
40         $(INSTALL_BIN) $(PKG_BUILD_DIR)/otrx $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,otrx))