meta-virtualization/recipes-networking/openvswitch
Jason Wessel 62dbe8c300 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>
2017-08-29 08:43:11 -04:00
..
files openvswitch: uprev to v2.7.1 2017-07-13 10:54:49 -04:00
openvswitch-git openvswitch: backport py3 fixups 2017-07-13 10:54:49 -04:00
openvswitch_git.bb openvswitch: add libcap-ng PACKAGECONFIG 2017-08-17 11:51:59 -04:00
openvswitch.inc openvswitch: Fix compile problems with i586-nlp 2017-08-29 08:43:11 -04:00