From 5aa89ab269861e6707ba1e05401b986d4c649074 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Wed, 18 Jan 2023 22:43:23 +0100 Subject: [PATCH] Add leading / to paths in Contents-firmware indices. With this change, hw-detect's check-missing-firmware.sh can use grep -f with a file listing absolute paths to required firmware files. --- tools/make_disc_trees.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/make_disc_trees.pl b/tools/make_disc_trees.pl index 3c4f5ca6..6d08f866 100755 --- a/tools/make_disc_trees.pl +++ b/tools/make_disc_trees.pl @@ -1243,7 +1243,7 @@ sub add_firmware_stuff { while (defined(my $line = )) { chomp $line; if ($line =~ m,^[-|l]\S+\s+\S+\s+\d+\s+\S+\s+\S+\s+./(\S+/firmware/\S+)$,) { - printf OFILE "%-55s %s\n", $1, $base_file; + printf OFILE "%-55s %s\n", "/$1", $base_file; } } close DPKGC;