]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agoarchiver: preserve sysroot paths in configured mode
Ross Burton [Tue, 6 Jun 2017 14:23:18 +0000 (15:23 +0100)]
archiver: preserve sysroot paths in configured mode

do_ar_configured alters WORKDIR but also expects to be able to run do_configure,
so forcibly expand the paths to the sysroots as otherwise they'll point to a
non-existant directory in the temporary WORKDIR.

[ YOCTO #11584 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoarchiver.bbclass: fix do_ar_original error for matchbox-desktop
Dengke Du [Mon, 28 Nov 2016 12:37:35 +0000 (12:37 +0000)]
archiver.bbclass: fix do_ar_original error for matchbox-desktop

Error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: matchbox-desktop-2.1-r0 do_ar_original: Can not determine archive names
for original source because 'name' URL parameter is unset in more than one URL.
Add it to at least one of these: git://git.yoctoproject.org/matchbox-desktop-2
file://vfolders/%2A

ERROR: matchbox-desktop-2.1-r0 do_ar_original: Function failed: do_ar_original
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In function do_ar_original, when recipes have more than one source, it added the
"name" URL parameter as suffix to identify the created tarball.

But the URL type "file://" that we always used to represent a series of patches,
it didn't have "name" parameter, so it failed.

So set "name" to the folder name to identify the created tarball, for example:

In matchbox-desktop bb file, the SRC_URI contains:

file://vfloders/*

We set "name" to "vfolders" to identify the created tarball.

In connman-gnome bb file, the SRC_URI contains:

file://images/*

We set "name" to "images" to identify the created tarball.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoarchiver.bbclass: adapt do_unpack_and_patch to RSS
Mikko Ylinen [Mon, 5 Jun 2017 14:42:51 +0000 (17:42 +0300)]
archiver.bbclass: adapt do_unpack_and_patch to RSS

do_unpack_and_patch was not correctly run until recently
("archiver.bbclass: various fixes for original+diff mode") but
with the fix applied, the errors we get indicate the function
is not adapted to work with recipe specific sysroots.

do_unpack_and_patch sets WORKDIR to ARCHIVER_WORKDIR which
affects all path settings relative to WORKDIR, inluding the paths
to recipes' sysroots. IOW, when do_unpack and do_patch are run, they
cannot find the necessary native tools and files located in the
sysroot (e.g., quiltrc) because the paths point to ARCHIVER_WORKDIR.

Adapt do_unpack_and_patch to RSS by restoring the original
STAGING_DIR_NATIVE after WORKDIR is changed to ARCHIVER_WORKDIR.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowic: Remove obsolete reference to msger logger.
Kristian Amlie [Tue, 30 May 2017 07:56:59 +0000 (09:56 +0200)]
wic: Remove obsolete reference to msger logger.

This was overlooked when msger was removed in 28014087b8091.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts/oe-{self,}test: Logger change default stream to stdout
Aníbal Limón [Mon, 5 Jun 2017 15:46:03 +0000 (10:46 -0500)]
scripts/oe-{self,}test: Logger change default stream to stdout

By default python logging module uses stderr as default stream
for output but is unix-like to use stdout instead, so change it.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agooeqa/core/loader: Call parent init method in OETestLoader
Anibal Limon [Mon, 5 Jun 2017 08:39:08 +0000 (04:39 -0400)]
oeqa/core/loader: Call parent init method in OETestLoader

After Python 3.5 the init method contains initialization of
_loading_packages set to avoid infinite loops in recursive
loading.

Fix,

Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/oe-selftest", line 70, in <module>
    ret = main()
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts/oe-selftest", line 57, in main
    results = args.func(logger, args)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/context.py", line 214, in run
    rc = self._internal_run(logger, args)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/context.py", line 175, in _internal_run
    self.tc.loadTests(self.module_paths, **self.tc_kwargs['load'])
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/context.py", line 51, in loadTests
    self.suites = self.loader.discover()
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/loader.py", line 268, in discover
    pattern='*.py', top_level_dir=path)
  File "/usr/lib/python3.5/unittest/loader.py", line 341, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/usr/lib/python3.5/unittest/loader.py", line 398, in _find_tests
    full_path, pattern, namespace)
  File "/usr/lib/python3.5/unittest/loader.py", line 473, in _find_test_path
    self._loading_packages.add(name)
AttributeError: 'OETestLoader' object has no attribute '_loading_packages'

Signed-off-by: Anibal Limon <anibal.limon@linux.intel.com>
7 years agooeqa/runtime/context.py: Add support to specify port in target_ip
Aníbal Limón [Fri, 2 Jun 2017 16:11:03 +0000 (11:11 -0500)]
oeqa/runtime/context.py: Add support to specify port in target_ip

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodistutils-base.bbclass: Do not use -pie with hardening
Khem Raj [Fri, 2 Jun 2017 16:01:50 +0000 (09:01 -0700)]
distutils-base.bbclass: Do not use -pie with hardening

Fix build when PIE is turned on. It tries to build
.so file using -pie and -shared flags together because
its doing compile and link in same step CFLAGS and LDFLAGS
are combined and does not work, ending in errors e.g.

| /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/python-pygpgme/0.3-r0/recipe-sysroot/usr/l
ib/Scrt1.o: In function `_start_c':
| /usr/src/debug/musl/1.1.16+gitAUTOINC+179766aa2e-r0/git/crt/crt1.c:17: undefined reference to `main'
| collect2: error: ld returned 1 exit status

