675d31368bbef30e1160c0f92d559f0da2e0b8d8
[openwrt/openwrt.git] / package / network / utils / layerscape / restool / Makefile
1 #
2 # Copyright 2017 NXP
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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=restool
12 PKG_SOURCE_DATE:=2017-12-03
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/qoriq-open-source/restool.git
17 PKG_SOURCE_VERSION:=90fe5c4054bb9a77adef76c0b16a5af68f3905d3
18 PKG_MIRROR_HASH:=af016aeaf7f17c668dc18d93c353f687d186c517d7aaee23ed23477c0fc8d42f
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/restool
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=@TARGET_layerscape
26 TITLE:=Layerscape DPAA2 dynamical management tool
27 endef
28
29 MAKE_FLAGS += \
30 DESTDIR="$(PKG_BUILD_DIR)"/output/ \
31 install
32
33 define Package/restool/install
34 $(INSTALL_DIR) $(1)/usr/bin/
35 $(CP) $(PKG_BUILD_DIR)/output/usr/local/bin/* $(1)/usr/bin/
36 endef
37
38 $(eval $(call BuildPackage,restool))