include $(TOPDIR)/rules.mk
PKG_NAME:=intel-microcode
-PKG_VERSION:=20180703
-PKG_RELEASE:=2
+PKG_VERSION:=20180807a
+PKG_RELEASE:=1
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/
-PKG_HASH:=26dfaa47100ce3d06f968edefa7539da10de7b96d5d8e26ee8174a040ee5cdae
+PKG_HASH:=1a7cb96d5c6a4abac2936236223d9bea79d7442dc1cfe9b712ff8e35374f0f9f
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-3.$(PKG_VERSION).$(PKG_RELEASE)
PKG_BUILD_DEPENDS:=iucode-tool/host
SECTION:=firmware
CATEGORY:=Firmware
URL:=$(PKG_SOURCE_URL)
- DEPENDS:=@TARGET_x86 +iucode-tool
+ DEPENDS:=@TARGET_x86
TITLE:=Intel x86 CPU microcode
endef
define Build/Compile
- 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
+ IUCODE_TOOL=$(STAGING_DIR)/../host/bin/iucode_tool \
+ $(MAKE) -C $(PKG_BUILD_DIR)
+ $(STAGING_DIR)/../host/bin/iucode_tool -q --mini-earlyfw \
+ --write-earlyfw=$(PKG_BUILD_DIR)/intel-ucode.cpio \
+ $(PKG_BUILD_DIR)/$(MICROCODE).bin
endef
define Package/intel-microcode/install
- $(INSTALL_DIR) $(1)/lib/firmware/intel-ucode
- $(INSTALL_DATA) $(PKG_BUILD_DIR)/intel-ucode-ipkg/* $(1)/lib/firmware/intel-ucode
+ $(INSTALL_DIR) $(1)/boot
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/intel-ucode.cpio \
+ $(1)/boot/intel-ucode.img
endef
$(eval $(call BuildPackage,intel-microcode))