]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agopackage.bbclass: add summary line to installed-vs-shipped QA check
Martin Jansa [Fri, 18 Sep 2015 13:14:09 +0000 (15:14 +0200)]
package.bbclass: add summary line to installed-vs-shipped QA check

* there is PN at the beginning, then possibly long list of files and
  at the end we don't see which recipe has this issue, add another
  line which says which PN and how many files

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitramfs-framework: better error reporting for invalid root boot parameter
Patrick Ohly [Fri, 18 Sep 2015 11:49:22 +0000 (13:49 +0200)]
initramfs-framework: better error reporting for invalid root boot parameter

When the "boot" parameter refers to a non-existent device, the only
visible output at normal log levels was a rather confusing:
   ERROR: There's no '/dev' on rootfs.

That's because the actual error, not being able to find the root
device, was only a debug message, which gets ignored in the default
mode.

Promoting the "root '$bootparam_root' doesn't exist." message from
"debug" to "msg" gives sufficient context to understand the error. A
more intrusive change would be to change also the control flow.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitramfs-framework: fix "support dropping into shell on failure"
Patrick Ohly [Fri, 18 Sep 2015 11:49:21 +0000 (13:49 +0200)]
initramfs-framework: fix "support dropping into shell on failure"

Due to a missing $ before the variable name, all fatal errors ended up
invoking a shell, instead of only doing that when init_fatal_sh is set
as boot parameter.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqt4: remove already merged patch
Paul Eggleton [Fri, 18 Sep 2015 14:16:12 +0000 (15:16 +0100)]
qt4: remove already merged patch

This patch was merged into the 4.8.7 release. This was missed on
upgrade, and we didn't notice because our quilt-based patch handling
code ignores already-applied patches.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogdk-pixbuf: remove redundant libx11 DEPENDS line
Carlos Rafael Giani [Fri, 18 Sep 2015 11:51:33 +0000 (13:51 +0200)]
gdk-pixbuf: remove redundant libx11 DEPENDS line

The x11 packageconfig already takes care of the X11 dependency, and also
respects the DISTRO_FEATURES

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: For qemumicroblaze use the QEMU provided device tree
Nathan Rossi [Wed, 16 Sep 2015 04:59:59 +0000 (14:59 +1000)]
runqemu-internal: For qemumicroblaze use the QEMU provided device tree

Setup the qemumicroblaze machine to use the device tree provided by QEMU
instead of the device tree located in the images directory. Additionally
setup the default memory size to match the QEMU device tree.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu-internal: Fix qemu networking for qemuzynq an qemumicroblaze
Nathan Rossi [Wed, 16 Sep 2015 04:59:58 +0000 (14:59 +1000)]
runqemu-internal: Fix qemu networking for qemuzynq an qemumicroblaze

This patch brings the qemu networking setup for qemuzynq and
qemumicroblaze into feature parity with the other qemu machines.
Specifically enabling TAP interface attachcment and kernel command line
IP configuration.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpcre: Allow building 16 and 32bit libpcre versions
Pascal Bach [Fri, 18 Sep 2015 06:43:42 +0000 (08:43 +0200)]
libpcre: Allow building 16 and 32bit libpcre versions

This change allows selecting the 8, 16 or 32 bit version via PACKAGECONFIG.
By default only the 8bit version is built, this corresponds to the old behavior.

Some packages like Qt5 require the 16 bit version of libpcre.
After this change the corresponding layer can easily enable the version
needed via .bbappend.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-git-proxy: Allow socks4 as protocol in $ALL_PROXY
Peter Kjellerstedt [Fri, 18 Sep 2015 10:46:06 +0000 (12:46 +0200)]
oe-git-proxy: Allow socks4 as protocol in $ALL_PROXY

The current default is to use SOCKS4a when socks is specified as
protocol in $ALL_PROXY. However, not all socks servers support
SOCKS4a. By allowing socks4 as an additional protocol, this script
will happily work with SOCKS4 only servers.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-git-proxy: Correct the parsing of a port in $ALL_PROXY
Peter Kjellerstedt [Fri, 18 Sep 2015 10:46:05 +0000 (12:46 +0200)]
oe-git-proxy: Correct the parsing of a port in $ALL_PROXY

Due to an error in the regular expression used to extract a port
number specified in $ALL_PROXY, rather than allowing the port number
to be followed by an optional "/", the port was required to be
followed by "/?".

This corrects the regular expression to allow an optional "/". It also
allows the odd "/?" suffix for backwards compatibility.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-git-proxy: Allow explicit IP addresses in $NO_PROXY
Peter Kjellerstedt [Fri, 18 Sep 2015 10:46:04 +0000 (12:46 +0200)]
oe-git-proxy: Allow explicit IP addresses in $NO_PROXY

Without this fix, if one specified, e.g., 127.0.0.1 in $NO_PROXY, the
oe-git-proxy script would fail with a message like this:

/home/pkj/yocto/poky/scripts/oe-git-proxy: line 64: 32-127.0.0.1: syntax error: invalid arithmetic operator (error token is ".0.0.1")

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/testimage: Enhance -v switch in testimage
Lucian Musat [Tue, 15 Sep 2015 13:52:44 +0000 (16:52 +0300)]
oeqa/testimage: Enhance -v switch in testimage

When testimage is run with -v switch now individual
test progress can be seen directly in bitbake console.

