Makefile 889 B

12345678910111213141516171819202122232425262728293031323334353637
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=restool
  9. PKG_VERSION:=lsdk-1903
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/restool
  13. PKG_SOURCE_VERSION:=8b1dd407bbd48b4f1a50c71b78083112a6397619
  14. PKG_MIRROR_HASH:=2bb086dd4fc4975268b89867e7fc95b42a764b56c4a498518ef0d54694ffe40e
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/restool
  17. SECTION:=net
  18. CATEGORY:=Network
  19. TITLE:=Layerscape DPAA2 dynamical management tool
  20. DEPENDS:=@TARGET_layerscape
  21. endef
  22. MAKE_FLAGS += \
  23. DESTDIR="$(PKG_BUILD_DIR)"/output/ \
  24. install
  25. define Package/restool/install
  26. $(INSTALL_DIR) $(1)/usr/bin/
  27. $(CP) $(PKG_BUILD_DIR)/output/usr/local/bin/* $(1)/usr/bin/
  28. endef
  29. $(eval $(call BuildPackage,restool))