On Tue, May 24, 2022 at 10:13:47PM +0200, Geert Stappers wrote: > > It seems in Linux source tree was > the file include/version.h renamed to include/vermagic.h > --- > src/util/get-pci-ids | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/util/get-pci-ids b/src/util/get-pci-ids > index 42466221..1550677d 100755 > --- a/src/util/get-pci-ids > +++ b/src/util/get-pci-ids > @@ -47,8 +47,8 @@ if($#ARGV >= 0) { > exit 1; > } > > -unless(-f "$kernel_src/include/linux/version.h") { > - print STDERR "Could not find $kernel_src/include/linux/version.h.\n"; > +unless(-f "$kernel_src/include/linux/vermagic.h") { > + print STDERR "Could not find $kernel_src/include/linux/vermagic.h.\n"; > print STDERR "$kernel_src is probably no Linux kernel source tree.\n"; > exit 1; > } > @@ -64,7 +64,7 @@ my $cpp="gcc -E"; > my @drivers = split /\s+/, `find $kernel_src/drivers/net -name '*.c' | sort`; > > # Kernel version > -my $version = `grep UTS_RELEASE $kernel_src/include/linux/version.h`; > +my $version = `grep UTS_RELEASE $kernel_src/include/linux/vermagic.h`; > chomp $version; > $version =~ s/\s*#define\s+UTS_RELEASE\s+"(\S+)".*$/$1/g; > > --
Just a reminder Groeten Geert Stappers -- Silence is hard to parse _______________________________________________ ipxe-devel mailing list ipxe-devel@lists.ipxe.org https://lists.ipxe.org/mailman/listinfo/ipxe-devel