[arch-commits] Commit in archboot-linux-firmware/repos (2 files)

Tobias Powalowski tpowa at gemini.archlinux.org
Mon Nov 29 12:03:26 UTC 2021


    Date: Monday, November 29, 2021 @ 12:03:26
  Author: tpowa
Revision: 429440

archrelease: copy trunk to testing-any

Added:
  archboot-linux-firmware/repos/testing-any/
  archboot-linux-firmware/repos/testing-any/PKGBUILD
    (from rev 429439, archboot-linux-firmware/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: archboot-linux-firmware/repos/testing-any/PKGBUILD (from rev 429439, archboot-linux-firmware/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2021-11-29 12:03:26 UTC (rev 429440)
@@ -0,0 +1,39 @@
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=(archboot-linux-firmware)
+pkgver=20211027.1d00989
+pkgrel=2
+pkgdesc="Firmware files for archboot creation"
+url="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary"
+license=('GPL2' 'GPL3' 'custom')
+arch=('any')
+makedepends=('linux-firmware' 'kmod' 'linux' 'tar')
+conflicts=('linux-firmware')
+options=(!strip)
+
+package() {
+  cd /lib/modules/*
+  # get firmware files from modules
+  for i in $(find -name '*.ko.zst');do
+    FIRMWARE="$FIRMWARE $(echo $(modinfo -F firmware $(pwd)/$i))"
+  done
+  mkdir -p ${pkgdir}/usr
+  for i in $(echo $FIRMWARE);do
+  [[ -e /lib/firmware/$i ]] &&  tar -C / -clpf - lib/firmware/$i | tar -C ${pkgdir}/usr -vxlspf -
+  done
+  # fix symlinks
+  tar -C / -clpf - lib/firmware/cypress | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/cxgb4/t4fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/cxgb4/t5fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/cxgb4/t6fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/netronome/nic | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/intel/ice/ddp/ice-1.3.26.0.pkg | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/rtl_bt/rtl8821c_config.bin | tar -C ${pkgdir}/usr -vxlspf -
+  # compress firmware with xz, wait for mkinitcpio support to be implemented
+  # #FS 72263
+  find ${pkgdir}/usr -type f -execdir xz -C crc32 -z {} \+ 
+  # add licenses
+  mkdir -p ${pkgdir}/usr/share/licenses/archboot-linux-firmware
+  tar -C /usr/share/licenses/linux-firmware -clpf - ./ | tar -C ${pkgdir}/usr/share/licenses/archboot-linux-firmware -vxlspf -
+}
+# vim:set sw=2 et:



More information about the arch-commits mailing list