* [ptxdist] [PATCH v2] linux-firmware: Version bump. 20240909 -> 2024107
@ 2024-10-23 16:34 Christian Melki
0 siblings, 0 replies; only message in thread
From: Christian Melki @ 2024-10-23 16:34 UTC (permalink / raw)
To: ptxdist
The usual updates. GPU, wifi, sound.
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/log/?h=20241017
* Remove the old special install target. Dedup was splitted out.
Use a normal install target.
* Add patch to fix errors during install that didn't make it to the release.
Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
...skip-some-validation-if-git-ls-files.patch | 58 +++++++++++++++++++
patches/linux-firmware-20241017/series | 4 ++
rules/linux-firmware.make | 11 +---
3 files changed, 64 insertions(+), 9 deletions(-)
create mode 100644 patches/linux-firmware-20241017/0001-check_whence.py-skip-some-validation-if-git-ls-files.patch
create mode 100644 patches/linux-firmware-20241017/series
diff --git a/patches/linux-firmware-20241017/0001-check_whence.py-skip-some-validation-if-git-ls-files.patch b/patches/linux-firmware-20241017/0001-check_whence.py-skip-some-validation-if-git-ls-files.patch
new file mode 100644
index 000000000..074e7e605
--- /dev/null
+++ b/patches/linux-firmware-20241017/0001-check_whence.py-skip-some-validation-if-git-ls-files.patch
@@ -0,0 +1,58 @@
+From: Emil Velikov <emil.l.velikov@gmail.com>
+Date: Fri, 18 Oct 2024 13:58:01 +0100
+Subject: [PATCH] check_whence.py: skip some validation if git ls-files fails
+
+Recently we started running check_whence.py to validate WHENCE before
+installing files with copy-firmware.sh. It did not consider the fact
+that people may be using the distribution tarball, which lacks the
+relevant git metadata.
+
+Throw a warning and skip the relevant validation.
+
+Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
+---
+ check_whence.py | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+diff --git a/check_whence.py b/check_whence.py
+index c3d4a2e38f09..1fece4f4920a 100755
+--- a/check_whence.py
++++ b/check_whence.py
+@@ -60,9 +60,12 @@ def list_links_list():
+
+
+ def list_git():
+- with os.popen("git ls-files") as git_files:
+- for line in git_files:
+- yield line.rstrip("\n")
++ git_files = os.popen("git ls-files")
++ for line in git_files:
++ yield line.rstrip("\n")
++
++ if git_files.close():
++ sys.stderr.write("W: git file listing failed, skipping some validation\n")
+
+
+ def main():
+@@ -135,7 +138,7 @@ def main():
+ )
+ ret = 1
+
+- for name in sorted(list(known_files - git_files)):
++ for name in sorted(list(known_files - git_files) if len(git_files) else list()):
+ sys.stderr.write("E: %s listed in WHENCE does not exist\n" % name)
+ ret = 1
+
+@@ -151,10 +154,10 @@ def main():
+ break
+ valid_targets.add(dirname)
+
+- for link, target in sorted(links_list):
++ for link, target in sorted(links_list if len(git_files) else list()):
+ if target not in valid_targets:
+ sys.stderr.write(
+- "E: target %s of link %s in WHENCE" " does not exist\n" % (target, link)
++ "E: target %s of link %s in WHENCE does not exist\n" % (target, link)
+ )
+ ret = 1
+
diff --git a/patches/linux-firmware-20241017/series b/patches/linux-firmware-20241017/series
new file mode 100644
index 000000000..c83cdb9ea
--- /dev/null
+++ b/patches/linux-firmware-20241017/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-check_whence.py-skip-some-validation-if-git-ls-files.patch
+# c47d7f72a2f42b318b3433058f841747 - git-ptx-patches magic
diff --git a/rules/linux-firmware.make b/rules/linux-firmware.make
index ff9a40424..062ec1197 100644
--- a/rules/linux-firmware.make
+++ b/rules/linux-firmware.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_LINUX_FIRMWARE) += linux-firmware
#
# Paths and names
#
-LINUX_FIRMWARE_VERSION := 20240909
-LINUX_FIRMWARE_MD5 := 91dce7e5d4a4ce1402d706a2ce30029e
+LINUX_FIRMWARE_VERSION := 20241017
+LINUX_FIRMWARE_MD5 := 4562b39dd76bbdfd1b05fa1b992fac06
LINUX_FIRMWARE := linux-firmware-$(LINUX_FIRMWARE_VERSION)
LINUX_FIRMWARE_SUFFIX := tar.gz
LINUX_FIRMWARE_URL := $(call ptx/mirror, KERNEL, kernel/firmware/$(LINUX_FIRMWARE).$(LINUX_FIRMWARE_SUFFIX))
@@ -120,13 +120,6 @@ endif
LINUX_FIRMWARE_SELECTED_FIRMWARES = $(call remove_quotes, $(PTXCONF_LINUX_FIRMWARE_SELECTED_FIRMWARES))
-# ----------------------------------------------------------------------------
-# Prepare
-# ----------------------------------------------------------------------------
-
-LINUX_FIRMWARE_INSTALL_OPT := \
- install-nodedup
-
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-23 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-23 16:34 [ptxdist] [PATCH v2] linux-firmware: Version bump. 20240909 -> 2024107 Christian Melki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox