X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux-2.6%2FMakefile.main.in;h=1edfc34120b67a7fdd526dca9fd4ee57df5ab43b;hb=71fe9970f7bc88a20b307e55f924c21029af98f2;hp=fd231e6968c731dd4df1910fdcc253a80dac3ad1;hpb=a4af00400a835eb87569ba40e21874c05e872c0f;p=sliver-openvswitch.git diff --git a/datapath/linux-2.6/Makefile.main.in b/datapath/linux-2.6/Makefile.main.in index fd231e696..1edfc3412 100644 --- a/datapath/linux-2.6/Makefile.main.in +++ b/datapath/linux-2.6/Makefile.main.in @@ -2,10 +2,8 @@ export builddir = @abs_builddir@ export srcdir = @abs_srcdir@ export top_srcdir = @abs_top_srcdir@ -export KSRC = @KBUILD26@ +export KSRC = @KBUILD@ export VERSION = @VERSION@ -export BUILD_VETH = @BUILD_VETH@ -export BUILD_GRE = @BUILD_GRE@ include $(srcdir)/../Modules.mk include $(srcdir)/Modules.mk @@ -33,22 +31,24 @@ else KOBJ := $(KSRC) endif -ifneq ($(shell grep -c 'PATCHLEVEL = 6' $(KSRC)/Makefile),1) - $(error Linux kernel source in $(KSRC) not 2.6) -endif - VERSION_FILE := $(KOBJ)/include/linux/version.h ifeq (,$(wildcard $(VERSION_FILE))) $(error Linux kernel source not configured - missing version.h) endif -CONFIG_FILE := $(KSRC)/include/linux/autoconf.h +CONFIG_FILE := $(KSRC)/include/generated/autoconf.h ifeq (,$(wildcard $(CONFIG_FILE))) - $(error Linux kernel source not configured - missing autoconf.h) + CONFIG_FILE := $(KSRC)/include/linux/autoconf.h + ifeq (,$(wildcard $(CONFIG_FILE))) + $(error Linux kernel source not configured - missing autoconf.h) + endif endif default: $(MAKE) -C $(KSRC) M=$(builddir) modules + +modules_install: + $(MAKE) -C $(KSRC) M=$(builddir) modules_install endif # Much of the kernel build system in this file is derived from Intel's