treewide: Mark packages nonshared if they depend on @TARGET_
[openwrt/staging/chunkeey.git] / package / system / iucode-tool / Makefile
1 #
2 # Copyright (C) 2018 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iucode-tool
11 PKG_VERSION:=2.3.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=iucode-tool_$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://gitlab.com/iucode-tool/releases/raw/latest
16 PKG_HASH:=12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95
17
18 PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
19
20 PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
21 PKG_LICENSE:=GPL-2.0
22
23 PKG_FLAGS:=nonshared
24
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/host-build.mk
29
30 define Package/iucode-tool
31 SECTION:=utils
32 CATEGORY:=Base system
33 URL:=$(PKG_SOURCE_URL)
34 DEPENDS:=@TARGET_x86
35 TITLE:=Intel microcode loader
36 endef
37
38 define Package/iucode-tool/install
39 $(INSTALL_DIR) $(1)/lib/firmware
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iucode_tool $(1)/usr/bin/
42 endef
43
44 define Host/Install
45 $(INSTALL_BIN) $(HOST_BUILD_DIR)/iucode_tool $(STAGING_DIR_HOST)/bin/iucode_tool
46 endef
47
48 $(eval $(call HostBuild))
49 $(eval $(call BuildPackage,iucode-tool))