cmake.bbclass : Add support for cmake projects that use .S files.

UHD and GNU radio use the cmake build system. The toolchain file made
from cmake.bbclass does not set the variable needs by cmake projects
that use .S files. UHD added some .S files and these changes are required
to build recent UHD.

Signed-off-by: Philip Balister <philip@balister.org>
flex: fix the deps for ptest builds

Building the tests for flex requires flex-native and bison-native, but the
attempt to add this dependency was done incorrectly. Use an inline python
conditional based on PTEST_ENABLED instead.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
ltp: Added zip-native as a DEPENDS

The Makefile checks for zip during installation

[YOCTO #6699]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
zlib: obey LDFLAGS for tests

Signed-off-by: Christopher Larson <kergoth@gmail.com>
gdbm-1.8.3: obey LDFLAGS

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
ossp-uuid: obey LDFLAGS

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
setserial: obey LDFLAGS

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
hostap-utils: obey LDFLAGS

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
blktrace: obey LDFLAGS for btrecord

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
irda-utils: obey LDFLAGS

While we're at it, also switch to explicit variable passing rather than
relying on make -e, and pass V=1 so the actual commands hit the logs.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
python: obey LDFLAGS

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
perl: remove unneeded patches in ptest directory

The perl patches have been copied to ptest directory and these patches in
target rootfs are linked to build dir. The ptest of perl doesn't need these
patches, so remove them from target.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
gstreamer1.0-plugins-bad: disable libssh2

libssh2 is automatically linked to if present, this undetermined
dependency may cause build errors like:

  .../x86_64-poky-linux/4.9.0/ld: cannot find -lssh2

libssh2 isn't an oe-core recipe, disable it for now.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
meta-environment: Fix TARGET_OS problem for ppc

Due to the use of the cross-canadian inherit, TARGET_OS can be reset to
values other than the correct one, leading to generation of the wrong
files.

By expanding REAL_MULTIMACH_TARGET_SYS before the inherit, the correct
OS value is preserved and we generate the right environment files.

[YOCTO #6608]
[YOCTO #6613]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
populate_sdk_base/meta-environment: Remove overlap from the two

Currently we have the horrible situation where meta-environment packages
the toolchain environment files and they get included in the SDK but are
broken, then, the SDK code overwrites them with good versions. This is
suboptimal.

This change fixes the code in meta-environment to create working
files and adds in the multilib support from populate_sdk_base, then
we remove the code in that base bbclass and rely on the packages
being installed if/as/when needed. This removes the duplication
and the broken versions of the files, hopefully making all well.

[YOCTO #6608]
[YOCTO #6613]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
u-boot: cleanup indentation and consolidate .inc file

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
kernel.bbclass: use one package split for all firmware filename extensions

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
oeqa/selftest: Added decorators to buildoptions.py

Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>