aboutsummaryrefslogtreecommitdiffstats
path: root/package/firmware/linux-firmware
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2021-12-19 13:51:41 +0100
committerChristian Lamparter <chunkeey@gmail.com>2021-12-29 23:45:37 +0100
commit47a5b9744b99559f61f6bd3383605b9738ea225e (patch)
tree4b343e39bbfd1683cfc6fb6884038f02ce9ea36f /package/firmware/linux-firmware
parent600375239460865e3b95e6b2a096a23c42dd88c1 (diff)
downloadupstream-47a5b9744b99559f61f6bd3383605b9738ea225e.tar.gz
upstream-47a5b9744b99559f61f6bd3383605b9738ea225e.tar.bz2
upstream-47a5b9744b99559f61f6bd3383605b9738ea225e.zip
linux-firmware: amd: consolidate amd's linux-firmware entries
this patch consolidates the amd64-microcode (moved to linux-firmware.git, previously this was an extra debian source package download), amdgpu and radeon firmwares into a shared "amd" makefile. this will include a microcode update for ZEN 3 CPUs that came with the 20211216 linux-firmware bump. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (cherry picked from commit cf8ee49c9bd37ea3e17abe710353737e0f5f9608)
Diffstat (limited to 'package/firmware/linux-firmware')
-rw-r--r--package/firmware/linux-firmware/amd.mk29
-rw-r--r--package/firmware/linux-firmware/amdgpu.mk9
-rw-r--r--package/firmware/linux-firmware/radeon.mk9
3 files changed, 29 insertions, 18 deletions
diff --git a/package/firmware/linux-firmware/amd.mk b/package/firmware/linux-firmware/amd.mk
new file mode 100644
index 0000000000..68b305e862
--- /dev/null
+++ b/package/firmware/linux-firmware/amd.mk
@@ -0,0 +1,29 @@
+Package/amd64-microcode = $(call Package/firmware-default,AMD64 CPU microcode,@TARGET_x86)
+define Package/amd64-microcode/install
+ $(INSTALL_DIR) $(1)/lib/firmware/amd-ucode
+ $(CP) \
+ $(PKG_BUILD_DIR)/amd-ucode/*.bin \
+ $(1)/lib/firmware/amd-ucode
+endef
+
+$(eval $(call BuildPackage,amd64-microcode))
+
+Package/amdgpu-firmware = $(call Package/firmware-default,AMDGPU Video Driver firmware)
+define Package/amdgpu-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/amdgpu
+ $(CP) \
+ $(PKG_BUILD_DIR)/amdgpu/*.bin \
+ $(1)/lib/firmware/amdgpu
+endef
+
+$(eval $(call BuildPackage,amdgpu-firmware))
+
+Package/radeon-firmware = $(call Package/firmware-default,Radeon Video Driver firmware)
+define Package/radeon-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/radeon
+ $(CP) \
+ $(PKG_BUILD_DIR)/radeon/*.bin \
+ $(1)/lib/firmware/radeon
+endef
+
+$(eval $(call BuildPackage,radeon-firmware))
diff --git a/package/firmware/linux-firmware/amdgpu.mk b/package/firmware/linux-firmware/amdgpu.mk
deleted file mode 100644
index 89f11e7c39..0000000000
--- a/package/firmware/linux-firmware/amdgpu.mk
+++ /dev/null
@@ -1,9 +0,0 @@
-Package/amdgpu-firmware = $(call Package/firmware-default,AMDGPU Video Driver firmware)
-define Package/amdgpu-firmware/install
- $(INSTALL_DIR) $(1)/lib/firmware/amdgpu
- $(CP) \
- $(PKG_BUILD_DIR)/amdgpu/*.bin \
- $(1)/lib/firmware/amdgpu
-endef
-
-$(eval $(call BuildPackage,amdgpu-firmware))
diff --git a/package/firmware/linux-firmware/radeon.mk b/package/firmware/linux-firmware/radeon.mk
deleted file mode 100644
index b750efbfce..0000000000
--- a/package/firmware/linux-firmware/radeon.mk
+++ /dev/null
@@ -1,9 +0,0 @@
-Package/radeon-firmware = $(call Package/firmware-default,Radeon Video Driver firmware)
-define Package/radeon-firmware/install
- $(INSTALL_DIR) $(1)/lib/firmware/radeon
- $(CP) \
- $(PKG_BUILD_DIR)/radeon/*.bin \
- $(1)/lib/firmware/radeon
-endef
-
-$(eval $(call BuildPackage,radeon-firmware))