]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
9 years agop11-kit: fix packaging warnings
Ross Burton [Wed, 3 Feb 2016 10:35:14 +0000 (10:35 +0000)]
p11-kit: fix packaging warnings

This recipe was ignoring the wrong test, so update INSANE_SKIP.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopiglit: don't use /tmp to write generated sources to
Ross Burton [Tue, 2 Feb 2016 22:41:54 +0000 (22:41 +0000)]
piglit: don't use /tmp to write generated sources to

If there are multiple builds on the same machine then piglit writing it's
generated sources to /tmp will race.  Instead, export TEMP to tell the tempfile
module to use a temporary directory under ${B}.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibical: Work around hardcoded paths in pkgconfig file
Richard Purdie [Thu, 4 Feb 2016 13:07:53 +0000 (13:07 +0000)]
libical: Work around hardcoded paths in pkgconfig file

For now, work around the hardcoded path in the pkgconfig file.
Issue filed upstream as:

https://github.com/libical/libical/issues/227

This raises questions about whether some sanity tests are running.
Those issues will be addressed in a separate patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodocumentation.conf: align the documentation for DEBUG_OPTIMIZATION and FULL_OPTIMIZAT...
Pascal Bach [Tue, 2 Feb 2016 15:08:40 +0000 (16:08 +0100)]
documentation.conf: align the documentation for DEBUG_OPTIMIZATION and FULL_OPTIMIZATION with bitbake.conf

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopciutils: Explicitly set EXTRA_OEMAKE as required
Mike Crowe [Tue, 2 Feb 2016 14:49:46 +0000 (14:49 +0000)]
pciutils: Explicitly set EXTRA_OEMAKE as required

The openssl recipe currently relies on EXTRA_OEMAKE having been set to
"-e MAKEFLAGS=" in bitbake.conf to operate. It is necessary to make this
explicit so that the default in bitbake.conf can be changed.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssl: Explicitly set EXTRA_OEMAKE as required
Mike Crowe [Tue, 2 Feb 2016 14:49:45 +0000 (14:49 +0000)]
openssl: Explicitly set EXTRA_OEMAKE as required

The openssl recipe currently relies on EXTRA_OEMAKE having been set to
"-e MAKEFLAGS=" in bitbake.conf to operate. It is necessary to make this
explicit so that the default in bitbake.conf can be changed.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodbus: add user sessions support
Andrew Shadura [Tue, 2 Feb 2016 17:06:57 +0000 (18:06 +0100)]
dbus: add user sessions support

Enable the user-sessions support with a PACKAGECONFIG flag.

Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodbus: use ${systemd_system_unitdir}
Andrew Shadura [Tue, 2 Feb 2016 17:04:51 +0000 (18:04 +0100)]
dbus: use ${systemd_system_unitdir}

Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext: Add SSTATE_MIRRORS to config blacklist
Randy Witt [Mon, 1 Feb 2016 23:51:51 +0000 (15:51 -0800)]
populate_sdk_ext: Add SSTATE_MIRRORS to config blacklist

SSTATE_MIRRORS used by the builder may not be the same as what the
installer of the sdk will use. Therefore blacklist SSTATE_MIRRORS from
the builder configuration. Note: the actual SSTATE_MIRRORS for the sdk
can be added using sdk_extra_conf.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: add test for -dev packaging containing real libraries
Ross Burton [Mon, 1 Feb 2016 16:21:24 +0000 (16:21 +0000)]
insane: add test for -dev packaging containing real libraries

PN-dev packages should generally contain the link-time symlinks from libfoo.so
to the real libraries.  If a recipe installs a real library named libfoo.so
there's a very good chance that it's a loadable module and should be in another
package.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython3: set INSANE_SKIP as libpython3.so is a trampoline library
Ross Burton [Mon, 1 Feb 2016 21:09:29 +0000 (21:09 +0000)]
python3: set INSANE_SKIP as libpython3.so is a trampoline library

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agop11-kit: fix module packaging
Ross Burton [Mon, 1 Feb 2016 21:09:04 +0000 (21:09 +0000)]
p11-kit: fix module packaging

