summaryrefslogtreecommitdiffstats
path: root/source/a/kernel-firmware
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-06-29 19:32:12 +0000
committer Eric Hameleers <alien@slackware.com>2023-06-29 22:33:34 +0200
commit5ab7591ab4906d0dba118ab7878fee9972384e16 (patch)
treeb1c8bed12596065259160d6ff04ad39b3610cfbc /source/a/kernel-firmware
parentbcf7c04755c81e9040d9c2b3f6a5a2a35b73203b (diff)
downloadcurrent-5ab7591ab4906d0dba118ab7878fee9972384e16.tar.gz
current-5ab7591ab4906d0dba118ab7878fee9972384e16.tar.xz
Thu Jun 29 19:32:12 UTC 202320230629193212
a/kernel-firmware-20230625_ee91452-noarch-2.txz: Rebuilt. When building the package, install from the download directory rather than moving the download directory to the destination directory first. Evidently "cp -d foo foo" and "cat foo > foo" don't exactly behave the same. ;-) Support a COMPRESSION= variable which may be set to xz or zstd to compress the kernel modules. For now, we'll stick with uncompressed modules. isolinux/initrd.img: Rebuilt. Replaced corrupted firmware. usb-and-pxe-installers/usbboot.img: Rebuilt. Replaced corrupted firmware.
Diffstat (limited to 'source/a/kernel-firmware')
-rwxr-xr-xsource/a/kernel-firmware/kernel-firmware.SlackBuild26
1 files changed, 18 insertions, 8 deletions
diff --git a/source/a/kernel-firmware/kernel-firmware.SlackBuild b/source/a/kernel-firmware/kernel-firmware.SlackBuild
index 3068b4601..11d3c58d9 100755
--- a/source/a/kernel-firmware/kernel-firmware.SlackBuild
+++ b/source/a/kernel-firmware/kernel-firmware.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2011, 2016, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2011, 2016, 2018, 2023 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,11 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=kernel-firmware
ARCH=noarch
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
+# Compress the firmware blobs?
+# Default is "none" for no compression.
+# Other types known to be currently supported are "xz" and "zstd".
+COMPRESSION=${COMPRESSION:-none}
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
@@ -56,13 +60,19 @@ DATE="$(lynx -dump -width=256 https://git.kernel.org/pub/scm/linux/kernel/git/fi
HEADISAT="$(lynx -dump -width=256 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=HEAD | grep " commit " | head -n 1 | cut -f 2 -d ] | cut -b 1-7)"
find . -name ".git*" -exec rm -rf "{}" \+
chown -R root:root .
-mkdir -p lib
-mv linux-firmware lib/firmware
-# Make sure that symlinks are created by running "make install":
-( cd lib/firmware
- echo "Running make DESTDIR=$PKG install..."
- make DESTDIR=$PKG install 2> /dev/null
+mkdir -p lib/firmware
+
+# Install the firmware from the download directory using "make $INSTALLTARGET":
+case $COMPRESSION in
+ xz) INSTALLTARGET="install-xz" ;;
+ zstd) INSTALLTARGET="install-zst" ;;
+ *) INSTALLTARGET="install" ;;
+esac
+( cd linux-firmware
+ echo "Running make DESTDIR=$PKG ${INSTALLTARGET}..."
+ make DESTDIR=$PKG $INSTALLTARGET 2> /dev/null
)
+rm -rf linux-firmware
# Remove sources for carl9170fw:
( cd $PKG/lib/firmware