]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
7 years agolibxslt: Fix CVE-2017-5029
Fan Xin [Fri, 26 May 2017 02:39:06 +0000 (11:39 +0900)]
libxslt: Fix CVE-2017-5029

Backport upstream patch to fix CVE-2017-5029.

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomodule.bbclass: Add devshell support
Stefan Wiehler [Fri, 5 May 2017 15:01:06 +0000 (17:01 +0200)]
module.bbclass: Add devshell support

Adds development shell support for out-of-tree kernel modules by reproducing
the build environment of the compile task.

Signed-off-by: Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage_ipk: correct ipk multiline descriptions
Leonardo Sandoval [Mon, 29 May 2017 17:36:47 +0000 (10:36 -0700)]
package_ipk: correct ipk multiline descriptions

Empty descriptions lines are set with a space following by a dot and
the multiline ones require a leading space. Also, for non-empty lines,
there is no need for formating with textwrap, so remove the logic for
the latter. The documentation for multiline description was taken from [1].

[1] https://web.archive.org/web/20100727133051/http://handhelds.org:80/moin/moin.cgi/BuildingIpkgs

[YOCTO #10677]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopiglit: add patches for unbuildable surfaceless Mesa test
Daniel Díaz [Thu, 18 May 2017 18:22:37 +0000 (13:22 -0500)]
piglit: add patches for unbuildable surfaceless Mesa test

Some EGL implementations do not actually ship all Khronos-
extensions. As it turns out, the Mali 450 driver does not
include any of the following symbols, used by the
egl_mesa_platform_surfaceless.c spec test:
* eglGetPlatformDisplay
* eglCreatePlatformPixmapSurface
* eglCreatePlatformWindowSurface

The Right Thing To Do was to obtain the implementation of
these functions (via eglGetProcAddress), as is provided
by their EXT counterparts. These are guaranteed to exist
since they are required by EGL_EXT_platform_base.

Upstream-Status: Submitted [piglit@lists.freedesktop.org]

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopiglit: add patch for lack of gbm_bo_map
Daniel Díaz [Thu, 18 May 2017 18:22:36 +0000 (13:22 -0500)]
piglit: add patch for lack of gbm_bo_map

[Piglit Bug #100978] -- https://bugs.freedesktop.org/show_bug.cgi?id=100978

When linking against Mali 450 r6, errors like the following
can be seen:
  ../../../../lib/libpiglitutil_gl.so.0: undefined reference to `gbm_bo_unmap'
  ../../../../lib/libpiglitutil_gl.so.0: undefined reference to `gbm_bo_map'
  collect2: error: ld returned 1 exit status
  make[2]: *** [bin/point-sprite] Error 1

This is due to gbm_bo_map() and gbm_bo_unmap() being recently
added but not yet implemented by all graphics drivers.

Instead of relying on GBM's version, actually try to link
against those symbols.

Upstream-Status: Submitted [piglit@lists.freedesktop.org]

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopiglit: depend on virtual/egl
Daniel Díaz [Thu, 18 May 2017 18:22:35 +0000 (13:22 -0500)]
piglit: depend on virtual/egl

While building for Hikey using Mali 450 driver (r6p0), an
error like the following appears while linking:

  [  1%] Linking C shared library ../../../../lib/libpiglitutil.so
  [...]
  [...]/aarch64-linaro-linux/gcc/aarch64-linaro-linux/6.3.1/ld: cannot find -lEGL
  collect2: error: ld returned 1 exit status
  make[2]: *** [lib/libpiglitutil.so.0] Error 1

Mesa generally provides virtual/egl (along with virtual/libgl,
which satisfies Piglit's current DEPENDS) but that is not the
implementation to use with Mali.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobluez5: Upgrade 5.44 -> 5.45
Maxin B. John [Mon, 29 May 2017 14:27:43 +0000 (17:27 +0300)]
bluez5: Upgrade 5.44 -> 5.45

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agommc-utils: Upgrade to latest git version
Maxin B. John [Mon, 29 May 2017 14:27:42 +0000 (17:27 +0300)]
mmc-utils: Upgrade to latest git version

Updates in the new version:

37c86e6  : mmc-utils: Check for ext_csd_rev only once
c22a92f  : mmc-utils: feature spec  5.0+, Pre EOL information
34a954b  : mmc-utils: feature spec 5.0+, device life time estimation for MLC
           and pSLC mode

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoghostscript: CVE-2016-7977, CVE-2016-7978, CVE-2016-7979, CVE-2017-9216
Catalin Enache [Mon, 29 May 2017 11:23:08 +0000 (14:23 +0300)]
ghostscript: CVE-2016-7977, CVE-2016-7978, CVE-2016-7979, CVE-2017-9216

Ghostscript before 9.21 might allow remote attackers to bypass the SAFER
mode protection mechanism and consequently read arbitrary files via the
use of the .libfile operator in a crafted postscript document.

Use-after-free vulnerability in Ghostscript 9.20 might allow remote
attackers to execute arbitrary code via vectors related to a reference
leak in .setdevice.

Ghostscript before 9.21 might allow remote attackers to bypass the SAFER
mode protection mechanism and consequently execute arbitrary code by
leveraging type confusion in .initialize_dsc_parser.

libjbig2dec.a in Artifex jbig2dec 0.13, as used in MuPDF and Ghostscript,
has a NULL pointer dereference in the jbig2_huffman_get function in
jbig2_huffman.c. For example, the jbig2dec utility will
crash (segmentation fault) when parsing an invalid file.

References:
https://nvd.nist.gov/vuln/detail/CVE-2016-7977
https://nvd.nist.gov/vuln/detail/CVE-2016-7978
https://nvd.nist.gov/vuln/detail/CVE-2016-7979
https://nvd.nist.gov/vuln/detail/CVE-2017-9216

Upstream patches:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=8abd22010eb4db0fb1b10e430d5f5d83e015ef70
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=6f749c0c44e7b9e09737b9f29edf29925a34f0cf
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=875a0095f37626a721c7ff57d606a0f95af03913
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=3ebffb1d96ba0cacec23016eccb4047dab365853

Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibdrm: upgrade to 2.4.81
Nicolas Dechesne [Mon, 29 May 2017 09:04:46 +0000 (11:04 +0200)]
libdrm: upgrade to 2.4.81

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokmscube: upgrade version
Nicolas Dechesne [Mon, 29 May 2017 08:51:24 +0000 (10:51 +0200)]
kmscube: upgrade version

Upgrade to a more recent kmscube commit from git. Tested on DB410c and DB820c
with s/w and h/w codecs (v4l2).

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoboost: backport a regression fix for forgotten header
Dmitry Rozhkov [Mon, 15 May 2017 11:54:32 +0000 (14:54 +0300)]
boost: backport a regression fix for forgotten header

The v1.64 release has broken array serialization code with issues
reported in

https://svn.boost.org/trac/boost/ticket/12516
https://github.com/bmwcarit/meta-ros/issues/505

Backport the fix from boost::serialization's master.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobind: build with threads and update configure options
Kai Kang [Fri, 19 May 2017 08:52:46 +0000 (16:52 +0800)]
bind: build with threads and update configure options

Build without threads for bind is inherited from legacy openembedded.
All libc's support proper threading on Linux now, so enable threads
support for bind.

It is also need to disable static library build which cause package dhcp
fail to build after enable bind threads support.

Options devpoll and epoll are configured to choose most preferable
multiplex method for unix socket. The priorities are: epoll > poll >
select. When set '--enable-epoll', it just defines a var and include
header file that is available for cross compile. So use epoll for bind.

Add PACKAGECONFIG 'urandom' that could use /dev/urandom as random device.

Update file/directory ownerships to fix daemon start failure.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodhcp: build shared libraries
Kai Kang [Fri, 19 May 2017 08:52:47 +0000 (16:52 +0800)]
dhcp: build shared libraries

When enable bind threads support, it fails to compile dhcp:

| tmp/work/armv5e-poky-linux-gnueabi/bind/9.10.3-P3-r0/build/lib/isc/pthreads/../../../
| ../bind-9.10.3-P3/lib/isc/pthreads/thread.c:64: undefined reference to `pthread_create'

Enable build shared libraries for bind and dhcp to fix the build
failure. And the patch is ported from Fedora.

Add sub-package dhcp-libs to package shared libraries.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorunqemu: output qemu-system errors
Ed Bartosh [Fri, 26 May 2017 11:39:39 +0000 (14:39 +0300)]
runqemu: output qemu-system errors

Included error output from qemu-system into the runqemu error message.
Made error output more visible by printing new line before it.

[YOCTO #11542]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofreetype: 2.7.1 -> 2.8
Andrej Valek [Fri, 26 May 2017 13:25:30 +0000 (15:25 +0200)]
freetype: 2.7.1 -> 2.8

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-omx: delete broken m4 files
Ross Burton [Fri, 26 May 2017 13:37:13 +0000 (14:37 +0100)]
gstreamer1.0-omx: delete broken m4 files

These m4 files need to be deleted so that the versions in the sysroot that we've
patched are used.  Specifically, building documentation fails as the gtk-doc
checks fail.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobusybox: make SYSLOGD optionnal
Romain Perier [Sun, 28 May 2017 06:59:40 +0000 (08:59 +0200)]
busybox: make SYSLOGD optionnal

Some distros might choose another syslogd provider like rsyslogd.
update-alternative will update the link from syslogd to the right
provider. However the syslogd feature is still present and enabled
in busybox.

This commit adds a new configuration fragment to make syslogd
optionnal in busybox.

Signed-off-by: Romain Perier <romain.perier@collabora.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython3: Move config-*/Makefile from misc package to dev package
Li Zhou [Sat, 27 May 2017 09:46:16 +0000 (17:46 +0800)]
python3: Move config-*/Makefile from misc package to dev package

Move config-*/Makefile in libdir from misc package to dev package for
python3, because it is only needed in development process.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython3: Use _sysconfigdata.py to initialize distutils.sysconfig
Li Zhou [Sat, 27 May 2017 09:46:15 +0000 (17:46 +0800)]
python3: Use _sysconfigdata.py to initialize distutils.sysconfig

Porting patch from
<https://github.com/python/cpython/commit/409482251b06fe75c4ee56e85ffbb4b23d934159>
to use _sysconfigdata.py to initialize distutils.sysconfig.

This patch makes that distutils.sysconfig doesn't need config-*/Makefile
in libdir any more. Next we can move it from python3-misc to python3-dev
package.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolsof: clear setuid
Kai Kang [Sat, 27 May 2017 07:45:03 +0000 (15:45 +0800)]
lsof: clear setuid

Having 'lsof' as a +s (setuid) binary could lead to security issues if
a compromise in the binary is found.  It is better that it be -s by
default as a precaution.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agonasm: Upgrade 2.12.02 -> 2.13.01
Richard Purdie [Sat, 27 May 2017 02:00:36 +0000 (19:00 -0700)]
nasm: Upgrade 2.12.02 -> 2.13.01

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel/meta: add virtualbox configuration fragment
Bruce Ashfield [Fri, 26 May 2017 20:10:46 +0000 (16:10 -0400)]
kernel/meta: add virtualbox configuration fragment

As suggested by Khem, we can create a virtualbox configuration
fragment that helps to run XFCE under virtualization.

This can be enabled via KERNEL_FEATURES for targest that
require it, and may be enabled by default in the future.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/meta: smp: Add config X86_BIGSMP since its needed when NR_CPUS > 8
Bruce Ashfield [Fri, 26 May 2017 20:10:45 +0000 (16:10 -0400)]
linux-yocto/meta: smp: Add config X86_BIGSMP since its needed when NR_CPUS > 8

Updating the kernel meta data with the following configuration change:

  When we set NR_CPUS to something > than 8, we also need to set
  X86_BIGSMP
  according to Kconfig:

  config X86_BIGSMP
        bool "Support for big SMP systems with more than 8 CPUs"

  otherwise NR_CPU will end up being reset to 8

[YOCTO #10362]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/meta: bluetooth: Adds BT_BREDR and BT_LE, which are needed as dependencies
Bruce Ashfield [Fri, 26 May 2017 20:10:44 +0000 (16:10 -0400)]
linux-yocto/meta: bluetooth: Adds BT_BREDR and BT_LE, which are needed as dependencies

Updating the kernel meta-data to pick up a bluetooth configuration change:

  BT_LE is nedded by BT_6LOWPAN

  BT_BREDR is needed by:
  BT_RFCOMM, BT_RFCOMM_TTY (secondary),
  BT_BNEP, BT_BNEP_MC_FILTER (secondary), BNEP_PROTO_FILTER (secondary),
  BT_CMTP, BT_HIDP

[YOCTO #10425]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocryptodev-linux: update SRC_URI
Chang Rebecca Swee Fun [Fri, 26 May 2017 07:04:00 +0000 (15:04 +0800)]
cryptodev-linux: update SRC_URI

Gna! project announced that the download site from gna.org HTTP server
will soon be closing down. We have verified that the site is no longer
accessible without network proxy cache. We need to update SRC_URI to
point to new alternative (nwl.cc HTTP server) in order to avoid fetcher
issues in future.

[YOCTO #11575]

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibpcap: add native package
Kai Kang [Wed, 24 May 2017 09:33:58 +0000 (17:33 +0800)]
libpcap: add native package

Add package libpcap-native required by recipe daq-native in layer
meta-networking. And daq-native is added to fix snort start error.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobinutils: fix CVE-2017-6969 in readelf
Yuanjie Huang [Wed, 24 May 2017 09:55:17 +0000 (02:55 -0700)]
binutils: fix CVE-2017-6969 in readelf

CVE: CVE-2017-6969
[BZ 21156] -- https://sourceware.org/bugzilla/show_bug.cgi?id=21156

PR binutils/21156: Fix illegal memory accesses in readelf when
ing a corrupt binary.
PR binutils/21156: Fix another memory access error in readelf when
parsing a corrupt binary.

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomesa: 17.0.4 -> 17.0.6
Huang Qiyu [Wed, 24 May 2017 09:08:58 +0000 (17:08 +0800)]
mesa: 17.0.4 -> 17.0.6

Upgrade mesa from 17.0.4 to 17.0.6.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agorpcbind: Fix CVE-2017-8779
Fan Xin [Wed, 24 May 2017 08:10:52 +0000 (17:10 +0900)]
rpcbind: Fix CVE-2017-8779

This vulnerability is also called "rpcbomb".
Backport upstream patch to fix this vulnerability.

CVE: CVE-2017-8779

Signed-off-by: Fan Xin<fan.xin@jp.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobinutils: Fix CVE-2017-8392
Fan Xin [Wed, 24 May 2017 05:43:11 +0000 (14:43 +0900)]
binutils: Fix CVE-2017-8392

Backport upsream commit to fix CVE-2017-8392

CVE: CVE-2017-8392

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

        PR 21409, segfault in _bfd_dwarf2_find_nearest_line

        PR 21409
        * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when
        no symbols.

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoxkeyboard-config: Drop explicit dep on virtual/gettext
Khem Raj [Tue, 23 May 2017 23:47:43 +0000 (16:47 -0700)]
xkeyboard-config: Drop explicit dep on virtual/gettext

let gettext.bbclass provide the defaults they
are good for it.
What it needs it a dep on gettext-native for intltool-native
which now intltool-native expresses correctly

Helps compile when distros disable NLS

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agointltool: Adds gettext as a DEPENDS
Alejandro Hernandez [Tue, 23 May 2017 23:47:42 +0000 (16:47 -0700)]
intltool: Adds gettext as a DEPENDS

When setting USE_NLS="no" and building systemd-boot
(which DEPENDS on intltool), configure fails,
complaining about missing gettext:

configure: error: GNU gettext tools not found; required for intltool

This is caused because USE_NLS="no" makes the gettext class
add gettext-minimal-native to BASEDEPENDS instead of adding
gettext-native.

Since we still would like to set USE_NLS="no" and build systemd-boot,
we add gettext-native as a dependency to intltool-native, which makes it
available for the configure script of systemd-boot fixing the problem.

[YOCTO #11562]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-boot.bbclass: Add configuration data to secondary EFI partition
California Sullivan [Mon, 22 May 2017 17:35:01 +0000 (10:35 -0700)]
systemd-boot.bbclass: Add configuration data to secondary EFI partition

The secondary EFI partition is used when booting in EFI mode, and
without the configuration data we don't get any boot targets.

Partial fix to [YOCTO #11503].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd: Make knobs for compiler specific nn, ar, ranlib
Khem Raj [Mon, 22 May 2017 05:00:36 +0000 (22:00 -0700)]
systemd: Make knobs for compiler specific nn, ar, ranlib

These are used with LTO enabled so it has to be
compiler specific, making it weak default, makes
clang to override them when enabled.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotcmode-default: use SDK_SYS suffix instead of SDK_ARCH for binutils-crosssdk
Denys Dmytriyenko [Tue, 9 May 2017 21:58:56 +0000 (17:58 -0400)]
tcmode-default: use SDK_SYS suffix instead of SDK_ARCH for binutils-crosssdk

Commit d2eccccb70e809d482c493922f23aef4409cfd82 has changed suffixes for
all -crosssdk packages from SDK_ARCH to SDK_SYS, but missed one line with
binutils-crosssdk. This change fixes that omission.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibnsl2: Add recipe
Khem Raj [Mon, 22 May 2017 05:00:29 +0000 (22:00 -0700)]
libnsl2: Add recipe

NIS functionality has been split out into independent
library from glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomusl: Update to latest master
Khem Raj [Mon, 22 May 2017 05:00:28 +0000 (22:00 -0700)]
musl: Update to latest master

f9f686b7 have posix_spawnattr_setflags check for supported flags
77e895dc add no-op POSIX_SPAWN_USEVFORK to spawn.h
55550416 s390x: provide sigcontext struct definition
bb439bb1 implement new posix_spawn flag POSIX_SPAWN_SETSID
58e2396a remove va_arg hacks in printf core with undefined behavior
e1232f5b make ttyname[_r] return ENODEV rather than ENOENT
1a7fa5e5 fix regression in support for resolv.conf attempts option
8c44a060 fix scalbn when result is in the subnormal range
2577b1bc allow full-range file offsets to mmap on archs with 64-bit syscall args
b3751c32 fix dl_iterate_phdr in static PIE binaries
1ca59755 fix read past end of buffer in getaddrinfo backend

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodevtool/standard.py: Enable perf to be buildable
Saul Wold [Fri, 19 May 2017 23:18:46 +0000 (16:18 -0700)]
devtool/standard.py: Enable perf to be buildable

Perf is a tool build from the kernel source, which is normally available
in /work-shared/..., but when devtool is used to modify the kernel
source code, perf is not buildable since it gets an error about being unable
to add a depends to a non-exisit task do_patch.

This patch removes do_patch from the SRCTREECOVEREDTASKS and creates an empty
do_patch task to enable the VarFlags code to have someplace to attach depends
information to.

[YOCT #11120]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoqemu: Upgrade to 2.8.1.1
Aníbal Limón [Fri, 12 May 2017 16:49:59 +0000 (11:49 -0500)]
qemu: Upgrade to 2.8.1.1

Removed patch target-ppc-fix-user-mode.patch [1] already on
upstream.

[1] http://git.qemu.org/?p=qemu.git;a=history;f=linux-user/main.c;
h=65a769cf797254a86a7cf589d69e67595a9e1adb;hb=refs/heads/stable-2.8

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokmscube: add recipe
Carlos Rafael Giani [Wed, 12 Apr 2017 12:14:08 +0000 (14:14 +0200)]
kmscube: add recipe

This is a demo application that draws a three-dimensional spinning cube
using EGL on top of KMS, via Mesa's GBM library. A rough counterpart to
glxgears, it is a useful tool for BSP makers to try the 3D rendering
functionality based on EGL and OpenGL ES in a KMS environment, without
having to set up Wayland or X11.

It is also interesting for Yocto-based  projects that do not need any
windowing environment and instead render their visual output fullscreen
to KMS directly, since they can use it as a reference.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agonfs-utils: upgrade to 2.1.1
Leonardo Sandoval [Mon, 22 May 2017 18:47:02 +0000 (11:47 -0700)]
nfs-utils: upgrade to 2.1.1

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoruby: upgrade to 2.4.1
Leonardo Sandoval [Mon, 22 May 2017 18:47:01 +0000 (11:47 -0700)]
ruby: upgrade to 2.4.1

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agonspr: Fix build error due to missing stdint.h> include
Khem Raj [Mon, 22 May 2017 05:00:42 +0000 (22:00 -0700)]
nspr: 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 agolibtirpc: Fix build error due to missing stdint.h> include
Khem Raj [Mon, 22 May 2017 05:00:41 +0000 (22:00 -0700)]
libtirpc: 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 agoiproute2: Fix build error due to missing stdint.h> include
Khem Raj [Mon, 22 May 2017 05:00:39 +0000 (22:00 -0700)]
iproute2: 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 agolibgcrypt: Do not restrict to ARM ISA
Khem Raj [Mon, 22 May 2017 05:00:33 +0000 (22:00 -0700)]
libgcrypt: Do not restrict to ARM ISA

This works ok with thumb2 as well now a days
It was added in 2006
http://git.openembedded.org/openembedded/commit/?id=037b00e3d629962e8d2bc4fcc944c9ecf9a240be

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibidn: Fix hardened build with musl
Khem Raj [Mon, 22 May 2017 05:00:32 +0000 (22:00 -0700)]
libidn: Fix hardened build with musl

Re-introduce the patch that was deemed to be not needed
but it infact is still needed with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobase.py: add assertExists and assertNotExists to oeselftest
Yeoh Ee Peng [Sun, 21 May 2017 18:22:22 +0000 (11:22 -0700)]
base.py: add assertExists and assertNotExists to oeselftest

Current osselftest print confusing assertion message when using
self.assertTrue(os.path.exists(filepath)) to test file path,
example of confusing assertion message:
AssertionError: False is not true

Add the assertExists and assertNotExists to improve assertion
message and simplify coding, using selft.assertExists(filepath),
will print meaningful assertion message:
AssertionError: <filepath> does not exist

[YOCTO #11356]

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokernel: predefine KBUILD_BUILD_USER and KBUILD_BUILD_HOST
Joshua Lock [Fri, 19 May 2017 15:53:06 +0000 (16:53 +0100)]
kernel: predefine KBUILD_BUILD_USER and KBUILD_BUILD_HOST

By exporting KBUILD_BUILD_USER with a pre-defined value we improve the
reproducibility of the kernel and remove the requirement for whoami in the
HOSTTOOLS.
KBUILD_BUILD_HOST also helps improve the reproducibility of the kernel.

For more kernel reproducibility options see:
https://lwn.net/Articles/437864/

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoscriptutils: fix fetch_uri() to work with RSS
Paul Eggleton [Fri, 19 May 2017 04:11:48 +0000 (16:11 +1200)]
scriptutils: fix fetch_uri() to work with RSS

Since recipe-specific sysroots were implemented, devtool add and devtool
upgrade operations that fetch from a URL that requires native sysroot
dependencies will fail to work as there is no recipe-specific sysroot
set up for them during fetching. An example was any URL pointing to a
tarball compressed with xz, e.g. devtool upgrade on gnutls.

The most expedient way to fix this is to set up a dummy recipe-specific
sysroot to use for the fetch/unpack operations. We do this in the same
manner as bitbake -b does, so we're just taking all of the sysroot
components available and creating a sysroot from those rather than
ensuring the correct dependencies are there - this means that we're
still going to have problems if e.g. xz-native hasn't been built yet,
but that issue will be trickier to solve and is tracked separately.

Fixes [YOCTO #11474].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd: fix lz4 build
Stefan Müller-Klieser [Thu, 18 May 2017 13:25:35 +0000 (15:25 +0200)]
systemd: fix lz4 build

Updating lz4 in oe-core required back porting 3d4cf7de48a from master,
as versioning scheme changed.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-yocto/4.1: fix gcc7 compilation and v4.1.39
Bruce Ashfield [Thu, 18 May 2017 13:01:00 +0000 (09:01 -0400)]
linux-yocto/4.1: fix gcc7 compilation and v4.1.39

Porting the mainline commit, to fix gcc7 builds:

  474c90156c [give up on gcc ilog2() constant optimizations]

We also integrate the 4.1.39 -stable update to pick up additional
fixes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>