summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2017-08-25 13:13:04 -0700
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-08-29 08:43:11 -0400
commit62dbe8c300e9c6319f1280b209553b4721acd430 (patch)
tree66aa611b5bc67d1943c9ac88b28a5adaa31d8fb1 /recipes-networking/openvswitch
parent99013658ead87e8658d9041da86a2a76ecf76fbe (diff)
downloadmeta-virtualization-62dbe8c300e9c6319f1280b209553b4721acd430.tar.gz
openvswitch: Fix compile problems with i586-nlp
If you have in your $CC from the compiler template any kind of directive which contains a comma character it is going to cause ovs to not build due to the macro expansion in the Makefile: CC = $(if $(C),env REAL_CC="'"$CC"'" CHECK="$(SPARSE) -I $(top_srcdir)/include/sparse $(SPARSEFLAGS) $(SPARSE_EXTRA_INCLUDES) " cgcc $(CGCCFLAGS),'"$CC" Put more simply: CC = $(if $(C), CONFIGURE_CC_DEFINITION, cgcc args CONFIGURE_CC_DEFINITION) The CONFIGURE_CC_DEFINITION for the i585-nlp definition had "-Wa,-momit-lock-prefix=yes". The comma there caused a strings to "break" in the wrong place in the $(if) macro and the build of recipe will fail with the error shown below: /bin/sh: -c: line 1: unexpected EOF while looking for matching `"' /bin/sh: -c: line 3: syntax error: unexpected end of file The solution is to transform the "-Wa," -> "-Xassembler ". Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-networking/openvswitch')
-rw-r--r--recipes-networking/openvswitch/openvswitch.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index ab5a7e47..58e0fcb0 100644
--- a/recipes-networking/openvswitch/openvswitch.inc
+++ b/recipes-networking/openvswitch/openvswitch.inc
@@ -86,6 +86,12 @@ INITSCRIPT_PARAMS_${PN}-switch = "defaults 71"
86INITSCRIPT_NAME_${PN}-testcontroller = "openvswitch-testcontroller" 86INITSCRIPT_NAME_${PN}-testcontroller = "openvswitch-testcontroller"
87INITSCRIPT_PARAMS_${PN}-testcontroller = "defaults 72" 87INITSCRIPT_PARAMS_${PN}-testcontroller = "defaults 72"
88 88
89do_configure_prepend() {
90 # Work around the for Makefile CC=$(if ....) by swapping out any
91 # "-Wa," assembly directives with "-Xassembler
92 CC=`echo '${CC}' | sed 's/-Wa,/-Xassembler /g'`
93}
94
89do_install_append() { 95do_install_append() {
90 install -d ${D}/${sysconfdir}/default/ 96 install -d ${D}/${sysconfdir}/default/
91 install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch 97 install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch