[ipxe-devel] [PATCH 2/5] get-pci-ids extend library search path
Geert Stappers
stappers at stappers.nl
Tue May 24 20:13:48 UTC 2022
From: Geert Stappers <stappers at stappers.nl>
More -I for the C-preprocessor
---
src/util/get-pci-ids | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/util/get-pci-ids b/src/util/get-pci-ids
index 1550677d..0927ef2d 100755
--- a/src/util/get-pci-ids
+++ b/src/util/get-pci-ids
@@ -56,6 +56,8 @@ unless(-f "$kernel_src/include/linux/vermagic.h") {
# Flags that are needed to preprocess the drivers.
# Some drivers need optimization
my $cflags="-D__KERNEL__ -I$kernel_src/include -I$kernel_src/net/inet -O2";
+$cflags .= " -I$kernel_src/arch/x86/include";
+$cflags .= " -I$kernel_src/arch/x86/include/generated/"; # have "make" kernel done
# The C preprocessor. It needs to spit out the preprocessed source on stdout.
my $cpp="gcc -E";
--
2.11.0
More information about the ipxe-devel
mailing list