52c2b41cf22e0463f9cd750153d9b4510809d6d9
[openwrt/staging/yousong.git] / tools / sdimage / Makefile
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
9 PKG_NAME:=imx-uuc
10 PKG_VERSION=2015-09-13-$(PKG_SOURCE_VERSION)
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=https://github.com/mhei/fsl-imx-uuc.git
15 PKG_SOURCE_VERSION:=2b99403b6dc60a22b07eb7a5cc0cb184abb89bdd
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.xz
18
19 PKG_LICENSE:=GPL-2.0+
20 PKG_LICENSE_FILES:=LICENSE
21
22 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_SOURCE_SUBDIR)
23
24 include $(INCLUDE_DIR)/host-build.mk
25
26 define Host/Configure
27 endef
28
29 define Host/Install
30 $(INSTALL_BIN) $(HOST_BUILD_DIR)/sdimage $(STAGING_DIR_HOST)/bin/sdimage
31 endef
32
33 define Host/Clean
34 rm -f $(STAGING_DIR_HOST)/bin/sdimage
35 endef
36
37 $(eval $(call HostBuild))