summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--libkvm/Makefile4
2 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index a10a4af0..30497362 100755
--- a/configure
+++ b/configure
@@ -106,6 +106,8 @@ fi
--arch="$arch" \
${cross_prefix:+"--cross-prefix=$cross_prefix"})
+(cd libkvm; ln -sf "$kerneldir/include/asm-$arch" asm)
+
#configure qemu
(cd qemu; ./configure --target-list=$target_exec \
--disable-kqemu \
diff --git a/libkvm/Makefile b/libkvm/Makefile
index 65efb3a2..0c01279f 100644
--- a/libkvm/Makefile
+++ b/libkvm/Makefile
@@ -10,7 +10,7 @@ cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
CFLAGS += $(autodepend-flags) -g -fomit-frame-pointer -Wall
CFLAGS += $(call cc-option, -fno-stack-protector, "")
CFLAGS += $(call cc-option, -fno-stack-protector-all, "")
-CFLAGS += -I $(KERNELDIR)/include
+CFLAGS += -I $(KERNELDIR)/include -I .
LDFLAGS += $(CFLAGS)
@@ -35,4 +35,4 @@ install:
-include .*.d
clean:
- $(RM) *.o *.a .*.d
+ $(RM) *.o *.a .*.d asm