[PATCH btbridge 8/9] Makefile: Allow specifying kenrel header path

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Nov 24 01:00:07 AEDT 2015


From: Joel Stanley <joel at jms.id.au>

Helps with doing builds on systems where the kernel headers are not
installed.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 9d1f5b9..733511c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 CFLAGS	= $(shell pkg-config --cflags libsystemd) -Wall -O2
 LDLIBS	= $(shell pkg-config --libs libsystemd)
 
+ifdef KERNEL_HEADERS
+	CFLAGS += -I$(KERNEL_HEADERS)
+endif
+
 EXE = btbridged
 
 all: $(EXE)
-- 
2.6.3




More information about the openbmc mailing list