2018-02-10 20:19:41 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=intel-microcode
|
firmware: intel-microcode: bump to 20190618
* Implements MDS mitigation (RIDL, Fallout, Zombieload), INTEL-SA-00223
CVE-2018-12126, CVE-2018-12127, CVE-2018-12130, CVE-2019-11091
* Updated Microcodes:
sig 0x000206d6, pf_mask 0x6d, 2019-05-21, rev 0x061f, size 18432
sig 0x000206d7, pf_mask 0x6d, 2019-05-21, rev 0x0718, size 19456
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2019-08-25 20:34:13 +00:00
|
|
|
PKG_VERSION:=20190618
|
2018-10-06 13:49:20 +00:00
|
|
|
PKG_RELEASE:=1
|
2018-02-10 20:19:41 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=intel-microcode_3.$(PKG_VERSION).$(PKG_RELEASE).tar.xz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/non-free/i/intel-microcode/
|
firmware: intel-microcode: bump to 20190618
* Implements MDS mitigation (RIDL, Fallout, Zombieload), INTEL-SA-00223
CVE-2018-12126, CVE-2018-12127, CVE-2018-12130, CVE-2019-11091
* Updated Microcodes:
sig 0x000206d6, pf_mask 0x6d, 2019-05-21, rev 0x061f, size 18432
sig 0x000206d7, pf_mask 0x6d, 2019-05-21, rev 0x0718, size 19456
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2019-08-25 20:34:13 +00:00
|
|
|
PKG_HASH:=0026ade98745205841fbab5d298c5efe6c571438f55619aeb1f2686f95a0f4b8
|
2018-02-10 20:19:41 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-3.$(PKG_VERSION).$(PKG_RELEASE)
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=iucode-tool/host
|
|
|
|
|
|
|
|
ifdef CONFIG_TARGET_x86_64
|
|
|
|
MICROCODE:="intel-microcode-64"
|
|
|
|
else
|
|
|
|
MICROCODE:="intel-microcode"
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/intel-microcode
|
|
|
|
SECTION:=firmware
|
|
|
|
CATEGORY:=Firmware
|
|
|
|
URL:=$(PKG_SOURCE_URL)
|
2018-11-20 16:20:42 +00:00
|
|
|
DEPENDS:=@TARGET_x86
|
2018-02-10 20:19:41 +00:00
|
|
|
TITLE:=Intel x86 CPU microcode
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2018-11-27 17:58:37 +00:00
|
|
|
IUCODE_TOOL=$(STAGING_DIR)/../host/bin/iucode_tool $(MAKE) -C $(PKG_BUILD_DIR)
|
|
|
|
mkdir $(PKG_BUILD_DIR)/intel-ucode-ipkg
|
|
|
|
$(STAGING_DIR)/../host/bin/iucode_tool -q \
|
|
|
|
--write-firmware=$(PKG_BUILD_DIR)/intel-ucode-ipkg $(PKG_BUILD_DIR)/$(MICROCODE).bin
|
2018-02-10 20:19:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/intel-microcode/install
|
2018-11-27 17:58:37 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/intel-ucode
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/intel-ucode-ipkg/* $(1)/lib/firmware/intel-ucode
|
2018-02-10 20:19:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,intel-microcode))
|