kernel/turbostat-makefile.diff
Josh Boyer 49decd0917 Add patch to fix 32-bit turbostat build with older glibc-headers
glibc-2.15 32-bit sigcontext.h pulls in asm/sigcontext.h.  Because turbostat
is using -I to point to the kernel source UAPI dir, we get an error about
linux/compiler.h not being found.  That's true, because the kernel doesn't
export linux/compiler.h and it's stripped out of the uapi sigcontext.h file
when we export it.  But that doesn't help us when turbostat is being stupid
and pointing at the pre-stripped UAPI headers.  Just what.

So just point it to the top level kernel include directory after it's already
searched everything else.
2013-03-08 15:50:20 -05:00

11 lines
392 B
Diff

--- a/tools/power/x86/turbostat/Makefile 2013-03-08 15:42:39.274393369 -0500
+++ b/tools/power/x86/turbostat/Makefile 2013-03-08 15:41:59.162486862 -0500
@@ -5,7 +5,7 @@ DESTDIR :=
turbostat : turbostat.c
CFLAGS += -Wall
-CFLAGS += -I../../../../arch/x86/include/uapi/
+CFLAGS += -I../../../../arch/x86/include/uapi/ -idirafter ../../../../include/
%: %.c
@mkdir -p $(BUILD_OUTPUT)