Makefile 869 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  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:=imx-uuc
  9. PKG_VERSION=2015-09-13-$(PKG_SOURCE_VERSION)
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/mhei/fsl-imx-uuc.git
  13. PKG_SOURCE_VERSION:=2b99403b6dc60a22b07eb7a5cc0cb184abb89bdd
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2
  16. PKG_LICENSE:=GPL-2.0+
  17. PKG_LICENSE_FILES:=LICENSE
  18. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_SOURCE_SUBDIR)
  19. include $(INCLUDE_DIR)/host-build.mk
  20. define Host/Configure
  21. endef
  22. define Host/Install
  23. $(INSTALL_BIN) $(HOST_BUILD_DIR)/sdimage $(STAGING_DIR_HOST)/bin/sdimage
  24. endef
  25. define Host/Clean
  26. rm -f $(STAGING_DIR_HOST)/bin/sdimage
  27. endef
  28. $(eval $(call HostBuild))