[YOCTO #6841]

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic-image-minimal: add dependency to .wks
Ed Bartosh [Thu, 17 Sep 2015 08:49:33 +0000 (11:49 +0300)]
wic-image-minimal: add dependency to .wks

Added dependency to wic-image-minimal.wks to the recipe. This makes
bitbake to rebuild the image if .wks file changes.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: fix partition size calculation
Ed Bartosh [Thu, 10 Sep 2015 12:38:03 +0000 (15:38 +0300)]
wic: fix partition size calculation

It was wrongly assumed that part.size is meagured in Mb. In fact it's
in Kb, so there is no need to convert bitbake variable ROOTFS_SIZE as
it's also in Kb.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: use ext4 in wic-image-minimal.wks
Ed Bartosh [Thu, 10 Sep 2015 08:38:07 +0000 (11:38 +0300)]
wic: use ext4 in wic-image-minimal.wks

ext4 is used in canned wks files, so let's use it here too
for the sake of consistency.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agowic: add dependencies to wic-image-minimal recipe
Ed Bartosh [Thu, 10 Sep 2015 08:35:09 +0000 (11:35 +0300)]
wic: add dependencies to wic-image-minimal recipe

Added "DEPENDS =" line to the recipe to ensure that all tools required
for image creation are built.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
9 years agotestimage.bbclass: Don't require an image manifest
Randy Witt [Wed, 16 Sep 2015 21:45:49 +0000 (14:45 -0700)]
testimage.bbclass: Don't require an image manifest

Sometimes an "image" may not actually have a manifest file such as when
using a "baremetal kernel". This change allows for  a user to set a
IMAGE_NO_MANIFEST flag to 1 in order to inform the code that there is no
corresponding manifest that should exist for an image.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0: Fix basesink drop buffer error
Yuqing Zhu [Thu, 17 Sep 2015 14:42:18 +0000 (22:42 +0800)]
gstreamer1.0: Fix basesink drop buffer error

Basesink: Shouldn't drop buffer when sync=false

Signed-off-by: Yuqing Zhu <b54851@freescale.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrep: fix install if bindir == base_bindir
Dominic Sacré [Thu, 17 Sep 2015 16:13:45 +0000 (18:13 +0200)]
grep: fix install if bindir == base_bindir

Don't try to move binaries onto themselves if ${bindir} and
${base_bindir} are the same, as is the case on systems with a
merged /usr directory.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogzip: fix install if bindir == base_bindir
Dominic Sacré [Thu, 17 Sep 2015 16:13:44 +0000 (18:13 +0200)]
gzip: fix install if bindir == base_bindir

Don't try to move binaries onto themselves if ${bindir} and
${base_bindir} are the same, as is the case on systems with a
merged /usr directory.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocpio: fix install if bindir == base_bindir
Dominic Sacré [Thu, 17 Sep 2015 16:13:43 +0000 (18:13 +0200)]
cpio: fix install if bindir == base_bindir

Don't try to move binaries onto themselves if ${bindir} and
${base_bindir} are the same, as is the case on systems with a
merged /usr directory.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotar: fix install if bindir == base_bindir
Dominic Sacré [Thu, 17 Sep 2015 16:13:42 +0000 (18:13 +0200)]
tar: fix install if bindir == base_bindir

Don't try to move binaries onto themselves if ${bindir} and
${base_bindir} are the same, as is the case on systems with a
merged /usr directory.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobind: fix too long error from gen
Robert Yang [Thu, 17 Sep 2015 07:53:07 +0000 (00:53 -0700)]
bind: fix too long error from gen

gen.c uses 512 as the path length which is a little short when build in
deep dir, and cause "too long" error, use PATH_MAX if defined.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoccache: fix file name too long
Robert Yang [Thu, 17 Sep 2015 07:53:06 +0000 (00:53 -0700)]
ccache: fix file name too long

The all_cppflags change paths to filename which cause file name too long
error when the path is longer than NAME_MAX (usually 255). Strip srcdir
to fix the problem.

[YOCTO #8313]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobitbake.conf: update APACHE_MIRROR
Robert Yang [Thu, 17 Sep 2015 01:39:36 +0000 (18:39 -0700)]
bitbake.conf: update APACHE_MIRROR

From Ross:
The http://www.apache.org/dist only keeps latest release, so use
http://archive.apache.org/dist, which keeps all the archives.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto/4.1: hid-core: Avoid uninitialized buffer access
Bruce Ashfield [Mon, 21 Sep 2015 13:14:58 +0000 (09:14 -0400)]
linux-yocto/4.1: hid-core: Avoid uninitialized buffer access

Updating the 4.1 SRCREVs to integrate the following commit:

    hid-core: Avoid uninitialized buffer access

    hid_connect adds various strings to the buffer but they're all
    conditional. You can find circumstances where nothing would be
    written
    to it but the kernel will still print the supposedly empty buffer
    with
    printk. This leads to corruption on the console/in the logs.

    Ensure buf is initialized to an empty string.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
    [dvhart: Initialize string to "" rather than assign buf[0] = NULL;]
Cc: Jiri Kosina <jikos@kernel.org>
Cc: linux-input@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokern-tools: optimize patching peformance
Bruce Ashfield [Fri, 18 Sep 2015 19:21:38 +0000 (15:21 -0400)]
kern-tools: optimize patching peformance

Updating the kern-tools SRCREV to integrat the following commit:

    patching: only validate user supplied patches by default

    Previously the patching tools would consider both system and user
    supplied patches in the same manner .. they are simply a series of
    patches to be applied to a branch, and that the scripts should determine
    where in the series to start (based on what is already on the
    branch).

    This detection was causing a few problems:

      - time consuming
      - starting in the middle of a series when intermediate patches
        were merged to a branch.

    To solve both the performance and start detection, we instead simply
    note the transition from system (i.e. already defined features and
    series) and user/recipe supplied patches. When the transition is noted,
    the system will start pushing ALL patches without doing autoresume
    detection.

    Control in keeping the series up to date is passed to the user, and
    consistent behaviour/performance is achieved.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: aufs, yaffs2 and driver fixes
Bruce Ashfield [Fri, 18 Sep 2015 19:21:37 +0000 (15:21 -0400)]
linux-yocto/4.1: aufs, yaffs2 and driver fixes

Updating the 4.1 SRCREVs to integrate the following changes:

  f830ab33799d aufs: call mutex.owner only when DEBUG_MUTEXES or MUTEX_SPIN_ON_OWNER is defined
  87df2e93ed65 Bluetooth: Delay check for conn->smp in smp_conn_security()
  b09c3eab3e50 cc2520: set the default fifo pin value from platform data
  62b01c325d42 fs/yaffs2: Fix a judgement logic for ACL operations
  1d19c4e95cfc yaffs2: remove read and write methods
  2c822dbc43b9 yaffs2: replace f_dentry to f_path.dentry

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoautotools.bbclass: mkdir ${B} -> mkdir -p ${B}
Robert Yang [Wed, 16 Sep 2015 10:25:01 +0000 (03:25 -0700)]
autotools.bbclass: mkdir ${B} -> mkdir -p ${B}

${B} is the default cwd of tasks, so there might be race issues such as:
| mkdir: cannot create directory `${B}': File exists
[snip]
NOTE: recipe perf-1.0-r9: task do_configure: Failed

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperf: mkdir ${B} -> mkdir -p ${B}
Robert Yang [Wed, 16 Sep 2015 10:25:00 +0000 (03:25 -0700)]
perf: mkdir ${B} -> mkdir -p ${B}

${B} is the default cwd of tasks, so there might be race issues such as:
| mkdir: cannot create directory `/path/to/work/qemux86-poky-linux/perf/1.0-r9/perf-1.0/': File exists
[snip]
NOTE: recipe perf-1.0-r9: task do_configure: Failed

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: add 'newappend' sub-command
Christopher Larson [Wed, 16 Sep 2015 17:03:32 +0000 (10:03 -0700)]
recipetool: add 'newappend' sub-command

This sub-command creates a bbappend for the specified target and prints the
path to the bbappend. The -w argument, as with some of the other recipetool
commands, will make a version-independent bbappend.

Example usage: recipetool newappend meta-mylayer virtual/kernel

[YOCTO #7964]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/sstatetests: Add test for nativesdk stamp invariance with MACHINE
Richard Purdie [Wed, 16 Sep 2015 20:53:01 +0000 (21:53 +0100)]
oeqa/sstatetests: Add test for nativesdk stamp invariance with MACHINE

nativesdk-glbic should not rebuild when you change MACHINE but
it was. We've fixed that, now add tests to ensure this doesn't
happen again.

Rather than add yet another stamps test, extend one of the
existing ones to cover this instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: Ensure OVERRIDES doesn't influence sstate checksum
Richard Purdie [Wed, 16 Sep 2015 20:50:28 +0000 (21:50 +0100)]
glibc: Ensure OVERRIDES doesn't influence sstate checksum

Switching MACHINE was causing nativesdk-glibc to rebuild. This was
from the use of OVERRIDES in one of the functions. Exclude OVERRIDES
from the checksum to avoid this.

[patch to oe-selftest to ensure this doesn't regress follows]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.py: Ensure base image size is an integer
Patrick Williams [Wed, 16 Sep 2015 16:48:44 +0000 (11:48 -0500)]
image.py: Ensure base image size is an integer

There is a floating point multiplication done of a base image size
and an "overhead factor", which is currently rounded up to the next
integer.  If the multiplication results in a whole number, the value
will still be a float.  When this float is used to generate a shell
script, a buggy script is generated.

Fix this by always forcing to an integer.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython: Add python-misc as rdependency to python-modules
Erkka Kääriä [Tue, 15 Sep 2015 12:34:19 +0000 (15:34 +0300)]
python: Add python-misc as rdependency to python-modules

Currently python-misc is not included even if python-modules is. This means
some python scripts fail even if python-modules is included in the image
(for example, get-pip.py at bootrap.pypa.io/get-pip.py). This patch adds
python-misc as runtime dependency for python-modules.

Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocryptodev-tests: don't use STAGING_KERNEL_DIR, fix re-packaging in multi-machine...
Denys Dmytriyenko [Wed, 9 Sep 2015 22:05:19 +0000 (18:05 -0400)]
cryptodev-tests: don't use STAGING_KERNEL_DIR, fix re-packaging in multi-machine builds

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoadwaita-icon-theme: RREPLACE gnome-icon-theme
Jussi Kukkonen [Wed, 16 Sep 2015 13:59:18 +0000 (16:59 +0300)]
adwaita-icon-theme: RREPLACE gnome-icon-theme

RREPLACE, RCONFLICT and RPROVIDE gnome-icon-theme to make on-device
upgrades work.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomkelfimage: fix owner for /usr/sbin/mkelfImage
Robert Yang [Wed, 16 Sep 2015 06:08:17 +0000 (23:08 -0700)]
mkelfimage: fix owner for /usr/sbin/mkelfImage

Fixed:
packages-split/mkelfimage/usr/sbin/mkelfImage is owned by uid 15220, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

This is because its Makefile uses cp -a to install mkelfImage.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agonspr: fix SRC_URI
Robert Yang [Wed, 16 Sep 2015 05:28:21 +0000 (22:28 -0700)]
nspr: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10.8/src/nspr-4.10.8.tar.gz, attempting MIRRORS if available

Its ftp:// doesn't work with wget, but http:// works.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomkefidisk: Create interactive menu for the script
Bruno Bottazzini [Mon, 14 Sep 2015 21:29:04 +0000 (18:29 -0300)]
mkefidisk: Create interactive menu for the script

If it is passed only the image parameter, it will show some interactive
options to help to conclude the script.

With this patch it will detect devices available in the machine, asking
to choose what it is wanted to be flashed.

it will suggest the target device. If it is a SD card the suggestion
is /dev/mmcblk0. If it is a pendrive it will suggest to use /dev/sda.

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage.bbclass: add do_rootfs vardeps for {COMPRESS, IMAGE}_CMD_*
Christopher Larson [Tue, 15 Sep 2015 00:10:37 +0000 (17:10 -0700)]
image.bbclass: add do_rootfs vardeps for {COMPRESS, IMAGE}_CMD_*

We want do_rootfs to rerun if the fstype or compression commands or
dependencies change for any of our configured fstypes (IMAGE_FSTYPES).
IMAGE_TYPEDEP isn't explicitly handled, as it's traversed already, so the end
result will change if it does, and we only really care about the results, not
how we got there. This uses oe.image.Image()._get_image_types() to get the
info about the image and compression types in use.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosquashfs-tools: make it be able to be compiled by gcc5 with "-O0"
Roy Li [Mon, 14 Sep 2015 09:27:40 +0000 (17:27 +0800)]
squashfs-tools: make it be able to be compiled by gcc5 with "-O0"

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-firmware: package Broadcom BCM4354 firmware
Romain Perier [Mon, 14 Sep 2015 05:56:25 +0000 (07:56 +0200)]
linux-firmware: package Broadcom BCM4354 firmware

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoperf: fix the install-python_ext on upstream kernel
Roy Li [Tue, 15 Sep 2015 06:34:24 +0000 (14:34 +0800)]
perf: fix the install-python_ext on upstream kernel

The Perf source code between Yocto and upstream are different, like below
commit is not in upstream, so broaden the "--root" replacement to Makefile*

   commit 33e96fb1e2d77541e81eb341ccd3fbe9419e4c9a
   Author: Tom Zanussi <tom.zanussi@intel.com>
   Date:   Tue Jul 3 13:07:23 2012 -0500

      perf: change --root to --prefix for python install

      Otherwise we get the sysroot path appended to the build path, not what
      we want.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosystemd: fix missing space in SRC_URI append
Martin Jansa [Tue, 15 Sep 2015 05:23:03 +0000 (07:23 +0200)]
systemd: fix missing space in SRC_URI append

* it was introduced in:
  commit 5196d7bacaef1076c361adaa2867be31759c1b52
  Author: Aníbal Limón <anibal.limon@linux.intel.com>
  Date:   Fri Aug 28 11:15:01 2015 -0500
  Subject: systemd: Increase devices timeout in QEMU machines to avoid failures on serial-getty

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython: remove --with-wctype-functions configure option
Erkka Kääriä [Tue, 15 Sep 2015 07:42:33 +0000 (10:42 +0300)]
python: remove --with-wctype-functions configure option

This option is causing issues with python unicode support. Several unicode
related regression tests are currently failing (test_re and test_codecs for
example) and removing this option fixes these.

This configure option mostly seems to be historical. Discussion related to
python issue 9210 (https://bugs.python.org/issue9210) indicates its original
goal was to save memory and that the option should have been deprecated ages
ago.

Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agokmod: fix link creation when base_bindir != /bin
Joshua Lock [Mon, 14 Sep 2015 15:41:20 +0000 (16:41 +0100)]
kmod: fix link creation when base_bindir != /bin

If base_bindir is not a direct child of / the link creation in
do_install_append creates incorrect relative links.

Instead pass a full path to the link source too the lnr script
to create a relative link.

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoprelink: Move to latest release
Mark Hatle [Mon, 14 Sep 2015 15:47:17 +0000 (10:47 -0500)]
prelink: Move to latest release

[YOCTO #8227]

The latest release has a fix for prelinking on ARM with recent binutils.

For more information on why the change was necessary, see:

  https://sourceware.org/ml/binutils/2014-06/msg00228.html

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoglibc: don't require bash for nscd init script
Ross Burton [Mon, 14 Sep 2015 15:37:30 +0000 (16:37 +0100)]
glibc: don't require bash for nscd init script

The nscd init script uses #! /bin/bash but only really uses one bashism
(translated strings), so remove them and switch the shell to #! /bin/sh.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/decorators: Added decorator to restart the DUT in case of test hang.
Lucian Musat [Tue, 15 Sep 2015 15:11:59 +0000 (18:11 +0300)]
oeqa/decorators: Added decorator to restart the DUT in case of test hang.

Once the DUT is hanged during testing, currently all the following test
cases have to wait for default timeout to exit. Using this decorator the
user can choose a timeout at case by case basis and what happens when the
timeout is reached by overwriting the self.target.restart method.

[YOCTO #7853]

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinit-install-efi.sh: Avoid /mnt/mtab creation if already present
Leonardo Sandoval [Mon, 3 Aug 2015 15:01:04 +0000 (15:01 +0000)]
init-install-efi.sh: Avoid /mnt/mtab creation if already present

The base-files recipe installs /mnt/mtab (it is a softlink of /proc/mounts),
so if an image includes the latter, there is no new to created it again inside
the install-efi.sh script, otherwise an error may occur as indicated on the
bug's site.

[YOCTO #7971]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: Update to upstream patches
Richard Purdie [Mon, 14 Sep 2015 10:20:53 +0000 (10:20 +0000)]
qemu: Update to upstream patches

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: remove redundant lines in smc91c111_fix.patch
Kai Kang [Mon, 14 Sep 2015 08:22:46 +0000 (16:22 +0800)]
qemu: remove redundant lines in smc91c111_fix.patch

Remove redundant lines in smc91c111_fix.patch which caused command patch
of lower version fails to work.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowebkitgtk: Add patch to fix gcc5 compile issues
Richard Purdie [Mon, 14 Sep 2015 09:02:48 +0000 (09:02 +0000)]
webkitgtk: Add patch to fix gcc5 compile issues

Without this patch, webkitgtk fails to build with gcc5. I found Khem had
sent the patch against Qt for the same issue we were seeing on mips/ppc.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowebkitgtk: add a new recipe for latest upstream version
Alexander Kanavin [Thu, 10 Sep 2015 18:18:07 +0000 (21:18 +0300)]
webkitgtk: add a new recipe for latest upstream version

Also, add a backported patch that prevents too long command lines from
happening.

Recipe for the obsolete webkit-gtk 1.8.3 is removed in a separate commit.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodistutils.bbclass: Handle python-backport modules
Alejandro Hernandez [Thu, 10 Sep 2015 15:51:33 +0000 (15:51 +0000)]
distutils.bbclass: Handle python-backport modules

When installing backport modules they stumble upon each other, complaining with
the following error:

ERROR: The recipe python-backports-ssl is trying to install files into a shared
area when those files already exist.

This is the correct behavior since thats just the way they were designed, all backport
modules provide an __init__.py file (the same among all packages), and without it they
simply wouldnt work.

distutils handles FILES_${PN}* variables for python packages, but it uses wildcards
to include the required files, hence removing the __init__.py files from each backport
package during build time is impossible since it doenst actually contain that value,
this patch simply removes the __init__.py* files from the staging area if they already
exist on sysroot, this way, these are not included in FILES_${PN} anymore, fixing the
issue mentioned above.

[YOCTO #8207]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoxorg-driver: Fix logical && with bitwise and operation
Khem Raj [Mon, 7 Sep 2015 08:54:15 +0000 (08:54 +0000)]
xorg-driver: Fix logical && with bitwise and operation

This must have been a typo which is a bug infact we should have used
bitwise & in first place.

(From OE-Core rev: 697c6cba6a3d8d2b942c4758a115a063f65febe9)

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 agodistro: update include files related to webkitgtk and epiphany addition
Alexander Kanavin [Fri, 14 Aug 2015 08:34:37 +0000 (11:34 +0300)]
distro: update include files related to webkitgtk and epiphany addition

This commit fixes recipe metadata in distro_alias, package_regex and
upstream_tracking includes.

(From OE-Core rev: 3fe3df9ea152d6ec39e114d831be24e1aa529165)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomidori: remove the recipe and replace references to midori with epiphany
Alexander Kanavin [Thu, 4 Jun 2015 10:23:48 +0000 (13:23 +0300)]
midori: remove the recipe and replace references to midori with epiphany

(From OE-Core rev: b7e14c77ffb3d994d59ddc076d7e0263f39546c1)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowebkit-gtk: remove the recipe for the obsolete version 1.8.3
Alexander Kanavin [Mon, 15 Jun 2015 14:15:39 +0000 (17:15 +0300)]
webkit-gtk: remove the recipe for the obsolete version 1.8.3

webkitgtk 2.8.3 is provided instead and midori browser is replaced by epiphany in
separate commits.

(From OE-Core rev: 1a72dc9c44c7806c869c3b3afcd5d31bcf2da979)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoepiphany: add a recipe from meta-gnome
Alexander Kanavin [Wed, 10 Jun 2015 12:41:01 +0000 (15:41 +0300)]
epiphany: add a recipe from meta-gnome

Epiphany is replacing midori as the browser in oe-core recipe set
and poky distribution.

(From OE-Core rev: cf1ad936487d5d068304b6e2565bfd556d81baef)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage_types.bbclass: Restore compatibility with previous UBI filesystems
Mike Looijmans [Fri, 11 Sep 2015 17:06:40 +0000 (19:06 +0200)]
image_types.bbclass: Restore compatibility with previous UBI filesystems

Support for multiple ubi images has broken dozens of machine deployment scripts
in two ways:
Previously, ubi filesystems would be named $IMAGE_NAME as one would expect. The
current version would append "_rootfs" to that name for no reason. Fix it so that
the name for ubi images remains unchanged if there is only one image to build.
Machines would append to IMAGE_CMD_ubi, adding extra image processing of their
own. This is broken now that IMAGE_CMD_ubi became a variable instead of a function.
Make IMAGE_CMD_ubi a function again, this also makes for more logical quotes (I
was surprised to find that " within " would even work).

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.py: Allow IMAGE_LINK_NAME to be empty
Mike Looijmans [Fri, 11 Sep 2015 17:02:44 +0000 (19:02 +0200)]
image.py: Allow IMAGE_LINK_NAME to be empty

When IMAGE_LINK_NAME is empty, OE will try to create a "blank" link instead
of just skipping it. The code checks for "link_name is not None" which will
never evaluate to true. Change the test to a simple "if link_name:" so it
no longer attempt to create links when the variable is an empty string.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoas-needed.inc: add babeltrace exception
Nathan Lynch [Sat, 12 Sep 2015 00:02:50 +0000 (19:02 -0500)]
as-needed.inc: add babeltrace exception

The babeltrace command has plugins which it specifies in its link step
but on which (in the linker's view) it does not depend, so --as-needed
causes some of them to be omitted from the executable's dependencies.
This prevents babeltrace on OE-built systems from handling
streaming/live tracing sessions.

Babeltrace's makefiles already try to prevent this by using
--no-as-needed, but --as-needed gets placed afterward in the command
line, so it wins.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: reformat 0063-nativesdk-gcc-support.patch
Roy Li [Fri, 7 Aug 2015 08:11:03 +0000 (16:11 +0800)]
gcc: reformat 0063-nativesdk-gcc-support.patch

0063-nativesdk-gcc-support.patch can not be applied to source code due to
the buggy patch command on sled11, so reformat it, nothing is changed.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa: Fix Upstream-Status statements
Ross Burton [Thu, 10 Sep 2015 18:59:47 +0000 (19:59 +0100)]
meta: Fix Upstream-Status statements

Fix a variety of problems such as typos, bad punctuations, or incorrect
Upstream-Status values.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: Handle core-image-lsb-sdk qemumips test restriction
Richard Purdie [Fri, 11 Sep 2015 22:24:40 +0000 (23:24 +0100)]
testimage: Handle core-image-lsb-sdk qemumips test restriction

On qemumips, some tests are slow to the point of the autobuilder appearing
hung. We therefore specifically exclude buildsudoku but to do this, we need
to list the tests we expect to work on core-image-lsb-sdk.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/targetbuild: Ensure we run gnu-configize so config files are up to date
Richard Purdie [Fri, 11 Sep 2015 12:26:35 +0000 (13:26 +0100)]
oeqa/targetbuild: Ensure we run gnu-configize so config files are up to date

On aarch64 we need to do this as the versions in the upstream source don't
recognise the target triplet causing SDK test failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_base: Fix aarch64 OLDEST_KERNEL sdk issues
Richard Purdie [Fri, 11 Sep 2015 12:25:46 +0000 (13:25 +0100)]
populate_sdk_base: Fix aarch64 OLDEST_KERNEL sdk issues

aarch64 sets OLDEST_KERNEL to 3.14. This stops the aarch64 SDK installing on
anything with an older kernel which is clearly incorrect.

I attempted to extract the correct non-overridden version from the data store
but it proved problematic and I was running into data store issues. Those
are a separate problem but there isn't time to fix this right now.

Instead just code the SDK kernel version separately to work around this for
now (and fix the autobuilder tests and SDK usage).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: Fix SDK extraction error handling
Richard Purdie [Fri, 11 Sep 2015 12:24:50 +0000 (13:24 +0100)]
testimage: Fix SDK extraction error handling

Currently if the SDK fails to extract, no error is shown and the test is marked
as passed! Clearly this is incorrect, fix it to correctly raise an error.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: update-recipe: get srcuri parameters with decodeurl()
Markus Lehtonen [Fri, 11 Sep 2015 10:08:08 +0000 (13:08 +0300)]
devtool: update-recipe: get srcuri parameters with decodeurl()

Use already existing bb.fetch.decodeurl() for getting the parameters for
a URI. This is more fault tolerant and maintainable.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "ptest: use fakeroot for do_install_ptest_base"
Ross Burton [Thu, 10 Sep 2015 10:22:24 +0000 (11:22 +0100)]
Revert "ptest: use fakeroot for do_install_ptest_base"

This reverts commit 56c5fa106eeccda2ca92dbeb73ff01ba40992e7d.

(This fix was incorrect and there is a better fix due to be merged)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agou-boot.inc: Add host compiler flags and openssl-native dependency
Nathan Rossi [Thu, 10 Sep 2015 10:24:12 +0000 (20:24 +1000)]
u-boot.inc: Add host compiler flags and openssl-native dependency

U-Boot will compile its own tools during the build, with specific
configurations (aka when CONFIG_FIT_SIGNATURE is enabled) the host tools
require openssl. This patch adds 'openssl' as a PACKAGECONFIG that
enables the use of openssl-native as a dependency and also adds the
HOSTCC flags that U-Boot uses when compiling the host tools.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-compare: add support for examining deb and ipk packages
Paul Eggleton [Tue, 8 Sep 2015 13:41:51 +0000 (14:41 +0100)]
build-compare: add support for examining deb and ipk packages

This is just rudimentary support at the moment as we'd potentially want
to compare the control files a bit more specifically than this does, but
it's a start.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/sstate: break out function to get sstate manifest filename
Paul Eggleton [Tue, 8 Sep 2015 13:41:50 +0000 (14:41 +0100)]
classes/sstate: break out function to get sstate manifest filename

It is useful in a few different contexts to see which files have been
written out by an sstate task; break out a function that lets us get the
path to the manifest file easily.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu: avoid image file name mismatches
Patrick Ohly [Wed, 9 Sep 2015 15:12:05 +0000 (17:12 +0200)]
runqemu: avoid image file name mismatches

Giving anything with -image in it as bootparams or in qemuparams (for
example, an additional -drive parameter with an image file or an
"-initrd .../core-image-minimal-initramfs-qemux86.cpio.gz") caused
runqemu to treat these parameters as names of the rootfs image file.

Matching *-image) after checking the current argument for more
specific cases like bootparams and qemuparams avoids this
misinterpretation of the command line parameters.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agou-boot.inc: Add U-Boot ELF install and deploy
Nathan Rossi [Wed, 9 Sep 2015 14:13:19 +0000 (00:13 +1000)]
u-boot.inc: Add U-Boot ELF install and deploy

Add support for U-Boot recipes to install and deploy the generated ELF
files for each config. The U-Boot ELF's are useful for debugging, and
booting (directly booting, e.g. by JTAG or using QEMU) and complement
the generated binary image.

This additional feature is disabled by default, machines/etc that want
to use it need to set UBOOT_ELF to the corresponding ELF file (generally
u-boot or u-boot.elf depending on the architecture)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoconnman: upgrade to 1.30
Cristian Iorga [Wed, 9 Sep 2015 15:36:50 +0000 (18:36 +0300)]
connman: upgrade to 1.30

Bugfixes.

build-create-dirs-before-putting-files-in-them.patch
patch removed, patch included upstream.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitramfs-framework: support dropping into shell on failure
Patrick Ohly [Mon, 7 Sep 2015 11:16:38 +0000 (13:16 +0200)]
initramfs-framework: support dropping into shell on failure

When the init_fatal_sh boot parameter is present (i.e. used without
value) and a fatal problem occurs inside the initramfs-module, a shell
will be started instead of looping forever.

Useful for debugging.

Interestingly enough, the code was already indented to support such an
if check...

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitramfs-framework: support init boot parameter
Patrick Ohly [Tue, 8 Sep 2015 11:19:01 +0000 (13:19 +0200)]
initramfs-framework: support init boot parameter

It can be useful for debugging to override the default /sbin/init.
This is something typically done via the init boot parameter which
then gets interpreted by the kernel. But when using an initramfs, it
is the initramfs which must react to the option.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitramfs-framework: support ro boot parameter
Patrick Ohly [Tue, 8 Sep 2015 13:25:49 +0000 (15:25 +0200)]
initramfs-framework: support ro boot parameter

Default is to mount the rootfs read/write. "ro" can be used to turn
that into read-only, which is useful on systems where userspace does
an fsck before remounting read-write.

Giving both "ro" and "rw" will still mount read-only regardless of the
order, because the ordering information is not preserved by the
initramfs-framework's boot param support.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitramfs-framework: support rootflags and rootfstype boot parameter
Patrick Ohly [Mon, 7 Sep 2015 11:05:42 +0000 (13:05 +0200)]
initramfs-framework: support rootflags and rootfstype boot parameter

These two parameters are supported by the kernel
(https://www.kernel.org/doc/Documentation/kernel-parameters.txt). When
an initramfs is used, the kernel does not mount the rootfs and the
initramfs needs to react to them.

The boot parameters can be set both by the image creator and
by users.

Supporting these two parameters is useful:
- rootflags is needed to ensure that the rootfs is already mounted as
  intended in the time between starting init and init remounting
  it (as systemd does); this is critical for IMA where iversion must be
  active already when system starts writing files.
- setting it correctly up-front avoids messages from the kernel ("cannot
  mount ... as ext2 because ...") when trying to guess the desired type.

For example, assuming that only one of ext4/ext3/ext2 is set,
rootfstype could be set in an image recipe with:
APPEND_append = "${@''.join([' rootfstype=' + i for i in ['ext4', 'ext3', 'ext2'] if i in d.getVar('IMAGE_FSTYPES', True).split()])}"

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodirectfb: Avoid using VLAs and printf formats
Khem Raj [Tue, 8 Sep 2015 22:12:46 +0000 (22:12 +0000)]
directfb: Avoid using VLAs and printf formats

These are not portable features and are flagged by clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomdadm: Fix bugs exposed by clang
Khem Raj [Tue, 8 Sep 2015 08:34:21 +0000 (08:34 +0000)]
mdadm: Fix bugs exposed by clang

clang points to coding errors which otherwise go unnoticed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agosudo: Disable rsize_t deliberately
Khem Raj [Mon, 7 Sep 2015 10:09:37 +0000 (10:09 +0000)]
sudo: Disable rsize_t deliberately

gcc does not have it but clang does, problem happens when host compiler
is gcc and cross compiler is clang, because autoconf detects it with
clang and slaps it to host compiler as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopuzzles: Fix build with clang
Khem Raj [Mon, 7 Sep 2015 09:06:10 +0000 (09:06 +0000)]
puzzles: Fix build with clang

Clang uncovered an error where abs() is used on long types, we shoud be
using labs()

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agokexec-tools: Pass -r directly to linker
Khem Raj [Mon, 7 Sep 2015 08:27:27 +0000 (08:27 +0000)]
kexec-tools: Pass -r directly to linker

-r is understood by gcc but not by clang, anyway its a linker option so
pass it straight to linker by using -Wl explicitly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoalsa-tools: Fix compiling with clang
Khem Raj [Mon, 7 Sep 2015 08:25:19 +0000 (08:25 +0000)]
alsa-tools: Fix compiling with clang

Fixed a linking error occurring when building with clang, where a
function reference is emitted but function is not since its marked as
inline, making it static inline gives better opportunity to compiler to
compile it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolatencytop: Fix build with clang
Khem Raj [Mon, 7 Sep 2015 07:45:00 +0000 (07:45 +0000)]
latencytop: Fix build with clang

Clang is stricter with syntax checking and flags the functions return
values if they dont match with function signatures, Fixed thusly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoccache: Dont add LDFLAGS to compiler flags
Khem Raj [Mon, 7 Sep 2015 07:18:25 +0000 (07:18 +0000)]
ccache: Dont add LDFLAGS to compiler flags

This is no longer required, its been carried over for a long time. As a
side effect it helps compiling ccache with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobdwgc: Include signal.h instead of hard asm/sigcontext.h
Khem Raj [Wed, 2 Sep 2015 03:23:15 +0000 (03:23 +0000)]
bdwgc: Include signal.h instead of hard asm/sigcontext.h

All cases are about glibc and for non-glibc systems it falls back to
last else choice which still is glibc's older version, ideally it
should have a case where libc != glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agominicom: Fix build with musl
Khem Raj [Wed, 2 Sep 2015 03:21:58 +0000 (03:21 +0000)]
minicom: Fix build with musl

musl exposes the inherent assumption about certain header files from
glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoman: Use -DSYSV when builing for linux
Khem Raj [Mon, 31 Aug 2015 19:41:23 +0000 (19:41 +0000)]
man: Use -DSYSV when builing for linux

We needed this define but were getting away since glibc indirectly
included fcntl.h but man sources clearly guard inclusion of fcntl.h with
SYSV, this is uncovered with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosudo: Include sys/types.h for id_t definition
Khem Raj [Mon, 31 Aug 2015 15:59:32 +0000 (15:59 +0000)]
sudo: Include sys/types.h for id_t definition

This is exposed by musl, on glibc sys/types.h comes as indirect include
from other include myriad.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoslang: Fix namespace conflict vis-a-vis posix_close
Khem Raj [Mon, 31 Aug 2015 06:37:01 +0000 (06:37 +0000)]
slang: Fix namespace conflict vis-a-vis posix_close

Fixes errors like

|
/home/ubuntu/work/oe/openembedded-core/build/tmp-musl/work/core2-64-oe-linux-musl/slang/2.2.4-r12/slang-2.2.4/src/slpo
sio.c:366:12: error: conflicting types for 'posix_close'
|  static int posix_close (SLFile_FD_Type *f)
|             ^
| In file included from
/home/ubuntu/work/oe/openembedded-core/build/tmp-musl/work/core2-64-oe-linux-musl/slang/2.2.4-r1
2/slang-2.2.4/src/slinclud.h:20:0,
|                  from
/home/ubuntu/work/oe/openembedded-core/build/tmp-musl/work/core2-64-oe-linux-musl/slang/2.2.4-r1
2/slang-2.2.4/src/slposio.c:24:
|
/home/ubuntu/work/oe/openembedded-core/build/tmp-musl/sysroots/qemux86-64/usr/include/unistd.h:38:5:
note: previous de
claration of 'posix_close' was here
|  int posix_close(int, int);
|      ^
| make[1]: ***
[/home/ubuntu/work/oe/openembedded-core/build/tmp-musl/work/core2-64-oe-linux-musl/slang/2.2.4-r12/slang-
2.2.4/src/elfobjs/slposio.o] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoirda-utils: Weak Define the build TARGETS
Khem Raj [Mon, 31 Aug 2015 06:17:20 +0000 (06:17 +0000)]
irda-utils: Weak Define the build TARGETS

This will help one to disable the targets via bbappends if needed
e.g. musl can not compile irdaping since it uses includes
net/if_packet.h, which (on GLIBC) only defines struct sockaddr_pkt but
not in other libc e.g. musl that makes irdaping specific to glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobjam-native: build and install bjam.debug
Wenzong Fan [Tue, 4 Aug 2015 02:33:11 +0000 (10:33 +0800)]
bjam-native: build and install bjam.debug

bjam is stripped by default, this causes QA warning while stripping it
from do_populate_sysroot():

  WARNING: File '.../tmp/sysroots/x86_64-linux/usr/bin/bjam' \
    from bjam-native was already stripped, \
    this will prevent future debugging!

The JAM scripts allow to build unstripped version with '--debug'. Just
build and install the bjam.debug to stop bjam from being stripped in
compile step.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-5.2: remake 0040-nativesdk-gcc-support.patch
Robert Yang [Wed, 9 Sep 2015 07:08:15 +0000 (00:08 -0700)]
gcc-5.2: remake 0040-nativesdk-gcc-support.patch

It couldn't be applied by sled11's patch, now fix it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobind: fix compile failure when building path is long
Chen Qi [Wed, 9 Sep 2015 05:40:03 +0000 (13:40 +0800)]
bind: fix compile failure when building path is long

Fix the building path is long, when building bind, we would meet the following
error.

    ".../long/path/to/bind/9.10.2-P3-r0/bind-9.10.2-P3/lib/dns" too long

This is because the in gen.c, DIRNAMESIZE is limited to 256. But in OE, the
path length limit is more than 400. So we change it to 512.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosstate: only fetch remote signatures if verification is enabled
Ross Burton [Wed, 9 Sep 2015 12:35:05 +0000 (13:35 +0100)]
sstate: only fetch remote signatures if verification is enabled

Only fetch remote signatures if verification has been enabled, as otherwise the
fetcher throws errors that sstate.bbclass can't ignore.

[ YOCTO #8265 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>