openvswitch: work-around kernel architecture detection 1901/head
authorDaniel Golle <daniel@makrotopia.org>
Fri, 30 Oct 2015 00:03:46 +0000 (01:03 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 30 Oct 2015 00:06:02 +0000 (01:06 +0100)
caught on build-bot:
make -C /store/buildbot/slave/ramips/build/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/linux-ramips_rt305x/linux-3.18.21 M=/store/buildbot/slave/ramips/build/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/openvswitch-2.4.0/datapath/linux modules
make[7]: Entering directory `/store/buildbot/slave/ramips/build/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/linux-ramips_rt305x/linux-3.18.21'
Makefile:610: arch/mipsel/Makefile: No such file or directory

Declare LINUX_KARCH to package's build-system to resolv this.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
net/openvswitch/Makefile

index 1446c38989958416ae94e20648dec26aeb94f063..f6d7e01923f04002a4c26a335f24b49d9450b353 100644 (file)
@@ -116,6 +116,9 @@ CONFIGURE_ARGS += --enable-shared
 
 TARGET_CFLAGS += -flto -std=gnu99
 
+CONFIGURE_VARS += KARCH=$(LINUX_KARCH)
+MAKE_FLAGS += ARCH="$(LINUX_KARCH)"
+
 define Package/openvswitch/install
        $(INSTALL_DIR) $(1)/etc/openvswitch