v86d: dont use kernel includedir directly

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-01-15 23:23:39 +01:00
parent b5338c0b1e
commit 1851077dc3
2 changed files with 19 additions and 1 deletions

View File

@ -27,4 +27,4 @@ $SCRIPTS/unpack linux
cd $PKG_BUILD
./configure --with-x86emu
make KDIR=$(kernel_path)
make

View File

@ -0,0 +1,18 @@
diff -Naur v86d-0.1.10/Makefile v86d-0.1.10.patch/Makefile
--- v86d-0.1.10/Makefile 2011-02-25 22:27:39.000000000 +0100
+++ v86d-0.1.10.patch/Makefile 2013-01-14 19:20:13.385465794 +0100
@@ -3,14 +3,12 @@
.PHONY: clean install install_testvbe x86emu lrmi
INSTALL = install
-KDIR ?= /lib/modules/$(shell uname -r)/source
ifeq ($(call config_opt,CONFIG_KLIBC),true)
export CC = klcc
endif
CFLAGS ?= -Wall -g -O2
-CFLAGS += -I$(KDIR)/include
ifeq ($(call config_opt,CONFIG_X86EMU),true)
CFLAGS += -Ilibs/x86emu