]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agooeqa/sdkext/devtool.py: Add location test to ensure that devtool is the eSDK one.
Aníbal Limón [Tue, 2 Feb 2016 22:37:36 +0000 (16:37 -0600)]
oeqa/sdkext/devtool.py: Add location test to ensure that devtool is the eSDK one.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/sdkext: Add devtool basic tests for eSDK.
Aníbal Limón [Sun, 31 Jan 2016 16:02:03 +0000 (10:02 -0600)]
oeqa/sdkext: Add devtool basic tests for eSDK.

Add simple myapp application is a C app that prints hello world
and exit.

Add devtool test for that this app to the workspace, build and
reset it.

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/oetest: Fix compatibility SDK tests using eSDK.
Aníbal Limón [Tue, 2 Feb 2016 23:08:56 +0000 (17:08 -0600)]
oeqa/oetest: Fix compatibility SDK tests using eSDK.

When run SDK tests over eSDK we need to use SDKExtTestContext
instead of SDKTestContext because if we use SDKTestContext search
for SDK manifest and depends on the SDK manifest generation so
populate_sdk needs to be executed.

Adds a compatibility mode flag to SDKExtTestContext for search tests
over sdk module instead of sdkext module and change testsdk calls
to comply with this new param.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/populate_sdk_ext: Add SDK_EXT_TARGET_MANIFEST and SDK_EXT_HOST_MANIFEST
Aníbal Limón [Sun, 31 Jan 2016 15:21:14 +0000 (09:21 -0600)]
classes/populate_sdk_ext: Add SDK_EXT_TARGET_MANIFEST and SDK_EXT_HOST_MANIFEST

Extensible SDK needs to point to the correct manifest so add
SDK_EXT_TARGET_MANIFEST and SDK_EXT_HOST_MANIFEST variables.

oeqa/oetest.py: Fix SDKExtTestContext for load the correct manifests.

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotestsdkext: Add skeleton for support Extensible SDK tests.
Aníbal Limón [Sun, 31 Jan 2016 14:45:47 +0000 (08:45 -0600)]
testsdkext: Add skeleton for support Extensible SDK tests.

oeqa/sdkext: Add module and __init__.py will contain eSDK tests.
classes/testsdk: Add support for run eSDK tests.
oeqa/oetest: Create oeSDKExtTest for now only inherit oeSDKTest,
             modified SDKExtTestContext now inherit SDKTestContext
             and set sdkext filesdir for store data fixtures.

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/testsdk: Add compatibility SDK testsuite to eSDK
Aníbal Limón [Sun, 31 Jan 2016 03:23:33 +0000 (21:23 -0600)]
classes/testsdk: Add compatibility SDK testsuite to eSDK

Extensible SDK is compatible with SDK test suite so it need
to execute the same tests over it.

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/oetest: oeSDKTest when run a command redirect env output to null
Aníbal Limón [Thu, 4 Feb 2016 22:14:26 +0000 (16:14 -0600)]
oeqa/oetest: oeSDKTest when run a command redirect env output to null

Some tests are failing because the eSDK env load script shows a help
message on the output so redirect this to /dev/null.

There was a discussion with Paul Eggleton [1], he don't want to have env
variables to change the behaviour of what the env script needs to print
so redirect the output in oeSDK.run() method. I didn't agree because
it can hides another messages like error ones and with the variable you
can control what prints or not.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2016-February/116744.html

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/testsdk: Add function run_test_context
Aníbal Limón [Sun, 31 Jan 2016 01:58:29 +0000 (19:58 -0600)]
classes/testsdk: Add function run_test_context

This helper functions will be serve as well to run extensible
sdk tests so generalize it to get function context as arg.

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooetest.py/TestContext: Move loadTests and runTests inside it.
Aníbal Limón [Sun, 31 Jan 2016 01:16:10 +0000 (19:16 -0600)]
oetest.py/TestContext: Move loadTests and runTests inside it.

Method's for loadTests and runTests make sense to define
inside TestContext because it can be different around
Image, SDK, SDKExt.

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotestimage/testsdk: Move get test suites routine inside TestContext.
Aníbal Limón [Sat, 30 Jan 2016 17:55:39 +0000 (11:55 -0600)]
testimage/testsdk: Move get test suites routine inside TestContext.

In order to provide better abstraction move functions to get the test
suite inside the TestContext.

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotestimage/testsdk: Modularize TestContext.
Aníbal Limón [Sat, 30 Jan 2016 17:05:15 +0000 (11:05 -0600)]
testimage/testsdk: Modularize TestContext.

Move anonymous duplicated class TestContext from testimage/testsdk to
oeqa/oetest now we have two new classes ImageTestContext and
SDKTestContext with common code in TestContext class.

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoolchain-shar-extract.sh: Add proxy variable to new env.
Aníbal Limón [Thu, 28 Jan 2016 22:49:34 +0000 (16:49 -0600)]
toolchain-shar-extract.sh: Add proxy variable to new env.

Extensible SDK needs to do network operations so add proxies to
environment.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/testsdk: Add call to export_proxies on testsdkext.
Aníbal Limón [Thu, 28 Jan 2016 22:48:27 +0000 (16:48 -0600)]
classes/testsdk: Add call to export_proxies on testsdkext.

Extensible SDK needs to use network and some networks requires
proxies then export it.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/testsdk: Add testsdkext task only install.
Aníbal Limón [Thu, 28 Jan 2016 21:42:47 +0000 (15:42 -0600)]
classes/testsdk: Add testsdkext task only install.

