Add more license tags with SPDX identifiers
[openwrt/staging/yousong.git] / package / utils / mkelfimage / Makefile
1 #
2 # Copyright (C) 2006 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:=mkelfimage
10 PKG_VERSION:=2.7
11
12 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
13 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/m/mkelfimage/
14 PKG_MD5SUM:=e505cb87e9c0cdc44cf03d2c4ea8c74b
15
16 PKG_LICENSE:=GPL-2.0
17 PKG_LICENSE_FILES:=COPYING
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/mkelfimage
22 SECTION:=base
23 CATEGORY:=Base system
24 TITLE:=mkelfimage
25 HIDDEN:=1
26 DEPENDS:=@i386
27 DEFAULT:=y if TARGET_x86
28 endef
29
30 CONFIGURE_VARS += AS="$(TARGET_CROSS)as"
31 MAKE_FLAGS += HOST_CC="$(HOSTCC)" DEFS="-I$(STAGING_DIR_HOST)/include"
32
33 define Build/InstallDev
34 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/objdir/sbin/mkelfImage $(STAGING_DIR_HOST)/bin
36 endef
37
38 $(eval $(call BuildPackage,mkelfimage))