From b80a714fb34002a7cfe1c9156f80a3aa500f579f Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Fri, 19 Jan 2018 16:02:59 +0100 Subject: [PATCH] firmware: move amd64-microcode into a proper package - use the Debian non-free repo instead of linux-firmware.git - bump to 20171205 - include fam17h (Zen) microcode Signed-off-by: Zoltan HERPAI --- package/firmware/amd64-microcode/Makefile | 45 +++++++++++++++++++++++ package/firmware/linux-firmware/x86.mk | 9 ----- 2 files changed, 45 insertions(+), 9 deletions(-) create mode 100644 package/firmware/amd64-microcode/Makefile delete mode 100644 package/firmware/linux-firmware/x86.mk diff --git a/package/firmware/amd64-microcode/Makefile b/package/firmware/amd64-microcode/Makefile new file mode 100644 index 0000000000..ec4451774f --- /dev/null +++ b/package/firmware/amd64-microcode/Makefile @@ -0,0 +1,45 @@ +# +# 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:=amd64-microcode +PKG_VERSION:=20171205 +PKG_RELEASE:=1 + +PKG_SOURCE:=amd64-microcode_3.$(PKG_VERSION).$(PKG_RELEASE).tar.xz +PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/non-free/a/amd64-microcode/ +PKG_HASH:=a38bc072f535a3d3c1bf4e9e545197aa5114e979e94ef7e4a67e615df2f853a7 +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-3.$(PKG_VERSION).$(PKG_RELEASE) + +PKG_LICENSE_FILE:=LICENSE.amd-ucode + +include $(INCLUDE_DIR)/package.mk + +define Package/amd64-microcode + SECTION:=firmware + CATEGORY:=Firmware + URL:=$(PKG_SOURCE_URL) + DEPENDS:=@TARGET_x86 + TITLE:=AMD64 CPU microcode +endef + +define Build/Prepare + rm -rf $(PKG_BUILD_DIR) + mkdir -p $(PKG_BUILD_DIR) + $(TAR) -C $(BUILD_DIR) -xJf $(DL_DIR)/$(PKG_SOURCE) +endef + +define Build/Compile +endef + +define Package/amd64-microcode/install + $(INSTALL_DIR) $(1)/lib/firmware/amd-ucode + $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.bin $(1)/lib/firmware/amd-ucode +endef + +$(eval $(call BuildPackage,amd64-microcode)) diff --git a/package/firmware/linux-firmware/x86.mk b/package/firmware/linux-firmware/x86.mk deleted file mode 100644 index 2dfe7b07e2..0000000000 --- a/package/firmware/linux-firmware/x86.mk +++ /dev/null @@ -1,9 +0,0 @@ -Package/amd64-microcode = $(call Package/firmware-default,AMD64 CPU microcode) -define Package/amd64-microcode/install - $(INSTALL_DIR) $(1)/lib/firmware/amd-ucode - $(INSTALL_DATA) $(PKG_BUILD_DIR)/amd-ucode/microcode_amd.bin $(1)/lib/firmware/amd-ucode - $(INSTALL_DATA) $(PKG_BUILD_DIR)/amd-ucode/microcode_amd_fam15h.bin $(1)/lib/firmware/amd-ucode - $(INSTALL_DATA) $(PKG_BUILD_DIR)/amd-ucode/microcode_amd_fam16h.bin $(1)/lib/firmware/amd-ucode -endef -$(eval $(call BuildPackage,amd64-microcode)) - -- 2.30.2