diff --git a/net/openvswitch/Makefile b/net/openvswitch/Makefile index 08c65be1c..010f0fa60 100644 --- a/net/openvswitch/Makefile +++ b/net/openvswitch/Makefile @@ -24,14 +24,16 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_VERSION:=58be9c9fd732b5bdd3d4c2e9b8cc2313f570094d PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz +PKG_BUILD_PARALLEL:=1 +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + SUPPORTED_KERNELS:=LINUX_3_8||LINUX_3_10||LINUX_3_13||LINUX_3_14||LINUX_3_18||LINUX_4_0 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/kernel.mk $(call include_mk, python-package.mk) -PKG_FIXUP=libtool - define Package/openvswitch/Default SECTION:=net CATEGORY:=Network @@ -112,35 +114,7 @@ CONFIGURE_ARGS += --enable-ndebug CONFIGURE_ARGS += --disable-ssl CONFIGURE_ARGS += --enable-shared -TARGET_CFLAGS += -flto - -define Build/Configure - (cd $(PKG_BUILD_DIR); \ - autoreconf -v --install --force || exit 1 \ - ); - $(call Build/Configure/Default,$(CONFIGURE_ARGS)) -endef - -KCFLAGS= -ifeq ($(CONFIG_GCC_VERSION_4_9),y) -KCFLAGS:=-Wno-error=date-time -endif - -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="-I$(PKG_BUILD_DIR)/lib $(TARGET_CFLAGS) -std=gnu99" \ - LDFLAGS="-L$(PKG_BUILD_DIR)/lib $(TARGET_LDFLAGS)" \ - LDFLAGS_MODULES="$(TARGET_LDFLAGS) -L$(PKG_BUILD_DIR)/lib" \ - STAGING_DIR="$(STAGING_DIR)" \ - DESTDIR="$(PKG_INSTALL_DIR)/usr" \ - CROSS_COMPILE="$(TARGET_CROSS)" \ - ARCH="$(LINUX_KARCH)" \ - SUBDIRS="$(PKG_BUILD_DIR)/datapath/linux" \ - PATH="$(TARGET_PATH)" \ - EXTRA_CFLAGS="$(KCFLAGS)" \ - KCC="$(KERNEL_CC)" -endef +TARGET_CFLAGS += -flto -std=gnu99 define Package/openvswitch/install $(INSTALL_DIR) $(1)/etc/openvswitch