From 935e54417d26bec5c52be6a673ee2044bdd9f834 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 28 Oct 2014 11:22:56 +0200 Subject: [PATCH 1/2] openvswitch: add patch for adding KCFLAGS var to the OVS build Signed-off-by: Alexandru Ardelean --- ...dd-KCFLAGS-var-to-modules-Makefile.m.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 net/openvswitch/patches/0004-datapath-linux-add-KCFLAGS-var-to-modules-Makefile.m.patch diff --git a/net/openvswitch/patches/0004-datapath-linux-add-KCFLAGS-var-to-modules-Makefile.m.patch b/net/openvswitch/patches/0004-datapath-linux-add-KCFLAGS-var-to-modules-Makefile.m.patch new file mode 100644 index 000000000..bbc758d56 --- /dev/null +++ b/net/openvswitch/patches/0004-datapath-linux-add-KCFLAGS-var-to-modules-Makefile.m.patch @@ -0,0 +1,39 @@ +From deb44e6e9d64001562ee9395a2c8525848052394 Mon Sep 17 00:00:00 2001 +From: Alexandru Ardelean +Date: Tue, 28 Oct 2014 11:03:53 +0200 +Subject: [PATCH] datapath/linux: add KCFLAGS var to modules Makefile.main.in + +This is mostly required because of GCC 4.9 which seems +to error out with: + openvswitch/datapath/linux/datapath.c:2108:10: + error: macro "DATE" might prevent reproducible builds + +We would have wanted to add '-Wno-error=date-time' directly +but that would be too specific, so we decided to add +a generic make flag and configure it with what we need. + +Signed-off-by: Alexandru Ardelean +--- + datapath/linux/Makefile.main.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/datapath/linux/Makefile.main.in b/datapath/linux/Makefile.main.in +index 88f144c..0b200b7 100644 +--- a/datapath/linux/Makefile.main.in ++++ b/datapath/linux/Makefile.main.in +@@ -67,10 +67,10 @@ ifeq (,$(wildcard $(CONFIG_FILE))) + endif + + default: +- $(MAKE) -C $(KSRC) M=$(builddir) modules ++ $(MAKE) -C $(KSRC) M=$(builddir) $(KCFLAGS) modules + + modules_install: +- $(MAKE) -C $(KSRC) M=$(builddir) modules_install ++ $(MAKE) -C $(KSRC) M=$(builddir) $(KCFLAGS) modules_install + depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' $(KSRC)/include/generated/utsrelease.h` + endif + +-- +1.8.4.5 + From 6ba7c4721e58ce9fb524f2acaead1f9560bb9e28 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 28 Oct 2014 11:25:59 +0200 Subject: [PATCH 2/2] openvswitch: add KCFLAGS="-Wno-error=date-time" to kernel modules build Signed-off-by: Alexandru Ardelean --- net/openvswitch/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/net/openvswitch/Makefile b/net/openvswitch/Makefile index bb5b268dd..627b1ec86 100644 --- a/net/openvswitch/Makefile +++ b/net/openvswitch/Makefile @@ -131,6 +131,7 @@ define Build/Compile ARCH="$(LINUX_KARCH)" \ SUBDIRS="$(PKG_BUILD_DIR)/datapath/linux" \ PATH="$(TARGET_PATH)" \ + KCFLAGS="-Wno-error=date-time" \ KCC="$(KERNEL_CC)" endef