Add task for test extensible sdk for now only install the SDK.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoget_test_suites: Add sdkext type for load test suites.
Aníbal Limón [Thu, 28 Jan 2016 21:40:13 +0000 (15:40 -0600)]
get_test_suites: Add sdkext type for load test suites.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopopulate_sdk_ext: Set TOOLCHAINEXT_OUTPUTNAME.
Aníbal Limón [Thu, 28 Jan 2016 21:18:20 +0000 (15:18 -0600)]
populate_sdk_ext: Set TOOLCHAINEXT_OUTPUTNAME.

This variable is needed by testextsdk to known the name of extensible
sdk file generated.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/testimage: Add defeault inherit for testsdk.
Aníbal Limón [Thu, 28 Jan 2016 16:18:11 +0000 (10:18 -0600)]
classes/testimage: Add defeault inherit for testsdk.

For compatibility adds default inherit of the new class testsdk
for now, we need to review the code base.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/testsdk: Add new class testsdk.
Aníbal Limón [Thu, 28 Jan 2016 16:09:02 +0000 (10:09 -0600)]
classes/testsdk: Add new class testsdk.

Moves all the testsdk code from testimage in order to have it's own
class because new tests will be added for extensible SDK.

The old paths for store logs "${WORKDIR}/testimage" and sdk
"${WORKDIR}/testimage-sdk" was maintained for compatibility may be
change to point testsdk after review the codebase.

The dependency of QEMU was removed because isn't needed.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotestimage: Modularize helper functions for get test lists.
Aníbal Limón [Thu, 28 Jan 2016 15:46:25 +0000 (09:46 -0600)]
testimage: Modularize helper functions for get test lists.

Test lists functions can be used in other parts so modularize it and
move to oeqa/oetest.py library.

Testimage class was updated to meet the new sign of the functions.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobitbake.conf/base: Improve handling of SRCPV
Richard Purdie [Tue, 2 Feb 2016 14:10:46 +0000 (14:10 +0000)]
bitbake.conf/base: Improve handling of SRCPV

If SRCPV is set, it can be expanded when SRC_URI doesn't support it
leading to errors. Avoid doing this by setting it only when it makes
sense.

This patch depends on the bitbake python expansion patch series.

[YCOTO #7772]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa: setup bitbake logger after tinfoil.shutdown
Ed Bartosh [Wed, 10 Feb 2016 08:09:37 +0000 (10:09 +0200)]
oeqa: setup bitbake logger after tinfoil.shutdown

Bitbake logger stops working after tinfoil.shutdown removes console
handler from it. This makes bb.{error,warn,note,critical} messages
disappear from the console. Adding console handler to bitbake logger
again should fix this issue.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc-locale: fix QA warning
Armin Kuster [Sun, 31 Jan 2016 19:55:30 +0000 (11:55 -0800)]
glibc-locale: fix QA warning

WARNING: QA Issue: glibc-locale: /glibc-binary-localedata-sd-in/usr/lib/locale/sd_IN/LC_CTYPE is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

fix type
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatetests: Fix after change to sstate populate_lic SWSPEC
Richard Purdie [Sun, 7 Feb 2016 17:10:43 +0000 (17:10 +0000)]
sstatetests: Fix after change to sstate populate_lic SWSPEC

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=9fd214d2e7a931cfb46f40cb76d49aeb07af612e
changed SSTATE_SWSPEC, correctly however it did mean that some sstate files
now appear where the tests don't expect them. Filter the test results
to ignore the correct behaviour.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-base: move freetype dependency into 1.6.3 recipe
Andre McCurdy [Fri, 5 Feb 2016 21:34:56 +0000 (13:34 -0800)]
gstreamer1.0-plugins-base: move freetype dependency into 1.6.3 recipe

The dependency on freetype was dropped shortly after the 1.7.1 release
so is no longer required for the git recipe.

  http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=183610c035dd6955c9b3540b940aec50474af031

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-base_git: update to git master 1.7.1-79-g6414289
Andre McCurdy [Fri, 5 Feb 2016 21:34:55 +0000 (13:34 -0800)]
gstreamer1.0-plugins-base_git: update to git master 1.7.1-79-g6414289

Includes an important fix for:

  https://bugzilla.gnome.org/show_bug.cgi?id=760938

The fix is not a simple backport to 1.7.1, so just update to latest
version from the current git master branch.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-bad_git: avoid including <sys/poll.h> directly
Andre McCurdy [Fri, 5 Feb 2016 21:34:54 +0000 (13:34 -0800)]
gstreamer1.0-plugins-bad_git: avoid including <sys/poll.h> directly

musl libc generates warnings if <sys/poll.h> is included directly.

The warnings only cause problems for the git versions (-Werror is
turned off for GStreamer stable releases).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-good_git: avoid including <sys/poll.h> directly
Andre McCurdy [Fri, 5 Feb 2016 21:34:53 +0000 (13:34 -0800)]
gstreamer1.0-plugins-good_git: avoid including <sys/poll.h> directly

musl libc generates warnings if <sys/poll.h> is included directly.

The warnings only cause problems for the git versions (-Werror is
turned off for GStreamer stable releases).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0: avoid including <sys/poll.h> directly
Andre McCurdy [Fri, 5 Feb 2016 21:34:52 +0000 (13:34 -0800)]
gstreamer1.0: avoid including <sys/poll.h> directly

musl libc generates warnings if <sys/poll.h> is included directly.

The warnings only cause problems for the git versions (-Werror is
turned off for GStreamer stable releases), but since <sys/poll.h> can
be conviently disabled via configure let's avoid it for all versions.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogmp_4.2.1: fix build for MIPS
Andre McCurdy [Fri, 5 Feb 2016 19:56:19 +0000 (11:56 -0800)]
gmp_4.2.1: fix build for MIPS

The h asm constrain (to extract the high part of a multiplication
result) has not been recognised since gcc 4.4:

  https://gcc.gnu.org/gcc-4.4/changes.html

Drop the MIPS umul_ppmm() implementations which rely on "=h" and fall
back to the older implementations (which use explicit mfhi and mflo
instructions to move the high and low parts of the multiplication
result into their destinations).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogmp.inc: limit ARM_INSTRUCTION_SET over-rides to armv4/armv5
Andre McCurdy [Fri, 5 Feb 2016 19:56:18 +0000 (11:56 -0800)]
gmp.inc: limit ARM_INSTRUCTION_SET over-rides to armv4/armv5

The original over-ride dates back to 2008:

  http://git.openembedded.org/openembedded-core/commit/?id=b3dddcdde5d10f382f71413aad67f7ef2e2420a2

There are no obvious issues seen now when building either of the
current gmp recipes (4.2.1 or 6.1.0) in thumb2 for Cortex A15.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogmp: move BBCLASSEXTEND = "native nativesdk" from gmp.inc into 6.1.0 recipe
Andre McCurdy [Fri, 5 Feb 2016 19:56:17 +0000 (11:56 -0800)]
gmp: move BBCLASSEXTEND = "native nativesdk" from gmp.inc into 6.1.0 recipe

It's unlikely that native builds of gmp 4.2.1 (ie the last LGPLv2
version) would ever be required (and given that recent versions of gcc
require gmp >= 4.3.2, native builds of gmp 4.2.1 are unlikely to work
very well). Restrict native and nativesdk builds to gmp 6.1.0 only.

  https://gcc.gnu.org/install/prerequisites.html

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogmp: move SRC_URI out of gmp.inc + minor reformatting
Andre McCurdy [Fri, 5 Feb 2016 19:56:16 +0000 (11:56 -0800)]
gmp: move SRC_URI out of gmp.inc + minor reformatting