This error while cryptic is due to the fact that we are
building a shared library but also pass -pie flag to the link
step after specify LDHSARED ( which is -shared linker flags )

we can not use -pie when doing shared libs. This is true for all the python
modules inheriting setup tools

Disable the pie flags thusly for all modules using setuptools since
this setting is done in setuptools makefiles which are then used
during module compiles

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-firmware: add support for mt7601u WiFi chip
Tim Orling [Fri, 2 Jun 2017 15:39:42 +0000 (08:39 -0700)]
linux-firmware: add support for mt7601u WiFi chip

Mediatek MT7601U is a common 802.11 g/n WiFi USB chip

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoinitscripts: Populate volatile from existing file
David Vincent [Fri, 2 Jun 2017 15:16:03 +0000 (17:16 +0200)]
initscripts: Populate volatile from existing file

In some cases, it may be useful to populate a volatile file from an
existing one, e.g. a file in a read-only rootfs that may be edited in a
read-write destination.

To provide this behavior, creation of volatile files has been updated to
copy a file which has been given in the <linksource> field. If set to
none, the current behavior is preserved.

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosstate-diff-machines.sh: Replace MACHINE_ARCH only at the beginning and separated...
Martin Jansa [Tue, 30 May 2017 08:08:01 +0000 (10:08 +0200)]
sstate-diff-machines.sh: Replace MACHINE_ARCH only at the beginning and separated with dash

