Makefile 854 B

123456789101112131415161718192021222324252627282930313233343536373839
  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:=21.08
  10. PKG_RELEASE:=4
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/nxp-qoriq/restool
  13. PKG_SOURCE_VERSION:=LSDK-21.08
  14. PKG_MIRROR_HASH:=0396644927b8f3da20183227562f695c8063d3d4c6bb606e8f31dda450e962e4
  15. PKG_FLAGS:=nonshared
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/restool
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=Layerscape DPAA2 dynamical management tool
  21. DEPENDS:=@TARGET_layerscape_armv8_64b
  22. endef
  23. MAKE_FLAGS += \
  24. DESTDIR="$(PKG_BUILD_DIR)"/output/ \
  25. install
  26. define Package/restool/install
  27. $(INSTALL_DIR) $(1)/usr/bin/
  28. $(CP) $(PKG_BUILD_DIR)/output/usr/local/bin/* $(1)/usr/bin/
  29. endef
  30. $(eval $(call BuildPackage,restool))