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