* I had some components where the MACHINE name was also included in PV of allarch recipe
  which was tripping the script into saying that they have different signatures (because
  for one MACHINE was the string in PV replaced with 'MACHINE' and not for other MACHINEs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorecipes: Replace "cp -a" with "cp -R --no-dereference --preserve=mode, links"
Martin Jansa [Tue, 30 May 2017 08:08:36 +0000 (10:08 +0200)]
recipes: Replace "cp -a" with "cp -R --no-dereference --preserve=mode, links"

* Using "cp -a" leaks UID of user running the builds, causing
  many QA warnings.
* See this thread for details:
  http://lists.openembedded.org/pipermail/openembedded-core/2015-November/112904.html

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodevshell.bbclass: clean up trailing whitespaces
Chang Rebecca Swee Fun [Mon, 29 May 2017 04:42:29 +0000 (12:42 +0800)]
devshell.bbclass: clean up trailing whitespaces

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
7 years agodevshell.bbclass: ensure toolchains available for do_devshell
Chang Rebecca Swee Fun [Tue, 30 May 2017 00:58:08 +0000 (08:58 +0800)]
devshell.bbclass: ensure toolchains available for do_devshell

Toolchains are required to be prepopulated in sysroot before
entering devshell.

[YOCTO #11464]

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
7 years agooeqa/selftest/cases: Migrate test cases into the new oe-qa framework
Leonardo Sandoval [Fri, 12 May 2017 21:40:21 +0000 (14:40 -0700)]
oeqa/selftest/cases: Migrate test cases into the new oe-qa framework

New framework has different classes/decorators so adapt current test cases to
support these. Changes include changes on base classes and decorators.

Also include paths in selftest/__init__.py isn't needed because the
loader is the standard unittest one.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agoscripts/oe-selftest: Migrate to new framework into oeqa.selftest.context
Leonardo Sandoval [Thu, 25 May 2017 20:20:56 +0000 (15:20 -0500)]
scripts/oe-selftest: Migrate to new framework into oeqa.selftest.context

The new OEQA framework aims to re-use code into the different Test
components.

The previous oe-selftest implements it-self loading, run, and list test
cases in a non-standard way (unittest base) and other functionalities
like logging that is now on oeqa core. This ends on a compact oe-selftest
script.

All needed command line options was migrated but there are some of them
pending of implementation and others deprecated.

Deprecated options:

list-tags: The tag functionality into the old oeqa framework isn't
    work, the selftest doesn't has tag decorators.
{run, list}-tests-by: Ambiguos options it accepts all the posibilites module,
    class, name, id or tag.

Remaining to implement:

coverage: It enables covrage reports over a test run, currently isn't on
    on use and some bugs [1], i filed a bug to add support to OEQA core module in
    this way other Test components could enable it.
repository: It push XML results into a git repository and isn't in use,
    i filed a bug to implement this into OEQA core module. [2]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=11582#c0
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=11583#c0

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agooeqa/selftest/case: Don't figure out the testlayer inside
Aníbal Limón [Fri, 26 May 2017 16:54:50 +0000 (09:54 -0700)]
oeqa/selftest/case: Don't figure out the testlayer inside

The test layer is added at init of selftest and is the same
across test runs so pass it as a attr in the context.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agooeqa/selftest/case.py: Remove machine selection logic
Leonardo Sandoval [Thu, 25 May 2017 19:54:14 +0000 (14:54 -0500)]
oeqa/selftest/case.py: Remove machine selection logic

The machine selection is an operation that needs to be made
in every test run, the best place to it is on the context
module.

Use self.tc.custommachine variable instead of use environment.

SIgned-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agoscripts/oe-selftest: Move {add,remove}_include files to case
Leonardo Sandoval [Thu, 25 May 2017 19:25:39 +0000 (14:25 -0500)]
scripts/oe-selftest: Move {add,remove}_include files to case

The oe-selftest creates include files to store custom configuration to
make specific tests, every class executes a different test and may be
uses custom configuration.

So move to case class in order to simplify oe-selftest script and later
implement later a build folder per class.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agooeqa/selftest/case: Migrate case class to the new OEQA framework
Leonardo Sandoval [Thu, 25 May 2017 17:23:42 +0000 (12:23 -0500)]
oeqa/selftest/case: Migrate case class to the new OEQA framework

Summary of the changes:

- Use OETestCase as base class instead of unittest.TestCase
- Remove LogResults decorator the new framework provides logging into
  the core functionality.
- Logger is now self.logger instead of self.log
- Move comments into docstrings in several help methods
- Use get_test_layer() method instead of access monkey patched variable
  in old oeSelfTest case class.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agooeqa/selftest: Move base class to case module
Aníbal Limón [Thu, 25 May 2017 17:22:22 +0000 (12:22 -0500)]
oeqa/selftest: Move base class to case module

To match the new structure of the OEQA framework.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agoscripts/oe-test: Move load_test_components to oeqa.utils
Aníbal Limón [Tue, 23 May 2017 20:04:57 +0000 (15:04 -0500)]
scripts/oe-test: Move load_test_components to oeqa.utils

In order to maintain compatibility with oe-selftest, the
load_test_components needs to be re-used, so the script
executor needs to pass to only load components supported
by certain script (oe-test, oe-selftest).

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
7 years agooeqa/selftest: lock down Meson git revision for reliability
Ross Burton [Mon, 5 Jun 2017 16:30:42 +0000 (17:30 +0100)]
oeqa/selftest: lock down Meson git revision for reliability

The test_recipetool_create_github test fetches HEAD of the repository so
upstream changes can (and do) break the test.  Avoid these problems by passing
the rev= argument in the URL to lock the checkout to the same version that is
fetched in the github_tarball test.

Also pass the commands to runCmd() as a list instead of a string, the semicolon
in the URL needs more quotes if the shell is involved and passing a list
bypasses the shell entirely.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomusl: Update to lates master
Khem Raj [Fri, 2 Jun 2017 04:41:52 +0000 (21:41 -0700)]
musl: Update to lates master

- towupper/towlower: fast path for ascii chars
- remove long-obsolete clang workarounds from mips* syscall_arch.h files
- fix fstatat syscall on mips64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoas-needed.inc: Compile pulseaudio with --as-needed
Khem Raj [Fri, 2 Jun 2017 04:41:51 +0000 (21:41 -0700)]
as-needed.inc: Compile pulseaudio with --as-needed

This effectively reverts
commit f06e99d194eda49ee194f8ae401a23819e61b90f

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel.bbclass: fix KERNEL_IMAGETYPE(S) for Image.gz
Nicolas Dechesne [Fri, 2 Jun 2017 07:05:31 +0000 (09:05 +0200)]
kernel.bbclass: fix KERNEL_IMAGETYPE(S) for Image.gz

KERNEL_IMAGETYPES lists all the kernel images that we want to build. in
cb17b6c2a7 (kernel.bbclass: support kernel image type of vmlinux.gz), some logic
was added to support vmlinux.gz which is not a target built by kernel
makefiles (only vmlinux). It is clear that the goal of this logic is only to
support vmlinux.gz and not others compressed format (such as Image.gz) which are
valid target for kernel makefiles.

For Image.gz we should rely on the kernel makefiles and not do the compression
in kernel class.

This patch updates the logic used to filter out non supported kernel target from
KERNEL_IMAGETYPES, and make vmlinux.gz a 'special case', instead of *.gz. If
more special cases are needed in the future, we could add them in a similar way.

This patch should be a no-op for anyone using vmlinux or vmlinux.gz, and on top
of that it is fixing the build for Image.gz which was not working until now.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core: Improve grammar in README and loader comments
Randy MacLeod [Fri, 2 Jun 2017 19:42:46 +0000 (15:42 -0400)]
oeqa/core: Improve grammar in README and loader comments

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: Upgrade to 1.8.3
Khem Raj [Fri, 2 Jun 2017 19:34:11 +0000 (12:34 -0700)]
go: Upgrade to 1.8.3

Add a comment to fix build musl<->glibc switch while
using same TMPDIR

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocmake: Upgrade to 3.8.2
Otavio Salvador [Fri, 2 Jun 2017 18:42:43 +0000 (15:42 -0300)]
cmake: Upgrade to 3.8.2

There was a set of changes, those are:

 - CMake now requires librhash for build and as there is no other
   users in OE-Core we make it use its internal copy instead;

 - Copyright.txt checksum has change due new contrubutors and 2017
   year additions;

 - Patch avoid-gcc-warnings-with-Wstrict-prototypes.patch was removed
   as it is not need anymore;

 - Patch 0001-KWIML-tests-Remove-format-security-from-flags.patch was
   removed as it is included in this release.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodropbear: upgrade 2016.74 -> 2017.75
Dengke Du [Thu, 1 Jun 2017 09:38:42 +0000 (05:38 -0400)]
dropbear: upgrade 2016.74 -> 2017.75

Drop patch support-out-of-tree-builds.patch:

    Because the upstream has already contain it.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoxkeyboard-config: Upgrade 2.20 -> 2.21
Jussi Kukkonen [Thu, 1 Jun 2017 10:36:55 +0000 (13:36 +0300)]
xkeyboard-config: Upgrade 2.20 -> 2.21

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoxkbcomp: Upgrade 1.3.1 -> 1.4.0
Jussi Kukkonen [Thu, 1 Jun 2017 10:36:54 +0000 (13:36 +0300)]
xkbcomp: Upgrade 1.3.1 -> 1.4.0

Release with a small amount of bug fixes.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoxserver-xorg: Upgrade 1.19.1 -> 1.19.3
Jussi Kukkonen [Thu, 1 Jun 2017 10:36:53 +0000 (13:36 +0300)]
xserver-xorg: Upgrade 1.19.1 -> 1.19.3

Bug fix releases.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoxf86-input-libinput: Upgrade 0.24.0 -> 0.25.1
Jussi Kukkonen [Thu, 1 Jun 2017 10:36:52 +0000 (13:36 +0300)]
xf86-input-libinput: Upgrade 0.24.0 -> 0.25.1

Small releases with just a few fixes.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclutter-gst-3.0: Upgrade 3.0.22 -> 3.0.24
Jussi Kukkonen [Thu, 1 Jun 2017 10:36:51 +0000 (13:36 +0300)]
clutter-gst-3.0: Upgrade 3.0.22 -> 3.0.24

Very small release with only bug fixes.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclutter-1.0: Upgrade 1.26.0 -> 1.26.2
Jussi Kukkonen [Thu, 1 Jun 2017 10:36:50 +0000 (13:36 +0300)]
clutter-1.0: Upgrade 1.26.0 -> 1.26.2

Mostly bug fixes in this release.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibevdev: Upgrade 1.5.6 -> 1.5.7
Jussi Kukkonen [Thu, 1 Jun 2017 10:36:49 +0000 (13:36 +0300)]
libevdev: Upgrade 1.5.6 -> 1.5.7

Small release with mostly build system fixes.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovte: Upgrade 0.46.1 -> 0.48.3
Jussi Kukkonen [Thu, 1 Jun 2017 10:36:46 +0000 (13:36 +0300)]
vte: Upgrade 0.46.1 -> 0.48.3

Depend on gperf-native: The tarball used to include files generated
with gperf and this is no longer the case.
Use GIR_EXTRA_LIBS_PATH to fix introspection generation.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: upgrade to 17.1.1
Nicolas Dechesne [Thu, 1 Jun 2017 10:29:45 +0000 (12:29 +0200)]
mesa: upgrade to 17.1.1

* Costmetic changes in license.html file required new MD5 hash
* Add PACKAGECONFIG option for libunwind support (new feature, disable by default)
* Rebased 0001-Use-wayland-scanner-in-the-path.patch
* Added zlib in DEPENDS, otherwise mesa no longer builds.
* Added 0001-util-rand_xor-add-missing-include-statements.patch, sent upstream

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agojson-glib: upgrade 1.2.2 -> 1.2.8
Dengke Du [Thu, 1 Jun 2017 09:38:41 +0000 (05:38 -0400)]
json-glib: upgrade 1.2.2 -> 1.2.8

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibatomic-ops: Upgrade to 7.6.0
Khem Raj [Tue, 30 May 2017 17:15:23 +0000 (10:15 -0700)]
libatomic-ops: Upgrade to 7.6.0

Can compile in thumb1 and thumb2 modes now
AO_THUMB_GO_ARM, AO_THUMB_RESTORE_MODE are used
to guard swp instructions

Switch to github and use git for src_uri

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopkgconfig: upgrade 0.29.1 -> 0.29.2
Maxin B. John [Wed, 31 May 2017 11:39:36 +0000 (14:39 +0300)]
pkgconfig: upgrade 0.29.1 -> 0.29.2

Remove backported patch:
1. 0001-gdate-Move-warning-pragma-outside-of-function.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtasn1: upgrade 4.10 -> 4.12
Maxin B. John [Wed, 31 May 2017 11:39:35 +0000 (14:39 +0300)]
libtasn1: upgrade 4.10 -> 4.12

Noteworthy changes:

1. Introduced the ASN1_TIME_ENCODING_ERROR error code to indicate an invalid
encoding in the DER time fields.
2. Introduced flag ASN1_DECODE_FLAG_ALLOW_INCORRECT_TIME. This flag allows
decoding errors in time fields even when in strict DER mode.
3. Added safety check in asn1_find_node(). That prevents a crash when a very
long variable name is provided by the developer.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosqlite3: upgrade 3.18.0 -> 3.19.2
Maxin B. John [Wed, 31 May 2017 11:39:34 +0000 (14:39 +0300)]
sqlite3: upgrade 3.18.0 -> 3.19.2

Bug fixes:
1. Fix a problem in REPLACE that can result in a corrupt database
containing two or more rows with the same rowid.
2. Fix a problem in PRAGMA integrity_check that was causing a subsequent
VACUUM to behave suboptimally.
3. Fix the PRAGMA foreign_key_check command so that it works correctly with
foreign keys on WITHOUT ROWID tables.
4. Disallow leading zeros in numeric constants in JSON.
5. Disallow control characters inside of strings in JSON.
6. Limit the depth of recursion for JSON objects and arrays in order to
avoid excess stack usage in the recursive descent parser.
7. Fix more bugs in the LEFT JOIN flattening optimization.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agognome-themes-standard: Upgrade 3.22.2 -> 3.22.3
Jussi Kukkonen [Wed, 31 May 2017 11:23:19 +0000 (14:23 +0300)]
gnome-themes-standard: Upgrade 3.22.2 -> 3.22.3

Just a few bug fixes.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogtk+3: Upgrade 3.22.8 -> 3.22.15
Jussi Kukkonen [Wed, 31 May 2017 11:23:18 +0000 (14:23 +0300)]
gtk+3: Upgrade 3.22.8 -> 3.22.15

A fairly large amount of fixes in these point upgrades.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibrsvg: Upgrade 2.40.16 -> 2.40.17
Jussi Kukkonen [Wed, 31 May 2017 11:23:17 +0000 (14:23 +0300)]
librsvg: Upgrade 2.40.16 -> 2.40.17

Small update with mostly bug fixes.

Add a desktop file for rsvg thumbnailing (it points to
gdk-pixbuf-thumbnailer so there's no binary added).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibepoxy: Upgrade 1.4.1 -> 1.4.2
Jussi Kukkonen [Wed, 31 May 2017 11:23:16 +0000 (14:23 +0300)]
libepoxy: Upgrade 1.4.1 -> 1.4.2

Mostly a bug fix release

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoadwaita-icon-theme: Upgrade 3.22.0 -> 3.24.0
Jussi Kukkonen [Wed, 31 May 2017 11:23:15 +0000 (14:23 +0300)]
adwaita-icon-theme: Upgrade 3.22.0 -> 3.24.0

Add patch to fix allarch-build by removing a useless AC_CANONICAL_HOST.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoat-spi2-atk: Upgrade 2.24.0 -> 2.24.1
Jussi Kukkonen [Wed, 31 May 2017 11:23:14 +0000 (14:23 +0300)]
at-spi2-atk: Upgrade 2.24.0 -> 2.24.1

Tiny bug fix upgrade.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoatk-spi2-core: Upgrade 2.24.0 -> 2.24.1
Jussi Kukkonen [Wed, 31 May 2017 11:23:13 +0000 (14:23 +0300)]
atk-spi2-core: Upgrade 2.24.0 -> 2.24.1

Tiny bugfix upgrade.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoatk: Upgrade 2.22 -> 2.24
Jussi Kukkonen [Wed, 31 May 2017 11:23:12 +0000 (14:23 +0300)]
atk: Upgrade 2.22 -> 2.24

Bug fix update.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibsoup-2.4: Upgrade 2.56.0 -> 2.58.1
Jussi Kukkonen [Wed, 31 May 2017 11:23:11 +0000 (14:23 +0300)]
libsoup-2.4: Upgrade 2.56.0 -> 2.58.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglib-2.0: Upgrade 2.50.3 -> 2.52.2
Jussi Kukkonen [Wed, 31 May 2017 11:23:10 +0000 (14:23 +0300)]
glib-2.0: Upgrade 2.50.3 -> 2.52.2

Remove upstreamed patches (thanks Ross).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc: Configure with extra hardening options
Khem Raj [Fri, 26 May 2017 16:15:01 +0000 (09:15 -0700)]
glibc: Configure with extra hardening options

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agonfs-utils: Fix build error due to missing stdint.h> include
Khem Raj [Fri, 26 May 2017 16:15:00 +0000 (09:15 -0700)]
nfs-utils: Fix build error due to missing stdint.h> include

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokconfig-frontends: fix another build race
Ross Burton [Fri, 26 May 2017 16:12:58 +0000 (17:12 +0100)]
kconfig-frontends: fix another build race

It is possible that frontends/kconfig is written to by sed before frontends/
exists, so add a mkdir to ensure the directory always exits.

[ YOCTO #11574 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agostart_getty: Over added SERIAL_CONSOLE cause error in userspace log
Choong YinThong [Fri, 14 Apr 2017 00:26:39 +0000 (17:26 -0700)]
start_getty: Over added SERIAL_CONSOLE cause error in userspace log

Error log will be logged into /var/log/message.
Added in more condition checking on the script. Check
/proc/tty/drivers and /proc/tty/driver/*
file system to retrieve active targeted serial.
Only establish getty with active serial in runtime.

[YOCTO #10844]

Reviewed-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscripts: Fix return value checks from subprocess.call()'s
Mikko Rapeli [Thu, 1 Jun 2017 15:52:59 +0000 (18:52 +0300)]
scripts: Fix return value checks from subprocess.call()'s

Python function subprocess.call() returns the return value of the
executed process. If return values are not checked, errors may
go unnoticed and bad things can happen.

Change all callers of subprocess.call() which do not check for
the return value to use subprocess.check_call() which raises
CalledProcessError if the subprocess returns with non-zero value.

https://docs.python.org/2/library/subprocess.html#using-the-subprocess-module

All users of the function were found with:

$ git grep "subprocess\.call" | \
  egrep -v 'if.*subprocess\.call|=\ +subprocess\.call|return.*subprocess\.call'

Tested similar patch on top of yocto jethro. Only compile tested
core-image-minimal on poky master branch.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoisoimage-isohybrid: don't use TRANSLATED_TARGET_ARCH
Ed Bartosh [Wed, 17 May 2017 12:49:12 +0000 (12:49 +0000)]
isoimage-isohybrid: don't use TRANSLATED_TARGET_ARCH

isoimage-isohybrid plugin fails with this error when
trying to find initrd image:
    initrd = glob.glob('%s/%s*%s.%s' % (initrd_dir, image_name, target_arch, image_type))[0]
    IndexError: list index out of range
as it uses TRANSLATED_TARGET_ARCH value as part of the image.
This approach stopped to work due to changes in oe core code.

initrd file name is made using MACHINE variable. wic can't get value
of this variable as it's not included into bitbake -e output.

Used basename of deploy dir as MACHINE value to fix the breakage.

(From OE-Core rev: cfbb3cc1279ea88ca3e2867f8a409c5120aa1f05)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoinsane.bbclass: fix override handling in RDEPENDS QA
Gan, Yau Wai [Thu, 1 Jun 2017 00:24:39 +0000 (17:24 -0700)]
insane.bbclass: fix override handling in RDEPENDS QA

The package_qa_check_rdepends() in insane.bbclass has
incorrectly replace its localdata OVERRIDES value with
the package name. Fixing it by appending the package name
to the existing OVERRIDES value. This resolves RDEPENDS QA
error when setting PACKAGECONFIG using a pn- override at
local.conf.

[YOCTO #11374]

Signed-off-by: Gan, Yau Wai <yau.wai.gan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: deploy-target: Let script continue even if rm fails
Daniel Lublin [Tue, 30 May 2017 11:17:59 +0000 (13:17 +0200)]
devtool: deploy-target: Let script continue even if rm fails

The remote script is run with `set -e`, so doing rm without -f on a
$file that is already gone will exit the whole script, failing any
redeployment. Assume a use case where packages sometimes produces
certain test binaries stored on volatile media (tmpfs), and where the
system is occasionally rebooted.

Signed-off-by: Daniel Lublin <daniel@lublin.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: Compare abspath of both B and S
Ola x Nilsson [Tue, 30 May 2017 10:16:31 +0000 (12:16 +0200)]
devtool: Compare abspath of both B and S

Either both or none of the paths must be passed through
os.path.abspath or things like 'A//B', 'A/./B/', and 'A/B/' in S will
cause unintentional mismatches even when B = "${S}".

Using os.path.abspath for both seems more likely to be correct as that
will also handle the case where ${B} != ${S} but the abspaths are
equal.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool: deploy-target: Don't use find -exec
Daniel Lublin [Wed, 31 May 2017 06:02:20 +0000 (08:02 +0200)]
devtool: deploy-target: Don't use find -exec

find may be provided by busybox, which might be compiled without support
for -exec.

Signed-off-by: Daniel Lublin <daniel@lublin.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoclasses/buildhistory: make a single commit per build
Paul Eggleton [Thu, 1 Jun 2017 01:42:25 +0000 (13:42 +1200)]
classes/buildhistory: make a single commit per build

Way back in OE-Core commit fba198ac7efe476a25c5761878ef2fcee97bf9f1 in
2012 we split committing to the repository, making a commit per
top-level directory. However, as we add more information it becomes
harder to see which commits belong to which build. Switch back to a
single commit per build to keep the history tidier.

To address the original concern, if you do want to see just the changes
for a particular subdirectory, git can filter that for you - just
specify that subdirectory as the last parameter on the git show / git
diff command line and that's all you will see.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoarchiver: Escape recipe name in regex
Joshua Watt [Wed, 31 May 2017 12:42:37 +0000 (07:42 -0500)]
archiver: Escape recipe name in regex

The recipe name needs to be escaped when using it in a regular expression so
that and special characters are treated literally

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL
Jonathan Liu [Thu, 1 Jun 2017 12:15:52 +0000 (22:15 +1000)]
bitbake.conf: Add sdl-config to HOSTTOOLS if using host SDL

If ASSUME_PROVIDES contains libsdl-native, we need to add sdl-config
to HOSTTOOLS to allow access to the host sdl-config.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agooeqa/core/context: Include a _pre_run method
Leonardo Sandoval [Fri, 26 May 2017 20:37:53 +0000 (15:37 -0500)]
oeqa/core/context: Include a _pre_run method

This pre runner will serve to allow Test components executes code
previously of the run a suite.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/context: Omit docstring output on XMLResult
Leonardo Sandoval [Fri, 26 May 2017 20:37:52 +0000 (15:37 -0500)]
oeqa/core/context: Omit docstring output on XMLResult

By default, the xml runner class prints out the docstring for every
unit test but it order to keep the same format as the standard
runner, avoid docstring output setting descriptions to False.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/context: Use a default iterable modules object
Leonardo Sandoval [Fri, 26 May 2017 20:37:51 +0000 (15:37 -0500)]
oeqa/core/context: Use a default iterable modules object

The OETestLoader.modules must be an iterable object, otherwise
checking presence of specific modules with the 'in' operator fails
with the following command/error:

    % oe-test core
    .. - core - INFO - Running bitbake -p
    Traceback (most recent call last):
      File "..poky2/scripts/oe-test", line 108, in <module>
        ret = main()
      File "..poky2/scripts/oe-test", line 93, in main
        results = args.func(logger, args)
      File "..poky2/meta/lib/oeqa/core/context.py", line 235, in run
        self.tc.loadTests(self.module_paths, **self.tc_kwargs['load'])
      File "..poky2/meta/lib/oeqa/core/context.py", line 53, in loadTests
        self.suites = self.loader.discover()
      File "..poky2/meta/lib/oeqa/core/loader.py", line 204, in discover
        pattern='*.py', top_level_dir=path)
      File "/usr/lib64/python3.4/unittest/loader.py", line 275, in discover
        tests = list(self._find_tests(start_dir, pattern))
      File "/usr/lib64/python3.4/unittest/loader.py", line 339, in _find_tests
        yield self.loadTestsFromModule(module)
      File "..poky2/meta/lib/oeqa/core/loader.py", line 266, in loadTestsFromModule
        and module.__name__ in self.modules \
    TypeError: argument of type 'NoneType' is not iterable

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/context: Raise exception when a manifest is specified but missing
Leonardo Sandoval [Fri, 26 May 2017 20:37:50 +0000 (15:37 -0500)]
oeqa/core/context: Raise exception when a manifest is specified but missing

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/case: fix typo on comment about exception name
Leonardo Sandoval [Fri, 26 May 2017 20:37:49 +0000 (15:37 -0500)]
oeqa/core/case: fix typo on comment about exception name

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/README: Improve documentation
Leonardo Sandoval [Fri, 26 May 2017 20:37:48 +0000 (15:37 -0500)]
oeqa/core/README: Improve documentation

Most of the text include on this text refactor came from [1].

[1] http://lists.openembedded.org/pipermail/openembedded-architecture/2016-December/000351.html

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/runtime/case: Don't use OEQA framework internal methods
Aníbal Limón [Fri, 26 May 2017 20:37:47 +0000 (15:37 -0500)]
oeqa/runtime/case: Don't use OEQA framework internal methods

The OEQA framework has internal methods for provide functionality
in decorators so Test components aren't expected to override it.

Use the base unittest methods for setUp and tearDown.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoclasses/test{export,images}: Change modules to list
Aníbal Limón [Fri, 26 May 2017 20:37:46 +0000 (15:37 -0500)]
classes/test{export,images}: Change modules to list

With the new filters by <module>.[class].[testname] the modules
arg is expected to be a list so use split into TEST_SUITES variable.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core: Add support for run tests by module, class and name
Aníbal Limón [Fri, 26 May 2017 20:37:45 +0000 (15:37 -0500)]
oeqa/core: Add support for run tests by module, class and name

This will enable only run certain module tests and filter by
class and test name.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core: Add list tests support in context and runner
Aníbal Limón [Fri, 26 May 2017 20:37:44 +0000 (15:37 -0500)]
oeqa/core: Add list tests support in context and runner

A common operation is to list tests, currently only selftest
support it, this changes enables this functionality into the
core framework.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/sdk: Enable usage of OEQA thread mode
Aníbal Limón [Fri, 26 May 2017 20:37:43 +0000 (15:37 -0500)]
oeqa/sdk: Enable usage of OEQA thread mode

oeqa/sdk/context.py - Use OETestContextThreaded.
classes/testsdk.bbclass - Enable bb event thread mode to avoid
corrupt the PIPE when multiple threads writes.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/tests: Add tests of OEQA Threaded mode
Aníbal Limón [Fri, 26 May 2017 20:37:41 +0000 (15:37 -0500)]
oeqa/core/tests: Add tests of OEQA Threaded mode

Add needed tests to validate the OEQA Threaded mode, the remaining
parts are tested by the OEQA without Threaded mode.

- test_loader.py: Add a test to validate rules when creating the
list of test suites.
- test_decorators.py: Add oetimeout test because the threaded mode
uses Timer instead of signal.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/sdkext/cases: Move sdk_update test into devtool module
Aníbal Limón [Fri, 26 May 2017 20:37:42 +0000 (15:37 -0500)]
oeqa/sdkext/cases: Move sdk_update test into devtool module

With the new OEQA thread support there are problems running
devtool twice at the same time because only one instance of
bitbake/devtool is allowed.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/decorator/oetimeout: Add support for OEQA threaded mode
Aníbal Limón [Fri, 26 May 2017 20:37:40 +0000 (15:37 -0500)]
oeqa/core/decorator/oetimeout: Add support for OEQA threaded mode

In python signals are only allowed to delivery into the main thread,
to support the threading mode test if the runner is threaded and
use threading.Timer instead.

There are some considerations like SIGALRM interrupts the execution
after N seconds but the Timer only starts a Thread to notice the
timeout and the exception will be raised when the test run ends.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/decorator/depends: Add support for threading mode
Aníbal Limón [Fri, 26 May 2017 20:37:39 +0000 (15:37 -0500)]
oeqa/core/decorator/depends: Add support for threading mode

The _skipTestDependency needs to know if the thread mode is
enabled because the _results are by thread.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/threaded: Add OETestContextThreaded class
Aníbal Limón [Fri, 26 May 2017 20:37:38 +0000 (15:37 -0500)]
oeqa/core/threaded: Add OETestContextThreaded class

This class sets the {loader,runner}Class to the threaded versions and
overrides loadTests method to be able specify the process_num.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/threaded: Add support of OETestRunnerThreaded
Aníbal Limón [Fri, 26 May 2017 20:37:37 +0000 (15:37 -0500)]
oeqa/core/threaded: Add support of OETestRunnerThreaded

The OETestRunnerThreaded overrides the run method of OETestRunner
it recieves a list of suites to be executed by a ThreadPool.

The new run method handles the ThreadPool creation and the
OETestResultThreaded fill.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/threaded: Add OETestResultThreaded{,Internal} classes
Aníbal Limón [Fri, 26 May 2017 20:37:36 +0000 (15:37 -0500)]
oeqa/core/threaded: Add OETestResultThreaded{,Internal} classes

The OETestResultThreadedInternal extends OETestResult to stores
results by Thread.

The OETestResultThreaded is a simple class that provides the
implementation of interfaces needed by outside like wasSuccesful,
stop, logSummary, logDetails.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/runner: OETestResult add internal _tc_map_results
Aníbal Limón [Fri, 26 May 2017 20:37:35 +0000 (15:37 -0500)]
oeqa/core/runner: OETestResult add internal _tc_map_results

This method is to assign results into the TestContext, create
an internal one to support change implementation in Thread version.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/threaded: Add OEStreamLoggerThreaded class
Aníbal Limón [Fri, 26 May 2017 20:37:34 +0000 (15:37 -0500)]
oeqa/core/threaded: Add OEStreamLoggerThreaded class

The OEStreamLoggerThreaded overrides OEStreamLogger to redirect
the PyUnit output to a logger.

Instead of log every line when comes the OEStreamLoggerThreaded
will buffer the PyUnit output and write everything at end of every
suite execution to don't have mixed suite outputs.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/threaded: Add new module with OETestLoaderThreaded
Aníbal Limón [Fri, 26 May 2017 20:37:33 +0000 (15:37 -0500)]
oeqa/core/threaded: Add new module with OETestLoaderThreaded

The threded module will implement Thread support into the OEQA
framework.

The OETestLoaderThreaded overrides discover to return a list of
suites every suite will be run by a separate Thread.

Some design considerations are:

- All the tests of a certain module needs to be run at one thread
  because unittest framework needs to keep track of setUp{Module,
Class,} and tearDown{Module, Class,}.

- Tests that depends on other needs to be run at the same thread
because OEQA framework look at the status of dependant test to
decide if skip or not, this constraint can be change in the future
but a sync mechanishm is needed to implement between the Threads.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core: Move OETestContext.log{Summary, Details} into OETestResult
Aníbal Limón [Fri, 26 May 2017 20:37:32 +0000 (15:37 -0500)]
oeqa/core: Move OETestContext.log{Summary, Details} into OETestResult

Those methods are used to write in the log the results so
it makes sense to have defined at OETestResult because
is a format of the result itself.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/runner: OETestResult remove unneeded override of startTest
Aníbal Limón [Fri, 26 May 2017 20:37:31 +0000 (15:37 -0500)]
oeqa/core/runner: OETestResult remove unneeded override of startTest

I override this method before for keep track of results and forget
to remove it, now isn't need.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core: Don't expose OEStreamLogger in OETestContext
Aníbal Limón [Fri, 26 May 2017 20:37:30 +0000 (15:37 -0500)]
oeqa/core: Don't expose OEStreamLogger in OETestContext

The OEStreamLogger class is used for redirect PyUnit output
to a certain logger so there is not need to expose at level
of OETestContext because only OETestRunner needs to know.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/sdk/context.py: Add return to OESDKTestContext.run() method
Aníbal Limón [Fri, 26 May 2017 20:37:29 +0000 (15:37 -0500)]
oeqa/sdk/context.py: Add return to OESDKTestContext.run() method

The run() methods of a OETestContext's are expected to return the
results.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/sdk/context.py: Import argparse_oe at OESDKTestContext.run method
Aníbal Limón [Fri, 26 May 2017 20:37:28 +0000 (15:37 -0500)]
oeqa/sdk/context.py: Import argparse_oe at OESDKTestContext.run method

This import was at level of OESDKTestContext.register_commands
but OESDKTestContext.run method need it to raise exceptions.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agotestsdk.bbclass: Remove unused import of OEStreamLogger
Aníbal Limón [Fri, 26 May 2017 20:37:27 +0000 (15:37 -0500)]
testsdk.bbclass: Remove unused import of OEStreamLogger

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agotune-mips32*.inc: use consistent comments across all three .inc files
Andre McCurdy [Thu, 25 May 2017 19:50:01 +0000 (12:50 -0700)]
tune-mips32*.inc: use consistent comments across all three .inc files

No functional changes, just use a consistent set of comments to
separate hard and soft float tuning options.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agounfs3: Rename mirror tarball to avoid clash
Choong YinThong [Thu, 25 May 2017 16:54:43 +0000 (09:54 -0700)]
unfs3: Rename mirror tarball to avoid clash

Rename the mirror tarball to align with recipe name
and avoid clash if user have local svn version.

[YOCTO #11501]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopango: 1.40.3 -> 1.40.6
Huang Qiyu [Fri, 26 May 2017 02:04:15 +0000 (10:04 +0800)]
pango: 1.40.3 -> 1.40.6

Upgrade pango from 1.40.3 to 1.40.6.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agonss: Upgrade 3.29.1 to 3.30.2
Fan Xin [Fri, 26 May 2017 01:05:58 +0000 (10:05 +0900)]
nss: Upgrade 3.29.1 to 3.30.2

Upgrade nss from 3.29.1 to 3.30.2

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobinutils: fix CVE-2017-7210
Yuanjie Huang [Fri, 26 May 2017 02:40:41 +0000 (19:40 -0700)]
binutils: fix CVE-2017-7210

CVE: CVE-2017-7210

[BZ 21157] -- https://sourceware.org/bugzilla/show_bug.cgi?id=21157

PR binutils/21157: Fix handling of corrupt STABS enum type strings.

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobinutils: fix CVE-2017-7209 in readelf
Yuanjie Huang [Fri, 26 May 2017 02:40:40 +0000 (19:40 -0700)]
binutils: fix CVE-2017-7209 in readelf

CVE: CVE-2017-7209

[BZ 21135] -- https://sourceware.org/bugzilla/show_bug.cgi?id=21135

PR binutils/21135: Fix invalid read of section contents whilst processing
a corrupt binary.

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>