These .so files are actually loadable modules, so should be installed into $PN
not $PN-dev.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibnl: package the libnl-cli modules in libnl-cli
Ross Burton [Mon, 1 Feb 2016 15:41:09 +0000 (15:41 +0000)]
libnl: package the libnl-cli modules in libnl-cli

The libraries that get installed into $libdir/libnl/cli/ are not development
libraries for linking against but loadable modules for the libnl-cli component,
so move them to the right package.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoremove-libtool: add new class
Ross Burton [Fri, 29 Jan 2016 21:24:40 +0000 (21:24 +0000)]
remove-libtool: add new class

This class adds a postfunc to do_install to remove all .la files installed by
libtool, so that they are absent from both the sysroots and target packages.

If a recipe needs these files to be installed then it can be overridden by
setting REMOVE_LIBTOOL_LA.

Note that this class isn't enabled by default.

[ YOCTO #2380 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogtk-immodules-cache.bbclass: fix immodules-cache path
Maxin B. John [Tue, 2 Feb 2016 11:04:10 +0000 (13:04 +0200)]
gtk-immodules-cache.bbclass: fix immodules-cache path

This commit in gtk+ moved the cache files below <libdir>
"
commit c8849046860a9b17fa943247d85ddadb29262b48
Author: Matthias Clasen <mclasen@redhat.com>
Date: Thu Jul 4 09:27:17 2013 -0400
Move the module cache files below libdir

These files contain architecture-dependent paths, and thus placing them
into sysconfdir causes unnecessary hassle. Now the immodule cache file is
looked for in libdir/gtk-2.0/2.10.0/immodules.cache. Belated backport of a
change that was done in the run-up to 3.0.". Update gtk-immodules-cache.bbclass
to use that path.

The environment variable "GTK_IM_MODULE_FILE" can also be set to point GTK+
at the file to fix this problem. However, it causes problems for gtk3 apps.

[YOCTO #6774]
[YOCTO #8957]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoRevert "matchbox-keyboard: export GTK_IM_MODULE_FILE location"
Maxin B. John [Tue, 2 Feb 2016 11:04:09 +0000 (13:04 +0200)]
Revert "matchbox-keyboard: export GTK_IM_MODULE_FILE location"

This reverts commit a8c25af91e56f20b9cfd4fa298b5002efc7af809.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodirectfb: use Yocto source mirrors for SRC_URI
Ross Burton [Mon, 1 Feb 2016 10:43:02 +0000 (10:43 +0000)]
directfb: use Yocto source mirrors for SRC_URI

directfb.org has been offline for several months now, and the "official"
DirectFB repositories on GitHub haven't been touched since October and don't
contain the 1.7.x branch or tags.

So that everyone (specifically people who don't have the Yocto Project source
mirrors configured) can download DirectFB, point the SRC_URI at the Yocto
Project source mirror directly.

(From OE-Core rev: 118bdc0db8e97d0b4f094e8ede9ea490604fdc97)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-configure-common.inc: drop --enable-target-optspace from configure
Andre McCurdy [Mon, 1 Feb 2016 22:01:24 +0000 (14:01 -0800)]
gcc-configure-common.inc: drop --enable-target-optspace from configure

Configuring gcc with --enable-target-optspace (which causes gcc to
append "-g -Os" to the default CFLAGS_FOR_TARGET and so force libgcc
etc target libraries to always be optimised for size) dates back to
the very first commit in oe-core git in 2005 (for gcc 3.4.3).

Configuring gcc with --enable-target-optspace is not done widely
elsewhere (it's not used for Ubuntu or Fedora host gcc, the Linaro
binary toolchain or in Buildroot since early 2015). Sometime around
gcc 4.5.x it caused problems for powerpc and so was disabled for that
architecture:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

This patch removes --enable-target-optspace completely (ie powerpc is
no longer a special case) and allows optimisation of libgcc etc to be
controlled directly by the flags present in TARGET_CFLAGS.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomachine/include: drop tune-cortexm*.inc and tune-cortexr4.inc
Andre McCurdy [Mon, 1 Feb 2016 21:42:08 +0000 (13:42 -0800)]
machine/include: drop tune-cortexm*.inc and tune-cortexr4.inc

The Cortex M1, M3 and R4 CPU tuning files are poorly tested (if at
all). They have no obvious users either inside or outside oe-core.

Until OE officially gains support for CPUs without an MMU, these
tuning files are probably better maintained outside of oe-core (e.g.
in a separate meta-nommu layer).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoliboil: drop recipe from oe-core
Andre McCurdy [Mon, 1 Feb 2016 21:36:32 +0000 (13:36 -0800)]
liboil: drop recipe from oe-core

There are no remaining dependencies on liboil in oe-core (in most
cases it has been replaced by 'orc'). There is one recipe with a
dependency on liboil in meta-multimedia ('schroedinger').

The liboil recipe has now been included in meta-multimedia, so
can be dropped from oe-core.

  http://git.openembedded.org/meta-openembedded/commit/?id=1f48c624e0fcc15fdcfed923cfac5e8d7da07290

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoboost: Fix build on soft-float ABI arm systems
Khem Raj [Mon, 1 Feb 2016 05:08:29 +0000 (05:08 +0000)]
boost: Fix build on soft-float ABI arm systems

We get errors like
./boost/test/execution_monitor.hpp:490:27: error: 'FE_DIVBYZERO' was not
declared in this scope
     BOOST_FPE_DIVBYZERO = FE_DIVBYZERO,

on musl, rightly because FPU is not used on soft-float
systems

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibnss-mdns: Check for nss.h before using
Khem Raj [Mon, 1 Feb 2016 05:08:22 +0000 (05:08 +0000)]
libnss-mdns: Check for nss.h before using

nss.h is not available on all libcs
so check for it and if its not there provide
the needed data types.

Fixed buil with musl
../../nss-mdns-0.10/src/nss.c:32:17: fatal error: nss.h: No such file or
directory
compilation terminated.
make[2]: *** [libnss_mdns4_la-nss.lo] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodb: Use cross libtool
Khem Raj [Mon, 1 Feb 2016 05:08:27 +0000 (05:08 +0000)]
db: Use cross libtool

db is not reconfigured like usual autotools based components so it
generates its own libtool, and this libtool is not equipped to do cross
builds, e.g. when building using clang on musl, it misdirects linker to
use libstdc++.so from build host instead of target, the reason being it
does not understand sysroot.

Use cross libtool instead to build the target versions

Fixes errors like below

| libtool: link: arm-oe-linux-musleabi-ranlib .libs/libdb-6.0.a
|
/a/builder/mnt/build-oe/tmp-musl/sysroots/x86_64-linux/usr/bin/arm-oe-linux-musleabi/arm-oe-linux-musleabi-ld:
error: /usr/lib/libstdc++.so: incompatible target

(From OE-Core rev: d14b5e650e1e55e30abbd884a6bbd9b4feacd923)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibtool-cross: Unset pre|post dep objects
Khem Raj [Mon, 1 Feb 2016 04:49:49 +0000 (04:49 +0000)]
libtool-cross: Unset pre|post dep objects

predep_objects and postdep_objects are specifying the duplicate objects
which are better computed by gcc/g++ driver, since we want to generate
PIE, PIC and non-PIC combinations, let gcc decide on this, since it
knows best about linker options to use in each of these situations.
When we defer the linker options to driver, we also need to remove
-nostdlib from linker commandline options.

Remove duplicate directory creation for ${D}${bindir_crossscripts}/

This fixes a frequent problem we see during -fpie links e.g.

|
/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/sysroots/qemux86-64/usr/include/c++/5.3.0/iostream:74:
undefined reference to `__dso_handle'
|
/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld:
.libs/cxx_channel.o: relocation R_X86_64_PC32 against undefined hidden
symbol `__dso_handle' can not be used when making a shared object
|
/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld:
final link failed: Bad value

After this change libtool gets changed as below

 old_archive_from_expsyms_cmds=""

 # Commands used to build a shared archive.
-archive_cmds="\$CC \$pic_flag -shared -nostdlib \$predep_objects
\$libobjs \$deplibs \$postdep_objects \$compiler_flags \$wl-soname
\$wl\$soname -o \$lib"
-archive_expsym_cmds="\$CC \$pic_flag -shared -nostdlib \$predep_objects
\$libobjs \$deplibs \$postdep_objects \$compiler_flags \$wl-soname
\$wl\$soname \$wl-retain-symbols-file \$wl\$export_symbols -o \$lib"
+archive_cmds="\$CC \$pic_flag -shared  \$predep_objects \$libobjs
\$deplibs \$postdep_objects \$compiler_flags \$wl-soname \$wl\$soname -o
\$lib"
+archive_expsym_cmds="\$CC \$pic_flag -shared  \$predep_objects
\$libobjs \$deplibs \$postdep_objects \$compiler_flags \$wl-soname
\$wl\$soname \$wl-retain-symbols-file \$wl\$export_symbols -o \$lib"

 # Commands used to build a loadable module if different from building
 # a shared archive.
@@ -11908,8 +11908,8 @@

 # Dependencies to place before and after the objects being linked to
 # create a shared library.
-predep_objects="/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/sysroots/qemux86-64/usr/lib/../lib/Scrt1.o
/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/sysroots/qemux86-64/usr/lib/../lib/crti.o
/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/sysroots/qemux86-64/usr/lib/../lib/x86_64-oe-linux/5.3.0/crtbeginS.o"
-postdep_objects="/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/sysroots/qemux86-64/usr/lib/../lib/x86_64-oe-linux/5.3.0/crtendS.o
/home/ubuntu/work/oe/openembedded-core/build/tmp-glibc/sysroots/qemux86-64/usr/lib/../lib/crtn.o"
+predep_objects=""
+postdep_objects=""
 predeps=""
 postdeps="-lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc"

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agodocbook-xsl-stylesheets: create a link for easy refer
Kai Kang [Fri, 29 Jan 2016 09:38:06 +0000 (17:38 +0800)]
docbook-xsl-stylesheets: create a link for easy refer

Create a link to stylesheets directory for docbook-xsl-stylesheets to
make it easy to refer.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopth: Remove dead code
Khem Raj [Mon, 1 Feb 2016 05:08:25 +0000 (05:08 +0000)]
pth: Remove dead code

recipe is removed, delete remaining cruft

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate: Revert using -m option to tar in sstate
Richard Purdie [Sun, 31 Jan 2016 13:35:54 +0000 (13:35 +0000)]
sstate: Revert using -m option to tar in sstate

In http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2d89cff42af2bb0049224bfaaebaa2b21966169f
we added a workaround for dealing with lack of time sync between build
machines and their users.

This has turned out to cause problems for people who rely on timestamps
being preserved in sstate output.

Since our autobuilders are all in time sync with ntp, revert the commit.

[YOCTO #8996]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibarchive-native: Disable libxml2 support
Richard Purdie [Sun, 31 Jan 2016 13:32:36 +0000 (13:32 +0000)]
libarchive-native: Disable libxml2 support

For libarchive-native, we don't really need libxml2 support. Adding this
means we need libxml2-native which means we need python-native and
makes the dependency chains pretty heavy. The target case is unaffected.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopcmciautils: Fix makefile race
Richard Purdie [Sun, 31 Jan 2016 13:24:56 +0000 (13:24 +0000)]
pcmciautils: Fix makefile race

The existing patch wasn't fixing one issue it claimed to and seemed
incorrect in relation to the other.

This patch correctly addresses the parallel make issue, as seen on
our autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobinutils: Use target provided zlib
Richard Purdie [Sun, 31 Jan 2016 13:21:06 +0000 (13:21 +0000)]
binutils: Use target provided zlib

When using -fpie (security related cflags), qemux6-64 builds would
fail due to linker symbol errors. This was due to the internal zlib
that binutils was using.

Add the switch to tell it to use the target system zlib which is
already in DEPENDS. That zlib is already compiled with the correct
flags.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobinutils: Upgrade to 2.26
Khem Raj [Sat, 30 Jan 2016 06:28:38 +0000 (06:28 +0000)]
binutils: Upgrade to 2.26

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonative.bbclass: Set CXXFLAGS from BUILD_CXXFLAGS not BUILD_CFLAGS
Phil Blundell [Sat, 30 Jan 2016 12:21:59 +0000 (12:21 +0000)]
native.bbclass: Set CXXFLAGS from BUILD_CXXFLAGS not BUILD_CFLAGS

Although BUILD_CXXFLAGS, by default, expands to the same thing as
BUILD_CFLAGS there is no guarantee that this will be true in all
cases.  When setting CXXFLAGS we should use the former.

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-base: Add video crop supporting when convert frame
Yuqing Zhu [Thu, 28 Jan 2016 09:02:48 +0000 (17:02 +0800)]
gstreamer1.0-plugins-base: Add video crop supporting when convert frame

Getting thumbnail will use convertframe to convert video frame to
desired video format and size. But haven't process crop meta on
the video buffer. Need to add video crop support.

Signed-off-by: Yuqing Zhu <b54851@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-bad: Fix memory leak of navigation thread
Yuqing Zhu [Thu, 28 Jan 2016 09:02:47 +0000 (17:02 +0800)]
gstreamer1.0-plugins-bad: Fix memory leak of navigation thread

When exit navigation thread, call g_thread_join() to release
the resource hold by it.

Signed-off-by: Yuqing Zhu <b54851@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/package_manager: remove package feed lists
Stefan Agner [Wed, 27 Jan 2016 23:14:26 +0000 (15:14 -0800)]
lib/oe/package_manager: remove package feed lists

Remove opkg package feed lists after generating the rootfs. The
lists have been generated by the local feed but are no longer
necessary after image generation. This still leaves the package
management fully usable (and hence is different from omitting
package-management from IMAGE_FEATURES).

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoexternalsrc: use shared CONFIGURESTAMPFILE if B=S
Markus Lehtonen [Fri, 29 Jan 2016 15:04:31 +0000 (17:04 +0200)]
externalsrc: use shared CONFIGURESTAMPFILE if B=S

External source tree is used as the builddir even for different
architectures in case ${B}=${S}. This may cause problems if MACHINE is
changed as do_configure is not being re-run (which would run make
clean). This patches changes externalsrc to use a common (per-recipe)
CONFIGURESTAMPFILE under 'work-shared' if ${B}=${S}. In addition,
do_configure will depend on changes of this stamp file. As a result,
do_configure is re-run and the build dir is cleaned correctly if a
rebuild for different MACHINE is done.

[YOCTO #8950]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoMake sure that the directory for CONFIGURESTAMPFILE exists
Markus Lehtonen [Fri, 29 Jan 2016 15:04:30 +0000 (17:04 +0200)]
Make sure that the directory for CONFIGURESTAMPFILE exists

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoautotools.bbclass: use oe_runmake instead of ${MAKE}
Markus Lehtonen [Fri, 29 Jan 2016 15:04:29 +0000 (17:04 +0200)]
autotools.bbclass: use oe_runmake instead of ${MAKE}

Use oe_runmake like in base.bbclass so that EXTRA_OEMAKE will be
respected.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc, qemuppc: Explicitly disable forcing SPE flags
Khem Raj [Sat, 30 Jan 2016 06:28:37 +0000 (06:28 +0000)]
gcc, qemuppc: Explicitly disable forcing SPE flags

G4 does not have SPE, so we make that explicit in the tune files and
since we emulate G4 when building Qemu, we ensure it for qemuppc as
well.

GCC config for powerpc-linux is made to include SPE by default which is
equivalent if the tripet was powerpc-linux*spe, this forces gcc to
configure assembler to enable -mspe by default, when we do that then the
kernel fails to compile with binutils 2.26, since newer assembler is
smart to detect the tlbia instructions are not compatible with SPE and
hence the kernel build breaks rightly. We configure the kernel for G4 as
well where it enables tlbia instrucitons rightly so because it thinks
its being configured for power4. So we keep the options but do not force
-mspe down to assembler as default.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopango.inc: misc dependency fixes
Andre McCurdy [Fri, 29 Jan 2016 22:08:49 +0000 (14:08 -0800)]
pango.inc: misc dependency fixes

 - Add glib-2.0-native dependency for target
 - Add fontconfig-native and freetype-native dependencies for native
 - Drop unnecessary dependency on zlib for all

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopango.inc: limit ptest specific do_compile_prepend to target builds
Andre McCurdy [Fri, 29 Jan 2016 22:08:48 +0000 (14:08 -0800)]
pango.inc: limit ptest specific do_compile_prepend to target builds

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemtap_git.inc: do not immediate expand SELECTED_OPTIMIZATION
Hongxu Jia [Fri, 29 Jan 2016 17:35:58 +0000 (12:35 -0500)]
systemtap_git.inc: do not immediate expand SELECTED_OPTIMIZATION

We need to expand SELECTED_OPTIMIZATION later, so
do not immediate expansion, and do the work in
anonymous python function.

It is reasonable to give an error for -O0.

[YOCTO #7058]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc.inc: do not immediate expand SELECTED_OPTIMIZATION
Hongxu Jia [Fri, 29 Jan 2016 17:35:57 +0000 (12:35 -0500)]
glibc.inc: do not immediate expand SELECTED_OPTIMIZATION

We need to expand SELECTED_OPTIMIZATION later, so
do not immediate expansion, and do the work in
anonymous python function.

It is reasonable to give an error for -O0.

[YOCTO #7058]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomkelfimage: fix target cflags leaks to host
Hongxu Jia [Fri, 29 Jan 2016 17:35:56 +0000 (12:35 -0500)]
mkelfimage: fix target cflags leaks to host

The patch fix-makefile-to-find-libz.patch fixed native
compile failure; for target compile, it incorrectly
leaks CFLAGS to HOST_CFLAGS.

[YOCTO #3547]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobase: Move COMPATIBLE_MACHINE out the scope of SOURCE_MIRROR_FETCH
Richard Purdie [Wed, 27 Jan 2016 12:23:34 +0000 (12:23 +0000)]
base: Move COMPATIBLE_MACHINE out the scope of SOURCE_MIRROR_FETCH

Recipes setting COMPATIBLE_MACHINE are likely to have SRC_URI
entries which can heavily depend on the configured machine. Skipping
them for SOURCE_MIRROR_FETCH is therefore not advised and leads to
build errors whilst not particularly improving source mirrors.

[YOCTO #8802]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocurl: update 7.46.0 -> 7.47.0 ( CVE-2016-0754 CVE-2016-0755 )
Andre McCurdy [Thu, 28 Jan 2016 21:31:38 +0000 (13:31 -0800)]
curl: update 7.46.0 -> 7.47.0 ( CVE-2016-0754 CVE-2016-0755 )

Full changelog: http://curl.haxx.se/changes.html#7_47_0
Security fixes: http://curl.haxx.se/docs/vulnerabilities.html

CVE-2016-0754 : remote file name path traversal in curl tool for Windows
CVE-2016-0755 : NTLM credentials not-checked for proxy connection re-use

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>