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