The base SRC_URI in gmp.inc was wrong for gmp 4.2.1 and was not being
used by gmp 6.1.0. Remove it and make each recipe responsible for
defining its own SRC_URI.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage_types.bbclass: Embed IMAGE_NAME in ubinize config file
Drew Moseley [Fri, 5 Feb 2016 17:56:20 +0000 (10:56 -0700)]
image_types.bbclass: Embed IMAGE_NAME in ubinize config file

When using the FSTYPE multiubi, make sure that each image build
has a unique config file.  Without this there is a race condition
when building multiple images in a single bitbake command which
results in errors similar to:

    ERROR: Error: The image creation script
    'blah/tmp/work/blah/core-image-base/1.0-r0/temp/create_image.multiubi' returned 1:
    iniparser: cannot open ubinize_normal.cfg
    ubinize: error!: cannot load the input ini file "ubinize_normal.cfg"
    mv: cannot stat 'ubinize_normal.cfg': No such file or directory
    WARNING: blah/tmp/work/blah/core-image-base/1.0-r0/temp/create_image.multiubi:1 exit 1 from
      mv ubinize${vname}.cfg blahtmp/deploy/images/blah/

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoolchain-scripts: drop PYTHONHOME
Christopher Larson [Fri, 5 Feb 2016 17:02:35 +0000 (10:02 -0700)]
toolchain-scripts: drop PYTHONHOME

If this is set when nativesdk-python is not installed, it will break the host
python, so it's better to handle this in python.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython: set PYTHONHOME for nativesdk
Christopher Larson [Fri, 5 Feb 2016 17:02:34 +0000 (10:02 -0700)]
python: set PYTHONHOME for nativesdk

This ensures that the nativesdk python functions correctly without needing to
set PYTHONHOME in the sdk environment setup script.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc: musl related fixes for ppc/secure-plt and gthr
Khem Raj [Wed, 3 Feb 2016 05:26:03 +0000 (21:26 -0800)]
gcc: musl related fixes for ppc/secure-plt and gthr

These issues are fixing building gcc for target, ppc issue
helps in fixing discrepency between gcc cmdline and linker cmdline

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc: Assume libssp and dl_iterate_phdr on musl
Khem Raj [Wed, 3 Feb 2016 04:36:14 +0000 (04:36 +0000)]
gcc: Assume libssp and dl_iterate_phdr on musl

gcc configure fails to set these settings correctly
on musl based builds

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags: wipe security flags for gcc/glibc and related libraries
Khem Raj [Fri, 5 Feb 2016 16:53:20 +0000 (16:53 +0000)]
security_flags: wipe security flags for gcc/glibc and related libraries

It causes a catch-22 situation where we build libssp in gcc-runtime but also
pass -fstack-protector flags which require libssp

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags: use -fstack-protector-strong
Khem Raj [Fri, 5 Feb 2016 16:52:41 +0000 (16:52 +0000)]
security_flags: use -fstack-protector-strong

This is a better version of -fstack-protector-all with reduced stack usage and
better performance yet giving same amount of coverage.  It's available in gcc
4.9 onwards.

https://outflux.net/blog/archives/2014/01/27/fstack-protector-strong/ has more
details.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags: ensure security flags only apply to target builds
Khem Raj [Fri, 5 Feb 2016 16:50:51 +0000 (16:50 +0000)]
security_flags: ensure security flags only apply to target builds

