From 619a19720f2bce04a00b2c65f4b395569d968f19 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 20 Aug 2023 20:06:00 +0200 Subject: [PATCH] bootstrap, sys-firmware: Add various linux-firmware packages --- bootstrap.d/sys-firmware.yml | 69 ++++++++++++++++++++++++++++++++++++ bootstrap.yml | 1 + 2 files changed, 70 insertions(+) create mode 100644 bootstrap.d/sys-firmware.yml diff --git a/bootstrap.d/sys-firmware.yml b/bootstrap.d/sys-firmware.yml new file mode 100644 index 000000000..0b38c9950 --- /dev/null +++ b/bootstrap.d/sys-firmware.yml @@ -0,0 +1,69 @@ +sources: + - name: 'linux-firmware' + subdir: 'ports' + url: 'https://cdn.kernel.org/pub/linux/kernel/firmware/linux-firmware-20230804.tar.xz' + checksum: 'blake2b:48eca78ab97ef5ac335dd2bfd043cf3e67c52c68cb8b3eb152725e04838a7662dafa9745add6fc786bf87d275809b51a07496fbdaf4607a89e2787388fe1d1cd' + extract_path: 'linux-firmware-20230804' + format: 'tar.xz' + version: '20230804' + +packages: + - name: amd-ucode + architecture: '@OPTION:arch@' + metadata: + summary: AMD CPU microcode files + description: This package provides microcode update files for AMD CPUs. + spdx: 'linux-fw-redistributable' + website: 'https://kernel.org' + maintainer: "Alexander Richards " + categories: ['sys-kernel'] + from_source: linux-firmware + build: + - args: ['mkdir', '-p', '@THIS_COLLECT_DIR@/usr/lib/firmware/'] + - args: ['cp', '-r', '@THIS_SOURCE_DIR@/amd-ucode', '@THIS_COLLECT_DIR@/usr/lib/firmware'] + - args: ['cp', '@THIS_SOURCE_DIR@/LICENSE.amd-ucode', '@THIS_COLLECT_DIR@/usr/lib/firmware'] + + - name: linux-firmware-amdgpu + architecture: '@OPTION:arch@' + metadata: + summary: AMDGPU firmware files + description: This package provides firmware files for GPUs supported by the linux amdgpu driver. + spdx: 'linux-fw-redistributable' + website: 'https://kernel.org' + maintainer: "Alexander Richards " + categories: ['sys-kernel'] + from_source: linux-firmware + build: + - args: ['mkdir', '-p', '@THIS_COLLECT_DIR@/usr/lib/firmware/'] + - args: ['cp', '-r', '@THIS_SOURCE_DIR@/amdgpu', '@THIS_COLLECT_DIR@/usr/lib/firmware'] + - args: ['cp', '@THIS_SOURCE_DIR@/LICENSE.amdgpu', '@THIS_COLLECT_DIR@/usr/lib/firmware'] + + - name: linux-firmware-i915 + architecture: '@OPTION:arch@' + metadata: + summary: Intel GPU firmware files + description: This package provides firmware files for GPUs supported by the linux i915 driver. + spdx: 'linux-fw-redistributable' + website: 'https://kernel.org' + maintainer: "Alexander Richards " + categories: ['sys-kernel'] + from_source: linux-firmware + build: + - args: ['mkdir', '-p', '@THIS_COLLECT_DIR@/usr/lib/firmware/'] + - args: ['cp', '-r', '@THIS_SOURCE_DIR@/i915', '@THIS_COLLECT_DIR@/usr/lib/firmware'] + - args: ['cp', '@THIS_SOURCE_DIR@/LICENSE.i915', '@THIS_COLLECT_DIR@/usr/lib/firmware'] + + - name: linux-firmware-radeon + architecture: '@OPTION:arch@' + metadata: + summary: Radeon GPU firmware files + description: This package provides firmware files for GPUs supported by the linux radeon driver. + spdx: 'linux-fw-redistributable' + website: 'https://kernel.org' + maintainer: "Alexander Richards " + categories: ['sys-kernel'] + from_source: linux-firmware + build: + - args: ['mkdir', '-p', '@THIS_COLLECT_DIR@/usr/lib/firmware/'] + - args: ['cp', '-r', '@THIS_SOURCE_DIR@/radeon', '@THIS_COLLECT_DIR@/usr/lib/firmware'] + - args: ['cp', '@THIS_SOURCE_DIR@/LICENSE.radeon', '@THIS_COLLECT_DIR@/usr/lib/firmware'] diff --git a/bootstrap.yml b/bootstrap.yml index 37c9e8881..0c895abd3 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -31,6 +31,7 @@ imports: - file: bootstrap.d/sys-auth.yml - file: bootstrap.d/sys-boot.yml - file: bootstrap.d/sys-devel.yml + - file: bootstrap.d/sys-firmware.yml - file: bootstrap.d/sys-kernel.yml - file: bootstrap.d/sys-libs.yml - file: bootstrap.d/sys-process.yml