As otherwise the security flags can leak into target builds.  This can result in
flags that the host compiler doesn't support, causing build failures.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc: Fix build on musl with -fstack-protector
Khem Raj [Tue, 2 Feb 2016 18:32:49 +0000 (10:32 -0800)]
gcc: Fix build on musl with -fstack-protector

When enabling the secutity flags on musl based targets the builds fail
due to libssp(gcc-runtime) build asking to link with libssp and
libssp_nonshared.a when configuring libssp itself. This does not work
with musl since it does provide ssp implementation but not like glibc
where these libraries are separate to libc

Fix the nios2 patch with upstream status while at it and generate the
patch after applying to my tree

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoisoimage-isohybrid.py: fix cpio working directory
Ioan-Adrian Ratiu [Fri, 5 Feb 2016 13:36:57 +0000 (15:36 +0200)]
isoimage-isohybrid.py: fix cpio working directory

Take `pwd` to be <initial-dir>. The %s path is relative to it. The value
of %s is "output_folder/build". The current code works as follows:

Changing directory to %s and finding the sources (after cd'ing) to cpio
with output redirection to %s/initrd.cpio triggers the following error

"Error: exec_cmd: cd output_folder/build/INITRD && find . | cpio -o -H
newc >output_folder/build/initrd.cpio  returned '1' instead of 0"

This happens because after the cd, `pwd` is <initial-dir>/%s and by the
redirect we write the result to to <initial-dir>/%s/%s/initrd.cpio which
obviously does not exist.

Fix this by getting the sources with "find %s" instead of "cd && find ."

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoglib-2.0: use the system libpcre
Ross Burton [Fri, 5 Feb 2016 11:46:00 +0000 (11:46 +0000)]
glib-2.0: use the system libpcre

Instead of using the internal copy of libpcre, use one that we build.  Note that
this requires libpcre enables Unicode properties.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpcre: enable unicode properties by default
Ross Burton [Fri, 5 Feb 2016 11:44:00 +0000 (11:44 +0000)]
libpcre: enable unicode properties by default

Enable Unicode properties by default, as they're useful and for example GLib
needs them.  As there is an impact to code size add this as a PACKAGECONFIG so
tightly constrained environments can save space by potentially disabling them.

Also change --enable-utf8 to --enable-utf, as the former is a compatibility
option for the latter.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython3: remove optimize by default patch
Ross Burton [Fri, 5 Feb 2016 09:45:24 +0000 (09:45 +0000)]
python3: remove optimize by default patch

Python 3 resurrected the default to optimised patch, on the rationale that
embedded systems want all the performance they can get.  Unfortunately the only
impact Python "optimisation" has is to remove all asserts which can be actively
harmful, so remove this patch.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags.inc: don't do -pie for syslinux
Ross Burton [Thu, 4 Feb 2016 13:02:25 +0000 (13:02 +0000)]
security_flags.inc: don't do -pie for syslinux

  sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/5.3.0/ld:
  syslinux.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used
  when making a shared object; recompile with -fPIC

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoneon: convert to PACKAGECONFIG
Andre McCurdy [Thu, 4 Feb 2016 00:30:33 +0000 (16:30 -0800)]
neon: convert to PACKAGECONFIG

Along with the conversion to PACKAGECONFIG, drop unnecessary
dependencies on time (it's an app, not a library?) and libxml2 (neon
requires either expat or libxml2 for xml parsing, defaulting to expat
if both are available).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocross-localedef-native: add ABI breaking glibc patch
Jens Rehsack [Fri, 5 Feb 2016 10:25:40 +0000 (11:25 +0100)]
cross-localedef-native: add ABI breaking glibc patch

Add patch from commit 96b1b5c127e9e0e637aaf7948cf3330a94a5cd57 to cross-localedef-native
to avoid broken images built with ENABLE_BINARY_LOCALE_GENERATION set to 1:

    $ sh -c "export LANG=de_DE; ls -la"
    sh: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
    Aborted

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agouninative: Improve error handling
Richard Purdie [Thu, 4 Feb 2016 08:31:38 +0000 (08:31 +0000)]
uninative: Improve error handling

We need to improve the error handling here, things were breaking and
yet the user wasn't seeing the issues. We need to skip libraries as
we process the files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopatchelf: Add patch to handle large files
Richard Purdie [Thu, 4 Feb 2016 08:31:07 +0000 (08:31 +0000)]
patchelf: Add patch to handle large files

There were "maximum size exceeded" errors from patchelf when processing
qemu-native. There is an issue open for this upstream, add a patch
proposed there for this issue. "32" was increased to "64" to handle our
qemu-ppc binary.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_manager.py: fix python indentation bug (opkg)
Ioan-Adrian Ratiu [Fri, 5 Feb 2016 10:51:51 +0000 (12:51 +0200)]
package_manager.py: fix python indentation bug (opkg)

This if branch is causing the following error during do_rootfs:
"Exception: UnboundLocalError: local variable 'cfg_file' referenced
before assignment". This happends because the cfg_file variable is
defined at a deeper nesting level (just above the if branch).

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext: Make populate_sdk_ext depend on sdk_extra_conf
Randy Witt [Thu, 4 Feb 2016 20:31:45 +0000 (12:31 -0800)]
populate_sdk_ext: Make populate_sdk_ext depend on sdk_extra_conf

If a user changes sdk_extra_conf, it should cause populate_sdk_ext to
run.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext: Add support for a "minimal" type
Randy Witt [Thu, 4 Feb 2016 20:31:44 +0000 (12:31 -0800)]
populate_sdk_ext: Add support for a "minimal" type

If the user sets the SDK_EXT_TYPE variable to "minimal" then the sdk won't
contain any sstate. The sstate can come from an sstate mirror and be
installed on demand as usual.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext: Don't set sdk_update_targets in the config
Randy Witt [Thu, 4 Feb 2016 20:31:43 +0000 (12:31 -0800)]
populate_sdk_ext: Don't set sdk_update_targets in the config

sdk_update_targets isn't used by any code, so there is no reason to set
it.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-scripts.bbclass: Use PYTHONPATH instead of PYTHONHOME
Randy Witt [Thu, 4 Feb 2016 20:31:42 +0000 (12:31 -0800)]
toolchain-scripts.bbclass: Use PYTHONPATH instead of PYTHONHOME

In the extensible sdk it was originally intended that the native sstate
would always be setscened as part of the sdk installation. However, the
soon to come "minimal" sdk won't do that.

A side effect of that is that pointing PYTHONHOME at the native sysroot
within the "bitbake workspace" won't work. For now only set PYTHONPATH
instead and continue using the python that comes from buildtools.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocopy_buildsystem.py: Pass the nativelsb argument to gen-lockedsig-cache
Randy Witt [Thu, 4 Feb 2016 20:31:41 +0000 (12:31 -0800)]
copy_buildsystem.py: Pass the nativelsb argument to gen-lockedsig-cache

If the nativelsb argument is not used, then create_locked_sstate_cache()
can get collisions when moving the files from the input_sstate_cache
to the output_sstate_cache.

The specific case where this was encountered was when a "universal"
nativelsb directory already existed in the input_sstate_cache.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognome-mime-data: remove
Ross Burton [Fri, 5 Feb 2016 20:55:35 +0000 (20:55 +0000)]
gnome-mime-data: remove

gnome-mime-data is part of the GNOME 2 desktop, and the only dependency on it is
gnome-vfs which is in meta-gnome where this recipe should live.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk-theme-torturer: remove from oe-core
Ross Burton [Fri, 5 Feb 2016 20:50:34 +0000 (20:50 +0000)]
gtk-theme-torturer: remove from oe-core

This recipe is very old, unmaintained, not used at all in OE-Core, and not
useful in a world that has moved to GTK+ 3 (even if Sato is slow at catching
up).

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopenssl.inc: drop obsolete mtx-1 and mtx-2 over-rides
Andre McCurdy [Fri, 5 Feb 2016 23:00:21 +0000 (15:00 -0800)]
openssl.inc: drop obsolete mtx-1 and mtx-2 over-rides

Machine specific over-rides for mtx-1 (aka MeshCube) and
mtx-2 (aka SurfBox 2nd generation) don't belong in oe-core.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/devtool: Add getVarFlag expand argument
Richard Purdie [Sat, 6 Feb 2016 22:47:55 +0000 (22:47 +0000)]
scripts/devtool: Add getVarFlag expand argument

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf/native/nativesdk: Set PKG_CONFIG_SYSTEM_ at top level
Richard Purdie [Sat, 6 Feb 2016 12:30:02 +0000 (12:30 +0000)]
bitbake.conf/native/nativesdk: Set PKG_CONFIG_SYSTEM_ at top level

Setting PKG_CONFIG_SYSTEM_{HEADERS/INCLUDE}_PATH for nativesdk isn't
enough, we also need to deal with multlib cases where libdir from
pkg-config-native isn't correct. Native builds are about the only
case where this variable shouldn't be set.

Therefore move the code from nativesdk to bitbake.conf and unexport it
in the native case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopango: unset LDFLAGS when building gen_all_unicode
Ross Burton [Thu, 4 Feb 2016 16:29:53 +0000 (16:29 +0000)]
pango: unset LDFLAGS when building gen_all_unicode

When building the native gen_all_unicode binary we need to also unset LDFLAGS as
otherwise the *target* LDFLAGS will be used.  At best the options are harmless
but if there are options that the host compiler doesn't support then the compile
will fail.  For example, if the host gcc is version 4.8 but LDFLAGS contains
-fstack-protector-strong which in 4.9 onwards.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopango: merge bb and inc
Ross Burton [Thu, 4 Feb 2016 10:42:33 +0000 (10:42 +0000)]
pango: merge bb and inc

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoe2fsprogs: Ensure we use the right mke2fs.conf when restoring from sstate
Richard Purdie [Fri, 5 Feb 2016 10:52:39 +0000 (10:52 +0000)]
e2fsprogs: Ensure we use the right mke2fs.conf when restoring from sstate

If we don't do this, we can use an mke2fs.conf from a different path which
may contain incompatible flags and lead to obtuse build failures such as:

Invalid filesystem option set: has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize

To fix this, wrap the mke2fs binary and its hardlinks and point at the
correct configuration file.

In particular this fixes conflicts between master and jethro builds
affecting the main autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonativesdk: Set PKG_CONFIG_SYSTEM_ variables
Richard Purdie [Fri, 5 Feb 2016 10:51:32 +0000 (10:51 +0000)]
nativesdk: Set PKG_CONFIG_SYSTEM_ variables

When building nativesdk recipes, we noticed paths going into .pc files
which should have been suppressed since these were standard library
search paths. pkgconfig-native sets these variables to sane values
for native recipes, we need it set to values for our specific library
paths in the nativesdk case.

Setting these values cleans up the .pc files and suppresses the paths.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolocal.conf.sample.extended: Document HOW-TO enable systemd or busbox for init system
Khem Raj [Fri, 22 Jan 2016 20:45:03 +0000 (20:45 +0000)]
local.conf.sample.extended: Document HOW-TO enable systemd or busbox for init system

OE core provides systemd,busybox as options for system init system along
with sysvinit being the default. Document the needed settings to enable
systemd and busybox as options if user wishes.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolocal.conf.sample: Remove trailing whitespaces
Khem Raj [Fri, 22 Jan 2016 20:45:03 +0000 (20:45 +0000)]
local.conf.sample: Remove trailing whitespaces

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: Fix populate_sysroot sanity test path
Richard Purdie [Thu, 4 Feb 2016 12:38:50 +0000 (12:38 +0000)]
insane: Fix populate_sysroot sanity test path

This was correct for native/cross paths but not for target ones which
meant the tests weren't running in some cases. Fix the path to be
correct in both cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosocat: upgrade to 1.7.3.1
Ross Burton [Thu, 4 Feb 2016 16:22:52 +0000 (16:22 +0000)]
socat: upgrade to 1.7.3.1

This fixes Socat Security Advisory 7 (MSVR-1499) and 8.

[ YOCTO #9024 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibffi: move from recipes-gnome to recipes-support
Ross Burton [Thu, 4 Feb 2016 16:22:51 +0000 (16:22 +0000)]
libffi: move from recipes-gnome to recipes-support

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibffi: ensure sysroot paths are not in libffi.pc
Ross Burton [Thu, 4 Feb 2016 16:22:50 +0000 (16:22 +0000)]
libffi: ensure sysroot paths are not in libffi.pc

Remove a previous patch and solve the problem in a different way, as the same
root cause was causing the absolute sysroot path to appear in libffi.pc.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosyslinux: remove LDFLAGS manipulation
Ross Burton [Thu, 4 Feb 2016 16:22:49 +0000 (16:22 +0000)]
syslinux: remove LDFLAGS manipulation

syslinux appears to be using gcc to link instead of LD directly now, so we can
remove the manipulation of LDFLAGS.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-tools: Fix ptest installed la files
Richard Purdie [Thu, 4 Feb 2016 14:49:50 +0000 (14:49 +0000)]
lttng-tools: Fix ptest installed la files

The ptest .la files are just getting copied into new directories, we need
to relocate them and update the paths within.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognutls: update 3.4.8 -> 3.4.9
Andre McCurdy [Wed, 3 Feb 2016 21:17:11 +0000 (13:17 -0800)]
gnutls: update 3.4.8 -> 3.4.9

This version fixes bugs in the current stable branch.

* Version 3.4.9 (released 2016-02-03)

** libgnutls: Corrected ALPN protocol negotiation. Before GnuTLS would
   negotiate the last commonly supported protocol, rather than the
   first. Reported by Remi Denis-Courmont (#63).

** libgnutls: Tolerate empty DN fields in informational output
   functions.

** libgnutls: Corrected regression causes by incorrect fix in
   gnutls_x509_ext_export_key_usage() at 3.4.8 release.

** API and ABI modifications:
No changes since last version.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-distutils: add missing dependency on python-email
Dominique Hunziker [Wed, 3 Feb 2016 18:23:04 +0000 (19:23 +0100)]
python-distutils: add missing dependency on python-email

Signed-off-by: Dominique Hunziker <dominique.hunziker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agonss-myhostname: Fix build on musl
Khem Raj [Sat, 30 Jan 2016 20:37:07 +0000 (20:37 +0000)]
nss-myhostname: Fix build on musl

provide needed data types if nss.h is not available

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agolinux-firmware: update to latest revision 52442afee
Maxin B. John [Wed, 3 Feb 2016 14:47:40 +0000 (16:47 +0200)]
linux-firmware: update to latest revision 52442afee

- Update to latest linux-firmware
- Renamed qat_dh895xcc_firmware to  qat_firmware based on commit
  8d1f7a11
- Updated license info for the ath9k_htc firmware

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolicense.bbclass: add LICENSE_CREATE_PACKAGE to perform_packagecopy vardeps
Ross Burton [Wed, 3 Feb 2016 16:34:52 +0000 (16:34 +0000)]
license.bbclass: add LICENSE_CREATE_PACKAGE to perform_packagecopy vardeps

This class has a perform_packagecopy_prepend() that uses LICENSE_CREATE_PACKAGE,
but the BitBake variable dependency code doesn't know that oe.data.typed_value()
is a getter.  Until BitBake knows this, add an explicit vardeps.

[ YOCTO #5635 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoi2c-tools: point SRC_URI at Yocto source mirrors
Ross Burton [Wed, 3 Feb 2016 12:41:00 +0000 (12:41 +0000)]
i2c-tools: point SRC_URI at Yocto source mirrors

The ln-sensors.org web site has been down for some time, so point the SRC_URI at
the Yocto Project source mirror.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agognutls.inc: allow libidn support to be controlled via PACKAGECONFIG
Andre McCurdy [Tue, 2 Feb 2016 22:12:33 +0000 (14:12 -0800)]
gnutls.inc: allow libidn support to be controlled via PACKAGECONFIG

libidn (Internationalized Domain Name support library) may not be
desired in all cases, so add a PACKAGECONFIG option to control it.

Allow --enable-doc, libtasn1 internal -vs- external (still internal
by default) and p11-kit support to be controlled via PACKAGECONFIG
too.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agognutls.inc: add gmp to DEPENDS
Andre McCurdy [Tue, 2 Feb 2016 22:12:32 +0000 (14:12 -0800)]
gnutls.inc: add gmp to DEPENDS

GnuTLS depends on gmp. The dependency is usually satisfied indirectly
via nettle, but for correctness make it explicit in the gnutls recipe.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agognutls.inc: minor formatting improvements
Andre McCurdy [Tue, 2 Feb 2016 22:12:31 +0000 (14:12 -0800)]
gnutls.inc: minor formatting improvements

Reordering, plus combine two LDFLAGS_append_libc-uclibc lines into one.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoRevert "kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel...
Ioan-Adrian Ratiu [Tue, 2 Feb 2016 09:01:56 +0000 (11:01 +0200)]
Revert "kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH"

This reverts commit 8d310b24927d0f348fb431895f0583733db2aad0.

That commit completely breaks KBUILD_DEFCONFIG because it relies on
$ARCH to match between the target OE arch and the kernel subdirectory
containing the defconfigs. In the kernel all defconfigs for everything
x86-based (including x86_64) is stored in dir arch/x86/configs/

kernel-yocto.bbclass correctly searches for all the defconfigs inside
${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}

Commit 8d310b249 makes it search in wrong places and _only_ if you
define TARGET_ARCH = "athlon" will it search x86 which is nonsensical.

The commit further adds an if clause to hack the mungled kernel arches
back to their original values (ugh) in do_shared_workdir which is run
after do compile, but of course the build breaks before that in
do_kernel_metadata because of the KBUILD_DEFCONFIG mentioned above (so
that hack is useless).

Please fix that corner case bug in another way which does not completely
screw up the kernel arch mapping & defconfig logic. If 64bit configs are
generated in the kernel for 32bit machines because the host is asked,
then it it a bug in the kernel, it is of no use to hack around it in OE.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: isoimage-isohybrid: check for syslinux-native
Mihaly Varga [Wed, 3 Feb 2016 10:35:06 +0000 (12:35 +0200)]
wic: isoimage-isohybrid: check for syslinux-native

.iso image creation fails if during the image creation syslinux
is baked and syslinux-native is not.

Added new check to verify if both syslinux and syslinux-native
are baked and bake them if these are not installed.

Signed-off-by: Mihaly Varga <mihaly.varga@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoformfactor: add machconfig for qemumips64
Maxin B. John [Wed, 3 Feb 2016 16:37:10 +0000 (18:37 +0200)]
formfactor: add machconfig for qemumips64

We need machconfig file to automatically choose between physical and virtual
keyboards.

[YOCTO #9027]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoncurses: use closing curly brackets in FILES_${PN}-tools variable
Markus Lehtonen [Thu, 4 Feb 2016 14:06:35 +0000 (16:06 +0200)]
ncurses: use closing curly brackets in FILES_${PN}-tools variable

This patch removes a workaround (needed for bitbake python parser) where
closing curly brackets were replaced by ascii code '\x7d'.

This commit requires a bitbake version with the
"data_smart: simple bracket matching inside python expressions" patch
applied.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoutil-linux: Change ALTERNATIVE_PRIORITY above busybox
Richard Purdie [Thu, 4 Feb 2016 11:29:05 +0000 (11:29 +0000)]
util-linux: Change ALTERNATIVE_PRIORITY above busybox

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8de5315bd519c21a114bc88b88c6caff32831c03

changed util-linux priority to match busybox (50) which means sometimes
one and sometimes the other wins in image installs. We want util-linux to
win compared to busybox.

The old level (100) does conflict with other utils so pick 80 as a
good intermediate value.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomktemp: lower the priority of standalone mktemp package
Zhixiong Chi [Wed, 3 Feb 2016 06:16:42 +0000 (14:16 +0800)]
mktemp: lower the priority of standalone mktemp package

Lower the priority of the standalone mktemp package, so that
finally the mktemp command installed into SDK image is
coreutils.mktemp.

coreutils.mktemp is widely extended to support more feature,
and could not break some existing scripts and common usecases.

For example: at least three 'X's, and mktemp XXX.pdf(do not
have to be the trailing character for 'X')

Signed-off-by: Zhixiong Chi <Zhixiong.Chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibxsettings-client: drop obsolete disable_Os_option.patch
Andre McCurdy [Tue, 2 Feb 2016 21:59:35 +0000 (13:59 -0800)]
libxsettings-client: drop obsolete disable_Os_option.patch

This patch to configure.ac to change the default CFLAGS from -Os to
-O2 was added in 2010 as a workaround for a ppc specific bug which
affected gcc 4.5.x:

  http://git.openembedded.org/openembedded-core/commit/?id=ce456306dad3fdf42494830011dacae213c48edf

The bug in gcc was fixed upstream in gcc 4.6.x and backported to the
gcc 4.5.1 recipe in oe-core, making disable_Os_option.patch obsolete.

  http://git.openembedded.org/openembedded-core/commit/?id=0fabe078a31591f41c3fdabe5aa9de1111ef82c7
  http://git.openembedded.org/openembedded-core/commit/?id=fef385e37e82a0eec743fbd1da11021b9e7158b5

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: default to empty bootloader config
Maciej Borzecki [Tue, 2 Feb 2016 15:15:20 +0000 (16:15 +0100)]
wic: default to empty bootloader config

A kickstart file for non-x86 boards may have no 'bootloader' stanza. It
is the usual case if bootloader is setup using other mechanism than
through wic, and is for instance a part of u-boot configuration. In such
case the 'bootloader' field in the KickStart class will be
uninitialized. Instead of adding an empty bootloader line in every
kickstart file call the bootloader parser with empty argument list to
get defaults namespace.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocopy_buildsystem: add ability to exclude layers
Chen Qi [Wed, 3 Feb 2016 07:50:21 +0000 (15:50 +0800)]
copy_buildsystem: add ability to exclude layers

In some cases, we may have some kind of download layers in BBLAYERS, so
that we can set BB_NO_NETWORK to "1". This results in extremely large
extensible SDK. And we actually don't need these download layers in the
SDK.

Add a new variable, SDK_LAYERS_EXCLUDE, to enable users to explicitly
exclude some layers when generating the extensible SDK.

[YOCTO #8878]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoaster.bbclass: reinstate scan for artifacts in the sdk directory
Elliot Smith [Tue, 2 Feb 2016 10:25:03 +0000 (10:25 +0000)]
toaster.bbclass: reinstate scan for artifacts in the sdk directory

During refactoring of the SDK/artifact scan code in toaster.bbclass,
the code to find other non-image artifacts in the images/ directory
was incorrectly removed.

Reinstate that code and clean it up so it's clearer what's happening
and so that non-image artifacts are correctly reported.

[YOCTO #8956]

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoaster.bbclass: attach image file scan postfunc to do_image_complete
Elliot Smith [Tue, 2 Feb 2016 10:25:02 +0000 (10:25 +0000)]
toaster.bbclass: attach image file scan postfunc to do_image_complete

The postfunc for finding image files after completion of a build
fails, as the image files we're interested in don't exist at the
point when the scan is currently done (following do_rootfs).

Attach the postfunc for scanning for image files to the new
do_image_complete task, which definitely runs after the image files
have been created.

[YOCTO #8956]

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa: add ASSUME_PROVIDED dependency on wget-native for http fetches
Ross Burton [Mon, 25 Jan 2016 13:38:00 +0000 (13:38 +0000)]
meta: add ASSUME_PROVIDED dependency on wget-native for http fetches

For clarity and consistency, add a dependency on wget-native for any URIs that
will be fetched using the wget fetcher, and add wget-native to ASSUME_PROVIDED.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk+3: Tweak getVar to use True, not 1
Richard Purdie [Tue, 2 Feb 2016 23:50:42 +0000 (23:50 +0000)]
gtk+3: Tweak getVar to use True, not 1

Cosmetic change to use "True", not 1 as expand parameter for getVar.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/lib: Add expand parameter to getVarFlag
Richard Purdie [Tue, 2 Feb 2016 23:45:46 +0000 (23:45 +0000)]
classes/lib: Add expand parameter to getVarFlag

This sets the scene for removing the default False for expansion
from getVarFlag. This would later allow True to become the default.

On the most part this is an automatic translation with:

sed -e 's:\(\.getVarFlag([^,()]*, [^,()]*\)):\1, True):g'  -i `grep -ril getVar *`

In this case, the default was False, but True was used since in most
cases here expansion would be expected.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-pycurl: remove unnecessary exports
Ross Burton [Tue, 2 Feb 2016 11:22:58 +0000 (11:22 +0000)]
python-pycurl: remove unnecessary exports

These variables are exported through distutils.bbclass, so there's no need to do
it again.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate: Fix SSTATE_SWSPEC only used by populate_lic tasks
Richard Purdie [Tue, 2 Feb 2016 13:53:13 +0000 (13:53 +0000)]
sstate: Fix SSTATE_SWSPEC only used by populate_lic tasks

This variable is only used by populate_lic tasks (gcc-source overrides it)
and refers to BPN. In recipes like gcc, where there are multiple variants,
it is resulting in sstate objects which encode PN (they install into a PN subdir)
but the sstate object reflects BPN. This leads to corruption between then and
eventually, warnings from image builds like:

WARNING: The license listed GPLv3 was not in the licenses collected for recipe gcc
WARNING: The license listed GPL-3.0-with-GCC-exception was not in the licenses collected for recipe gcc
WARNING: The license listed GPLv3 was not in the licenses collected for recipe gcc
WARNING: The license listed NCSA was not in the licenses collected for recipe gcc-sanitizers
WARNING: The license listed MIT was not in the licenses collected for recipe gcc-sanitizers
WARNING: The license listed GPL-3.0-with-GCC-exception was not in the licenses collected for recipe gcc
WARNING: The license listed GPLv3 was not in the licenses collected for recipe gcc
WARNING: The license listed NCSA was not in the licenses collected for recipe gcc-sanitizers

By referring to PN, as used by license.bbclass, this issue is resolved.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage.bbclass: Add data expansion to do_split_packages()
Richard Purdie [Tue, 2 Feb 2016 13:52:38 +0000 (13:52 +0000)]
package.bbclass: Add data expansion to do_split_packages()

do_split_packages is often called with parameters which need expansion.
This happens to work at the moment since python functions are expanded
before execution but likely will not happen in future and isn't good
code practise.

Expand the common parameters do_split_packages() to avoid regressions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox/gtk/perl/base-passwd: Ensure data is correctly expanded
Richard Purdie [Tue, 2 Feb 2016 13:50:47 +0000 (13:50 +0000)]
busybox/gtk/perl/base-passwd: Ensure data is correctly expanded

Where variables are used in python, we need to ensure they are expanded.
This happens to work at the moment but likely will not happen in future
and isn't good code practise.

Its mostly an issue around key values, since bitbake has already
performed key expansion when these functions are executed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>