]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agobase.bbclass: Add LIC_FILES_CHKSUM files to checksum files.
Randy Witt [Mon, 2 Mar 2015 18:55:37 +0000 (10:55 -0800)]
base.bbclass: Add LIC_FILES_CHKSUM files to checksum files.

Previously, files with absolute paths in LIC_FILES_CHKSUM such as
"file://${COMMON_LICENSE_DIR}/foo" would not result in a qa failure
when the license file changed.

To fix this problem, add any files with absolute paths from
LIC_FILES_CHKSUM to the file-checksums varflag, so that changes in the
license file are detected and cause the qa task for licenses to run.

[Yocto #6450]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosed: Cope with ${bindir} and ${base_bindir} being the same
Mike Crowe [Thu, 5 Feb 2015 17:50:23 +0000 (17:50 +0000)]
sed: Cope with ${bindir} and ${base_bindir} being the same

${bindir} and ${base_bindir} may be the same. If they are don't try and
move files onto themselves.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibtool: put libltdl.la in the right package.
Li Zhou [Mon, 2 Mar 2015 10:30:22 +0000 (18:30 +0800)]
libtool: put libltdl.la in the right package.

The libltdl libraries are put in libltdl-* packages, but libltdl.la
is packaged in libtool-dev. This change puts libltdl.la in libltdl-dev
package instead of libtool-dev.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoglibc_2.21.bb: Fix condition to skip parsing the recipe for non-glibc libc
Khem Raj [Fri, 27 Feb 2015 17:19:55 +0000 (17:19 +0000)]
glibc_2.21.bb: Fix condition to skip parsing the recipe for non-glibc libc

The condition should be uclibc 'or' musl then we know its not glibc
right now it checks with 'and' operator, that condition will never be
true

Change-Id: Ifc48e81fd0b3c18d8e1ef76a18c216dc6acda092
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibgpg-error: Add -P option to CPPFLAGS
Khem Raj [Fri, 27 Feb 2015 17:19:53 +0000 (17:19 +0000)]
libgpg-error: Add -P option to CPPFLAGS

Fixes https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1301822.html

libgpg-error FTBFS when built with gcc-5. Here is the relevant excerpt:

| Making all in src
| make[4]: Entering directory '/tmp/buildd/libgpg-error/libgpg-error-1.17/src'
| gawk -f ./mkstrtable.awk -v textidx=3 \
|         ./err-sources.h.in >err-sources.h
| gawk -f ./mkstrtable.awk -v textidx=3 \
|         ./err-codes.h.in >err-codes.h
| gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
| gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
| gcc -E -D_FORTIFY_SOURCE=2  _mkerrcodes.h | grep GPG_ERR_ | \
|                gawk -f ./mkerrcodes.awk >mkerrcodes.h
| rm _mkerrcodes.h
| gcc -I. -I. -o mkerrcodes ./mkerrcodes.c
| In file included from ./mkerrcodes.c:26:0:
| ./mkerrcodes.h:9:5: error: expected expression before ',' token
|    { , "GPG_ERR_E2BIG" },
|      ^

It makes invalid assumptions on undefined behaviour of gcc. To see why,
let us look at the contents of the intermediate steps:

_mkerrcodes.h (deleted):
| ...
| #ifdef E2BIG
| E2BIG   GPG_ERR_E2BIG
| #endif
| #ifdef WSAE2BIG
| WSAE2BIG        GPG_ERR_E2BIG
| #endif
| ...

gcc -E -D_FORTIFY_SOURCE=2  _mkerrcodes.h | grep -v '^$':
| ...
| # 26 "_mkerrcodes.h" 2
| 7
| # 31 "_mkerrcodes.h"
|      GPG_ERR_E2BIG
| # 37 "_mkerrcodes.h" 3 4
| 13
| # 37 "_mkerrcodes.h"
|       GPG_ERR_EACCES
| ...

As can be seen here, the cpp from gcc-5 can split lines and "grep
GPG_ERR_" fails to account for that.

Change-Id: I6f1476e4afc7163ebc3a05106ceaa3b83e3fab3e
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: rawcopy: support skipping
Alexandre Belloni [Sun, 1 Mar 2015 12:54:16 +0000 (13:54 +0100)]
wic: rawcopy: support skipping

Add support for skipping the beginning of a file with the rawcopy
plugin.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: add fsimage plugin
Alexandre Belloni [Sun, 1 Mar 2015 12:54:15 +0000 (13:54 +0100)]
wic: add fsimage plugin

The fsimage plugin allows to add an already existing filesystem image in
the partition layout.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: fix fstab generation
Alexandre Belloni [Sun, 1 Mar 2015 12:54:14 +0000 (13:54 +0100)]
wic: fix fstab generation

Commit 0a6668f6e60b4195ff4163c00fc972bacdb27b4b still included some
debug and is not working properly as the new fstab is generated too
late.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: avoid parsing error when 'networkd' is enabled in PACKAGECONFIG
Chen Qi [Mon, 2 Mar 2015 07:37:48 +0000 (15:37 +0800)]
systemd: avoid parsing error when 'networkd' is enabled in PACKAGECONFIG

If 'networkd' is enabled in PACKAGECONFIG, the do_install variable cannot
be correctly expanded. Error message is like below.

Failure expanding variable do_install: ShellSyntaxError: LexToken(Fi,'fi',0,0)
followed by:
  LexToken(NEWLINE,'\n',0,0)

This patch fixes the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogcc-source: fix bug to avoid building error.
Bian Naimeng [Mon, 2 Mar 2015 11:34:48 +0000 (19:34 +0800)]
gcc-source: fix bug to avoid building error.

gcc-source don't do do_package_write_rpm, so we should set
PACKAGES = "" to avoid the building error if we want generate srpm,
otherwise, we get the error as below.

ERROR: Task do_deploy_archives in meta/recipes-devtools/gcc/gcc-source_4.9.bb \
       depends upon non-existent task do_package_write_rpm in \
       meta/recipes-devtools/gcc/gcc-source_4.9.bb

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agometa/lib/oe/utils.py: properly implement both_contain()
Cristian Iorga [Wed, 25 Feb 2015 15:15:46 +0000 (17:15 +0200)]
meta/lib/oe/utils.py: properly implement both_contain()

oe.utils.both_contain() just does a find() on the value
rather than splitting the value and then looking in the
list of split items. The result is that if you add a
feature to MACHINE_FEATURES that itself has a substring
that matches one of the values looked for when building
COMBINED_FEATURES, you end up with an incomprehensible
error (here with "ext2i" in MACHINE_FEATURES):

ERROR: Nothing RPROVIDES 'packagegroup-base-ext2'
(but /home/balister/src/oe-core/oe-core/meta/recipes-core/
/packagegroups/packagegroup-base.bb RDEPENDS on or otherwise requires it)

Fix [YOCTO #6888].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoreport-error: Update information on the submission process
Michael Wood [Fri, 27 Feb 2015 12:15:19 +0000 (12:15 +0000)]
report-error: Update information on the submission process

The new send-error-report will prompt for review of items and the server is
now specified by using the -s argument.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoscripts/send-error-report: Rework script to support new features
Michael Wood [Fri, 27 Feb 2015 11:47:54 +0000 (11:47 +0000)]
scripts/send-error-report: Rework script to support new features

- Add arguments to allow for non-prompted sending, json encoded response
  and link backs.
- Add feature to check the server's max_log_size
- Add feature to allow reviewing of the final data
- Be a bit more helpful if the expected fields aren't filled in instead
  of exiting.
- Remove the redundant urlencode
- Add a user-agent so that the server can identify the encoding method.
- Remove custom proxy handling - urllib should 'just work'

[YOCTO #6736]
[YOCTO #7245]
[YOCTO #7105]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorecipes: add x11 to required DISTRO_FEATURES
Martin Jansa [Mon, 9 Feb 2015 12:25:15 +0000 (13:25 +0100)]
recipes: add x11 to required DISTRO_FEATURES

* it's not complete, but recipes depending on virtual/libx11 are easiest
  to spot, I've long list of PNBLACKLIST for all recipes which cannot
  be built in distro without x11 in DISTRO_FEATURES

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/runqemu: clarify help text
Bernhard Reutner-Fischer [Fri, 27 Feb 2015 19:32:58 +0000 (20:32 +0100)]
scripts/runqemu: clarify help text

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqt4: add patch for BMP denial-of-service vulnerability
Jonathan Liu [Mon, 2 Mar 2015 06:47:46 +0000 (17:47 +1100)]
qt4: add patch for BMP denial-of-service vulnerability

For further details, see:
https://bugreports.qt.io/browse/QTBUG-44547

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoman: fix bugs of makewhatis script
Jian Liu [Thu, 26 Feb 2015 02:35:52 +0000 (10:35 +0800)]
man: fix bugs of makewhatis script

- man-1.6e-whatis2.patch does not delete the tail "fi"
  fix it to avoid syntax error
- Use the command "which" to get the path of awk

Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 3 Mar 2015 13:12:50 +0000 (13:12 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: fix tmpfiles error on images without PAM
Ross Burton [Tue, 3 Mar 2015 11:54:25 +0000 (11:54 +0000)]
systemd: fix tmpfiles error on images without PAM

If PAM isn't enabled then systemd-tmpfiles on boot will fail to start with the
following error message:

Failed to copy files to /etc/pam.d: No such file or directory

This is because systemd-tmpfiles is attempting to build a usable /etc from the
skeleton in /usr/share/factory but pam.d isn't present because PAM is disabled.
Fix this by not attempting to copy pam.d in non-PAM configurations.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogstreamer1.0-plugins-bad: disable Yadif on X32
Ross Burton [Mon, 2 Mar 2015 22:25:52 +0000 (22:25 +0000)]
gstreamer1.0-plugins-bad: disable Yadif on X32

Yadif generates bad assembler when the x32 tune is enabled:

gst/yadif/yadif_template.c:244: Error: `(%edx,%r11)' is not a valid base/index expression

This should be fixed upstream but until then we can disable the Yadif
plugin if x32 is enabled.

[ YOCTO #7385 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc: Fix check for -Os.
Peter Urbanec [Mon, 2 Mar 2015 04:28:22 +0000 (15:28 +1100)]
glibc: Fix check for -Os.

The check is supposed to be for -Os, but it's actually testing -O0.

Signed-off-by: Peter Urbanec <openembedded-devel@urbanec.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-player: port to GTK+ 2
Ross Burton [Mon, 2 Mar 2015 11:41:47 +0000 (11:41 +0000)]
gst-player: port to GTK+ 2

Whilst Sato still uses GTK+ 2 we don't want the overhead of building both GTK+ 2
and GKT+ 3.  Luckily gtk-play is a simple application and it's just a small
patch away from building with GTK+ 2.

When Sato is ported to GTK+ 3 (the mythical Shuku proposal) this patch can be
removed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokern-tools: improve patch application performance
Bruce Ashfield [Mon, 2 Mar 2015 21:36:41 +0000 (16:36 -0500)]
kern-tools: improve patch application performance

Update the SRCREV for the following incremental improvement in patch
processing time:

    kgit-meta: skip patches on non-leaf nodes

    In a similar way as commit 0768d697 [kgit-meta: dont run kgit-s2q
    for
    non-leaf nodes], we can save even more processing time by not even
    analysing and linking patches if we aren't on the leaf node of the
    tree.

    This early exit can save nearly 95% of the time required to "patch"
    a tree when no changes are actually applied.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: OcteonIII support
Bruce Ashfield [Mon, 2 Mar 2015 21:36:40 +0000 (16:36 -0500)]
linux-yocto/3.14: OcteonIII support

With these SRCREV updates, we add the following support to the kernel:

The following has been verified with the branch sources:

 On 68xx:

   * SGMII, XAUI Packet IO interfaces.
   * PCIe devices
   * EHCI/OHCI USB driver

 On 78XX:

   * Ran LTP testsuite
   * SGMII, XAUI Packet IO interfaces
   * MMC driver (which covers GPIO interrupts in the driver)
   * PCIe devices
   * XHCI USB driver

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-yocto: inhibit BSP description warnings for custom linux-yocto kernels
Bruce Ashfield [Mon, 2 Mar 2015 21:36:39 +0000 (16:36 -0500)]
kernel-yocto: inhibit BSP description warnings for custom linux-yocto kernels

We don't require that a yocto custom kernel + defconfig have a full BSP
description (but of course it would be better if they did). Since this
isn't a requirement, we shouldn't alarm users by generating a BSP
description warning.

To implement this, we add a bsp audit level flag (like the one that
exists for kconfig audits), and only set it to activate in the versioned
linux-yocto recipes.

[YOCTO: #7370]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto: fix qemux86-64 config warning
Bruce Ashfield [Mon, 2 Mar 2015 21:36:38 +0000 (16:36 -0500)]
linux-yocto: fix qemux86-64 config warning

During the 3.19 update a 32 bit option in the 64 bit config was missed,
which results in the option being dropped (and reported as a warning):

  Value requested for CONFIG_PCI_GOANY not in final ".config"
  Requested value: "CONFIG_PCI_GOANY=y"
  Actual value set: ""

So we split the 32bit only drivers out of the common driver include and
the problem goes away.

[YOCTO: 7354]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotaglib: Fix cmake floating dependency on boost
Richard Purdie [Mon, 2 Mar 2015 18:05:36 +0000 (18:05 +0000)]
taglib: Fix cmake floating dependency on boost

The previous fix for this issue was incomplete. We also need to change
the source file to avoid this error. Grepping the build directory for boost
will show the issue when building taglib after boost has been built.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosecurity_flags: remove PIE flags from flex and gstreamer1.0-plugins-bad
Ross Burton [Mon, 2 Mar 2015 12:56:06 +0000 (12:56 +0000)]
security_flags: remove PIE flags from flex and gstreamer1.0-plugins-bad

These recipes both fail to build with "relocation R_X86_64_PC32 against
undefined hidden symbol `__init_array_start' can not be used when making a
shared object" when using PIE.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 27 Feb 2015 21:15:53 +0000 (21:15 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-player: only depend on -ugly plugins if commercial licenses enabled
Ross Burton [Fri, 27 Feb 2015 21:12:12 +0000 (21:12 +0000)]
gst-player: only depend on -ugly plugins if commercial licenses enabled

gstreamer1.0-plugins-ugly is protected by the "commercial" LICENSE_FLAGS, so
only recommend it if those licenses are enabled.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 27 Feb 2015 19:17:32 +0000 (19:17 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: add PACKAGECONFIG for xkbcommon and iptables
Ross Burton [Fri, 27 Feb 2015 14:57:48 +0000 (14:57 +0000)]
systemd: add PACKAGECONFIG for xkbcommon and iptables

systemd has optional support for xkbcommon (verify keymaps when locale changes)
and iptables (configure NAT rules).

Add PACKAGECONFIG options for these, disabling iptables by default and
respecting the X11 DISTRO_FEATURE for libxkbcommon (as the code involves X11
keymaps).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: use PACKAGECONFIG for PAM enable/disable
Ross Burton [Fri, 27 Feb 2015 14:57:47 +0000 (14:57 +0000)]
systemd: use PACKAGECONFIG for PAM enable/disable

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: add missing util-linux build-dependency
Ross Burton [Fri, 27 Feb 2015 14:57:46 +0000 (14:57 +0000)]
systemd: add missing util-linux build-dependency

This dependency accidently disappeared in the 219 upgrade, so add it back.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoowl-video: remove
Ross Burton [Fri, 27 Feb 2015 14:14:22 +0000 (14:14 +0000)]
owl-video: remove

The testapps packagegroup was the only user of owl-video, and now that has been
replaced by gst-player this can be deleted.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackagegroups: use gst-player instead of owl-video
Ross Burton [Fri, 27 Feb 2015 14:14:21 +0000 (14:14 +0000)]
packagegroups: use gst-player instead of owl-video

owl-video is a bad video player that doesn't work very well, use gst-player
instead for testing.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosato: fix typo in packagegroup
Ross Burton [Fri, 27 Feb 2015 14:14:20 +0000 (14:14 +0000)]
sato: fix typo in packagegroup

The gtk-play binary is packaged in gst-player-bin...

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Fri, 27 Feb 2015 07:43:07 +0000 (07:43 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython: Fix ctypes/libffi configure
Alejandro Hernandez [Thu, 26 Feb 2015 21:27:25 +0000 (15:27 -0600)]
python: Fix ctypes/libffi configure

Forces the creation of a configure script for ctypes/libffi Module
by calling autoreconf after it being deleted on do_configure().

Fixes configuration hence compilation of this Python module.

[YOCTO #7373]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_rpm.bbclass: support packaging of symlinks to directories
Patrick Ohly [Wed, 25 Feb 2015 14:53:29 +0000 (06:53 -0800)]
package_rpm.bbclass: support packaging of symlinks to directories

os.walk() returns symlinks to directories in the "dirs" lists, but then never
enters them by default. As a result, the old code applied neither the
directory handling (because that is active once a directory gets entered) nor
the file handling, and thus never packaged such symlinks.

The fix is simple: find such special directory entries and move them to the
"files" list. However, one has to be careful about the undefined behavior of
modifying a list while iterating over it.

This fix was required for packaging a modified base-files that created
symlinks into /usr for /sbin /lib and /sbin.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpcap: add pkg-config support
Joe MacDonald [Wed, 25 Feb 2015 04:39:01 +0000 (23:39 -0500)]
libpcap: add pkg-config support

libpcap was not previously installing a pkg-config file.  Add a basic one
that will allow using 'pkg-config --libs libpcap', for example, in recipes
rather than 'pcap-config', which frequently returns incorrect information.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: Upgrade 218 -> 219
Khem Raj [Wed, 25 Feb 2015 02:55:57 +0000 (02:55 +0000)]
systemd: Upgrade 218 -> 219

219 has been in the docks for sometime, the older patch got merged
this patch is now upgrading 218 to 219

Make all patches using git

Change-Id: Ib0350144592aba26cad56c13c9a5522515915c58
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibgpg-error: Upgrade 1.17 -> 1.18
Khem Raj [Wed, 25 Feb 2015 02:31:56 +0000 (02:31 +0000)]
libgpg-error: Upgrade 1.17 -> 1.18

License checksums changed due to year change

-   Copyright (C) 2003, 2004, 2010, 2013, 2014 g10 Code GmbH
+   Copyright (C) 2003, 2004, 2010, 2013, 2014, 2015 g10 Code GmbH

Change-Id: I870446796cf9ffe3acae7aeeac2d96d6305d4186
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogaku: remove (replaced by gst-player)
Ross Burton [Thu, 26 Feb 2015 17:59:02 +0000 (17:59 +0000)]
gaku: remove (replaced by gst-player)

Gaku was buggy and use GStreamer 0.10, gst-player is less buggy and uses
GStreamer 1.x.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosato: use gtk-play (from gst-player) instead of Gaku
Ross Burton [Thu, 26 Feb 2015 17:59:01 +0000 (17:59 +0000)]
sato: use gtk-play (from gst-player) instead of Gaku

The Gaku media player was always a bit incomplete and had some serious bugs.
gst-player doesn't have these bugs, is maintained, and uses GStreamer 1.x.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-player: add
Ross Burton [Thu, 26 Feb 2015 17:59:00 +0000 (17:59 +0000)]
gst-player: add

gst-player is a convenience library for handling media playback in GStreamer.
It also has a sample application that can be used as a basic media player for
testing.

Patch in a file selector for use without a terminal and a desktop file so it
appears in the desktop.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/terminal: fix konsole terminal support for KDE 4.x
Paul Eggleton [Wed, 25 Feb 2015 11:22:25 +0000 (11:22 +0000)]
lib/oe/terminal: fix konsole terminal support for KDE 4.x

It seems that the --nofork option genuinely stops konsole from going
into the background now; I'm not sure when this changed but it does seem
to be working so we can use it. (Tested with Konsole 2.10 and 2.14.2).

Fixes [YOCTO #4934].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/terminal: fix regressions
Paul Eggleton [Wed, 25 Feb 2015 11:22:24 +0000 (11:22 +0000)]
lib/oe/terminal: fix regressions

Fix up some issues introduced by OE-Core commit
818c94f5b9882c2028ef9f056714a0a3c9045551:

* If we want to support versions with more than two parts, versions with
  only one part, or versions with non-integer parts, then we have to
  stay with strings. We can use distutils.version.LooseVersion() to help
  with comparisons.
* We don't want a warning when launching gnome-terminal 3.10+ and
  logger.warn() doesn't take a first integer parameter anyway
  (logger.debug() does).
* Also clean up tabs.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 24 Feb 2015 23:37:49 +0000 (23:37 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoterminal.py: No --disable-factory for gnome-terminal >= 3.10
Sven Ebenfeld [Mon, 23 Feb 2015 19:39:41 +0000 (20:39 +0100)]
terminal.py: No --disable-factory for gnome-terminal >= 3.10

--disable-factory has been disabled in earlier versions of gnome-terminal
but from version 3.10 it raises an error and quits. This makes devshell
unusable with gnome-terminal >= 3.10. This patch checks for the version and
removes --disable-factory if you have the terminal version 3.10 or higher.

Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: Upgrade 216 -> 218
Khem Raj [Tue, 24 Feb 2015 18:07:26 +0000 (18:07 +0000)]
systemd: Upgrade 216 -> 218

Remove upstreamed patches as well as patches which arent needed anymore
since features are dropped from systemd e.g. userspace firmware download
Tested on qemux86

Change-Id: Ic53aaad198998de146c3a7702ef17de871de9de6
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>
10 years agoutil-linux: disable systemd
Ross Burton [Tue, 24 Feb 2015 18:07:25 +0000 (18:07 +0000)]
util-linux: disable systemd

systemd has a build-dependency on util-linux for libmount, and util-linux has an
optional build dependency on systemd.

The features in util-linux that enabling systemd gives you are:
* lslogins can show recent journal entries from the user
* uuidd can use socket activation and has a service file
* fstrim has a service file
* logger can write journal entries

These are not worth the overhead of maintaining two util-linux recipes to
bootstrap the cycle, so disable systemd support in util-linux.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-native: Fixes PGEN linking errors Changes Makefile rules to avoid parallel...
Alejandro Hernandez [Tue, 24 Feb 2015 06:08:08 +0000 (00:08 -0600)]
python-native: Fixes PGEN linking errors Changes Makefile rules to avoid parallel make races when trying to build Parser/PGEN

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc: Help compile with -Os
Khem Raj [Tue, 24 Feb 2015 06:39:59 +0000 (06:39 +0000)]
glibc: Help compile with -Os

When we modify to use -Os
-Werror doesnt go well with it, glibc needs to be
cleaned up for that but until then lets disable -Werror
when using -Os

Also updates the options group patch to work better with -Os.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-plugins-package.inc: Avoid dependency on ${PN} from ${PN}-<plugin>
Peter Kjellerstedt [Sat, 21 Feb 2015 03:01:54 +0000 (04:01 +0100)]
gst-plugins-package.inc: Avoid dependency on ${PN} from ${PN}-<plugin>

A recent change to this file added a runtime dependency from ${PN} on
${PN}-meta since users tend to believe that installing the main
package will bring in all of the individual plugin packages, which
previously was not the case. However, since all plugin packages had a
dependency on the main package, this caused all plugin packages to be
pulled in whenever one plugin package was installed...

Since the main package is now guaranteed to be empty, there is no
reason for the plugin packages to depend on it any more.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorecipes: Delete superfluous assignments, S = ${WORKDIR}/${BP}
Robert P. J. Day [Sat, 21 Feb 2015 21:28:42 +0000 (16:28 -0500)]
recipes: Delete superfluous assignments, S = ${WORKDIR}/${BP}

Given that bitbake.conf sets the default values:

BP = "${BPN}-${PV}"
S = "${WORKDIR}/${BP}"

there are a number of recipes that set the variable S completely
superfluously, so get rid of them.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobusybox:udhcpc: Remove the routes from the right interface
Holger Hans Peter Freyther [Sat, 21 Feb 2015 20:13:08 +0000 (21:13 +0100)]
busybox:udhcpc: Remove the routes from the right interface

When using iproute2 to remove the route all default rules
will be removed. Scope the removal by interface like it is
done with ifconfig.

Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobusybox:udhcpc: Start with a metric of 10 for routes
Holger Hans Peter Freyther [Sat, 21 Feb 2015 20:13:07 +0000 (21:13 +0100)]
busybox:udhcpc: Start with a metric of 10 for routes

Linux allows to install multiple default routes with
different metrics. Start with a metric above 0 to
allow other parts of the system to install routes
with a lower metric.

Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobase-files: clean up and clarify hostname logic
Ross Burton [Mon, 23 Feb 2015 17:39:24 +0000 (17:39 +0000)]
base-files: clean up and clarify hostname logic

Change the hostname logic the default value is ${MACHINE}, and explain how to
change it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopopulate_sdk_ext: add extensible SDK
Randy Witt [Mon, 23 Feb 2015 17:00:43 +0000 (17:00 +0000)]
populate_sdk_ext: add extensible SDK

This bbclass will create an SDK with a copy of bitbake and the metadata
and sstate for the target specified for the task. The idea is to let
"system" developers both work on applications and then test adding them
to an image without having to switch between workspaces or having to
download separate items.

Rather than running bitbake directly however, the primary way of running
builds within the extensible SDK is to use the "devtool" command. The
rest of the build system is fixed via locked shared state signatures,
and thus only the recipes you have added get built.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/oe-buildenv-internal: add means of skipping SDK check during setup
Randy Witt [Mon, 23 Feb 2015 17:00:42 +0000 (17:00 +0000)]
scripts/oe-buildenv-internal: add means of skipping SDK check during setup

The oe-buildenv-internal script checks if the user is already in an sdk
environment and errors if true. Add a way to skip this check.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agouninative-tarball: Actually use bzip2 for compression.
Randy Witt [Mon, 23 Feb 2015 17:00:41 +0000 (17:00 +0000)]
uninative-tarball: Actually use bzip2 for compression.

uninative.bbclass uses -xjf for decompression so actually run the data
through bzip2.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoolchain-shar-template.sh: Make relocation optional.
Randy Witt [Mon, 23 Feb 2015 17:00:40 +0000 (17:00 +0000)]
toolchain-shar-template.sh: Make relocation optional.

If the buildsystem is copied into the sdk and its toolchain is to
be used, then the relocation provided in toolchain-shar-template.sh
isn't needed and will actually fail.

So break the relocation aspect out and essentially make it another
SDK_POST_INSTALL_COMMAND script.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoolchain-scripts: Add parameters to toolchain_create_sdk_env_script.
Randy Witt [Mon, 23 Feb 2015 17:00:39 +0000 (17:00 +0000)]
toolchain-scripts: Add parameters to toolchain_create_sdk_env_script.

To add some flexibility to setting up the paths for the toolchain,
add some parameters. This initial use will be in order to point at
the buildsystem toolchain copied in by copy_buildsystem.py.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocopy_buildsystem.py: Add methods to copy shared state.
Randy Witt [Mon, 23 Feb 2015 17:00:38 +0000 (17:00 +0000)]
copy_buildsystem.py: Add methods to copy shared state.

Added the helper functions necessary to copy the sstate from the
current build, and generate the file to "lock" it.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocopy_buildsystem.py: Add a way to copy buildsystem to a directory.
Randy Witt [Mon, 23 Feb 2015 17:00:37 +0000 (17:00 +0000)]
copy_buildsystem.py: Add a way to copy buildsystem to a directory.

This file provides a way to take bitbake and the layers in the
current build and copy them to a target specified.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstatesig: Add ability to filter list of tasks for locked-sigs.inc
Paul Eggleton [Mon, 23 Feb 2015 17:00:36 +0000 (17:00 +0000)]
sstatesig: Add ability to filter list of tasks for locked-sigs.inc

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogen-lockedsig-cache: Allow cross-filesystem copies.
Randy Witt [Mon, 23 Feb 2015 17:00:35 +0000 (17:00 +0000)]
gen-lockedsig-cache: Allow cross-filesystem copies.

Since this previously always tried to use hardlinks you couldn't have
the source and destination be on different devices. This change allows
for that and also prevents failure in situations where the files already
existed.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/sanity: avoid bblayers version issue when switching between poky and other...
Paul Eggleton [Thu, 5 Feb 2015 12:05:40 +0000 (12:05 +0000)]
classes/sanity: avoid bblayers version issue when switching between poky and other DISTRO values

If you create a build directory with poky, or set DISTRO to "poky" and
run bitbake, you'll get a bblayers.conf file with LCONF_VERSION set to
6. If you then set DISTRO to any other value where the new distro config
doesn't pull in poky's config, e.g. "nodistro", you would then get a
bblayers.conf version error which didn't immediately make sense. (The
layer versions have been out-of-step ever since meta-yocto-bsp was
split out of meta-yocto several years ago).

This is just painful and we'd rather users didn't have to deal with
it. Obviously it isn't an OE-Core problem per se, but a simple way to
resolve it for everyone is to bump OE-Core's version to 6 with an
automatic no-op upgrade. Also ensure that multiple upgrade functions
(such as the poky one) have a chance to execute by not breaking out of
the loop as we were before.

Fixes [YOCTO #6139].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "bind: fix and enable parallel build"
Richard Purdie [Mon, 23 Feb 2015 16:13:25 +0000 (16:13 +0000)]
Revert "bind: fix and enable parallel build"

This reverts commit b003df03358aea4e9e094ee339a9f6796866961e.

We keep seeing parallel make failures on the autobuilder

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "logrotate: 3.8.8 -> 3.8.9"
Richard Purdie [Mon, 23 Feb 2015 16:11:20 +0000 (16:11 +0000)]
Revert "logrotate: 3.8.8 -> 3.8.9"

This reverts commit 0a69248db774f169318fc5954c805f0a7e8803dc.

The update causes QA failures on the autobuilder.

10 years agoRevert "openssl: fix and enable parallel build"
Richard Purdie [Mon, 23 Feb 2015 16:12:08 +0000 (16:12 +0000)]
Revert "openssl: fix and enable parallel build"

This reverts commit 7502fa5febdd7a2281d626f7040782fb1f9af59e.

We keep seeing parallel make failures in openssl :(

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-native: Reverts usage of distutils.sysconfig
Alejandro Hernandez [Fri, 20 Feb 2015 21:40:47 +0000 (15:40 -0600)]
python-native: Reverts usage of distutils.sysconfig
On older versions of Python, sysconfig read the Makefile and Python.h, generated at build time
now it uses _sysconfigdata which contains information about the HOST, erroneous in our case,
this causes an error when bulding something using distutils since it obtains compiler information and such.

Also fixes configuration of _ctypes/libffi

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
10 years agoPython: Upgrade from 2.7.3 to 2.7.9:
Alejandro Hernandez [Wed, 11 Feb 2015 23:57:49 +0000 (17:57 -0600)]
Python: Upgrade from 2.7.3 to 2.7.9:

- Based on Paul Eggletons work to partially upgrade to Python 2.7.6

Modified:
default-versions.inc: switched to python 2.7.9
generate-manifest-2.7.py: fixed _sysconfigdata
python-2.7-manifest.inc: fixed _sysconfigdata
python.inc: Updated checksums and source, no LICENSE
change just updated some dates
python-native_2.7.3 -> python-native_2.7.9 and updated patches
python_2.7.3 -> python_2.7.9, and added ac_cv_file__dev_ptmx=no
ac_cv_file__dev_ptc=no in EXTRA_OECONF to solve python
issue #3754, only needed when cross compiling, also updated patches
use_sysroot_ncurses_instead_of_host.patch: New patch to use ncursesw
from sysroot instead of hosts, introduced by fix for python issue #15268

Rebased:
01-use-proper-tools-for-cross-build.patch
03-fix-tkinter-detection.patch
05-enable-ctypes-cross-build.patch
06-avoid_usr_lib_termcap_path_in_linking.patch
avoid_warning_about_tkinter.patch
builddir.patch
fix_for_using_different_libdir.patch
host_include_contamination.patch
multilib.patch
nohostlibs.patch
search_db_h_in_inc_dirs_and_avoid_warning.patch

Deleted (fixed on upstream):
06-ctypes-libffi-fix-configure.patch
CVE-2013-4073_py27.patch
gcc-4.8-fix-configure-Wformat.patch
json-flaw-fix.patch
posix_close.patch
pypirc-secure.patch
python-2.7.3-CVE-2012-2135.patch
python-2.7.3-CVE-2013-1752-smtplib-fix.patch
python-2.7.3-CVE-2014-1912.patch
python-2.7.3-CVE-2014-7185.patch
python-2.7.3-berkeley-db-5.3.patch
python-fix-build-error-with-Readline-6.3.patch
remove-BOM-insection-code.patch
remove_sqlite_rpath.patch
python2.7.3-nossl3.patch

[YOCTO #7059]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
10 years agodevtool: fix broken clones of git recipes
Paul Eggleton [Thu, 19 Feb 2015 16:40:04 +0000 (16:40 +0000)]
devtool: fix broken clones of git recipes

Because we move the workdir when extracting source, then move the source
and delete the temporary workdir, you lose the indirection symlink
pointed to by the alternates file (which is created when the fetcher
clones it from DL_DIR with -s) and the resulting repository is broken.
In any case, for a source repo that the user may put their own changes
into, we can't really rely on a clone made with -s in case the
original goes away - because of cleanall, DL_DIR disappearing, etc. So
repack the repository so that it is a complete, non-shared clone after
unpacking.

(While I'm at it, add a test for devtool modify with a git recipe which
verifies that this works.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodevtool: support source extraction for recipes that use a shared workdir
Paul Eggleton [Thu, 19 Feb 2015 16:40:03 +0000 (16:40 +0000)]
devtool: support source extraction for recipes that use a shared workdir

Enable source extraction used by devtool extract / devtool modify -x for
recipes that use a shared workdir (e.g. the kernel and gcc).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodevtool: modify: handle recipes that use a shared workdir
Paul Eggleton [Thu, 19 Feb 2015 16:40:02 +0000 (16:40 +0000)]
devtool: modify: handle recipes that use a shared workdir

If S is outside of WORKDIR then we shouldn't try to get the relative
path in order to work out where the source subdirectory is as we do by
default.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodevtool: prevent extract/modify use with image recipes
Paul Eggleton [Thu, 19 Feb 2015 16:40:01 +0000 (16:40 +0000)]
devtool: prevent extract/modify use with image recipes

There wouldn't be any point to using these with an image recipe, so
disallow it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodevtool: update-recipe: add handling for git recipes
Paul Eggleton [Thu, 19 Feb 2015 16:40:00 +0000 (16:40 +0000)]
devtool: update-recipe: add handling for git recipes

When updating git-based recipes, in a lot of cases what you want is to
push the changes to the repository and update SRCREV rather than to
apply patches within the recipe. Updating SRCREV is now the default
behaviour for recipes that fetch from git, but this can be overridden
in both directions using a new -m/--mode option.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/recipeutils: minor improvements to patch_recipe()
Paul Eggleton [Thu, 19 Feb 2015 16:39:59 +0000 (16:39 +0000)]
lib/oe/recipeutils: minor improvements to patch_recipe()

* Ensure it knows where to put SRCREV and S
* Handle prepend/append and functions in general

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodevtool: build: run do_populate_sysroot instead of do_install
Paul Eggleton [Thu, 19 Feb 2015 16:39:58 +0000 (16:39 +0000)]
devtool: build: run do_populate_sysroot instead of do_install

If you want to be able to make use of libraries in conjunction with
devtool then we need to install them into the sysroot for other recipes
to use. Make it a configuration option in case it needs to be changed at
runtime.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodevtool: reset: run bitbake -c clean on recipe
Paul Eggleton [Thu, 19 Feb 2015 16:39:57 +0000 (16:39 +0000)]
devtool: reset: run bitbake -c clean on recipe

If you've added a new recipe, you want the output cleaned when you do
devtool reset, otherwise cruft from building the recipe may remain which
could interfere with future builds.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodevtool: add/modify: add option to build in same directory
Paul Eggleton [Thu, 19 Feb 2015 16:39:56 +0000 (16:39 +0000)]
devtool: add/modify: add option to build in same directory

The default behaviour is to build in a separate directory to the source,
however some projects can't be built this way, so add an option to do
that (or override the automatic behaviour in the case of modify).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/kernel-yocto: extend SRCTREECOVEREDTASKS
Paul Eggleton [Thu, 19 Feb 2015 16:39:55 +0000 (16:39 +0000)]
classes/kernel-yocto: extend SRCTREECOVEREDTASKS

* Add do_shared_workdir which was added recently
* Add do_fetch and do_unpack to this list, because at the moment if you
  enable externalsrc through a bbappend the += in this class wipes out
  the original value from externalsrc (which is set with ?=)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/externalsrc: show a warning on compiling
Paul Eggleton [Thu, 19 Feb 2015 16:39:54 +0000 (16:39 +0000)]
classes/externalsrc: show a warning on compiling

Make sure there's no chance of anyone forgetting they have a recipe set
up for externalsrc; otherwise you could get confused about what is going
on. (With our default logging setup we can't make it a note because the
UI doesn't forward those; otherwise I would have used bb.note().)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/externalsrc: add workaround for recipes that use SRCPV in PV
Paul Eggleton [Thu, 19 Feb 2015 16:39:53 +0000 (16:39 +0000)]
classes/externalsrc: add workaround for recipes that use SRCPV in PV

Here we set SRC_URI to blank, however doing so means that the function
that is called when you expand the default value of SRCPV
(i.e. bb.fetch2.get_srcrev()) will fail, so any recipe that references
SRCPV in PV couldn't previously be used with externalsrc.

(At some point we may fix the function to work in the externalsrc case,
but then we would also need to ensure that ${B} did not change as a
result of PV changing any time the HEAD revision changes in the external
source tree, or you'll lose any intermediate build artifacts.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/externalsrc: fix source being wiped out on clean with kernel
Paul Eggleton [Thu, 19 Feb 2015 16:39:52 +0000 (16:39 +0000)]
classes/externalsrc: fix source being wiped out on clean with kernel

kernel.bbclass adds ${S} do do_clean[cleandirs], but this means if you
run bitbake -c clean <kernelrecipe> then your external source tree will
be trashed, which could be a disaster. For safety, remove ${S} from
cleandirs for every task. We also have to do the same for ${B} in the
case where EXTERNALSRC_BUILD is set to the same value as EXTERNALSRC.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/patch: fix PATCHTOOL = "git" with source in a subdirectory
Paul Eggleton [Thu, 19 Feb 2015 16:39:51 +0000 (16:39 +0000)]
lib/oe/patch: fix PATCHTOOL = "git" with source in a subdirectory

For recipes that have their actual source in a subdirectory of what is
fetched (e.g. mkelfimage), we need to find the root of the repository
within the GitApplyTree code that attempts to set up the required git
hooks and use that, rather than expecting the root to be the same as
${S}.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorecipetool: fix regression caused by previous commit
Paul Eggleton [Thu, 19 Feb 2015 16:39:50 +0000 (16:39 +0000)]
recipetool: fix regression caused by previous commit

Option was renamed in the setup code but not in the code that used it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopulseaudio: upgrade to 6.0
Cristian Iorga [Tue, 17 Feb 2015 15:10:18 +0000 (17:10 +0200)]
pulseaudio: upgrade to 6.0

Changes:
- BlueZ 5 native HSP (headset) support;
- BlueZ 5 HFP (hands-free) profile support via oFono;
- systemd socket activation support;
- Better support for multichannel and 2.1 profiles;
- Remap optimisations;
- Many minor improvements, bug fixes, and i18n updates.

- Switched to ${BP} variable.
- Patch 0001-configure.ac-Check-only-for-libsystemd-not-libsystem.patch
removed, no longer necessary.
- Patch CVE-2014-3970.patch included upstrem, removed.
- Slightly changed copyright notice, only a clarification.

libsamplerate based resamplers are now deprecated,
because they offer no particular advantage over speex.
Dependency to libsamplerate0 dropped.

[ RB: disable systemd until systemd.bbclass can handle user units ]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorunqemu: Specify rootfstype to qemu to avoid QA warnings
Richard Purdie [Sat, 21 Feb 2015 07:57:16 +0000 (07:57 +0000)]
runqemu: Specify rootfstype to qemu to avoid QA warnings

With the change to ext4 filesystems for qemu, we get boot warnings from where
it tried to mount the ext4 fileystem as ext2 and ext3 first.

Avoid these by specifying the rootfs type directly on the kernel commandline
for ext* images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomachine/qemu: Switch from ext3 to ext4
Richard Purdie [Fri, 20 Feb 2015 17:39:21 +0000 (17:39 +0000)]
machine/qemu: Switch from ext3 to ext4

There is no good reason not to use ext4 at this point, it has advantages
and few drawbacks. Therefore switch the qemu machines over (and the default
runqemu script options).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolayer.conf: set a variable to map to the OE Layer Index name
Paul Eggleton [Fri, 20 Feb 2015 17:44:06 +0000 (17:44 +0000)]
layer.conf: set a variable to map to the OE Layer Index name

Add a variable that allows us to map the OE-Core layer to the name that
represents it in the OpenEmbedded layer index. This will be used by
bitbake-layers layerindex-fetch so that it knows that for example
OE-Core is already fetched and included in the current configuration.

Note - it won't be required for us to go around and set this for every
layer - we can do the matching based on repo and subdirectory, but
OE-Core is somewhat special in that it does sometimes appear in
different places, for example in poky.

[YOCTO #5348]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf: Add two variables for layer index
Chong Lu [Fri, 20 Feb 2015 17:44:05 +0000 (17:44 +0000)]
bitbake.conf: Add two variables for layer index

Add BBLAYERS_LAYERINDEX_URL variable that bitbake-layers can use to find layer index.
Add BBLAYERS_FETCH_DIR variable that bitbake-layers can use to specify fetch directory.

[YOCTO #5348]

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oeqa/selftest/bblayers: use dashed subcommands
Paul Eggleton [Fri, 20 Feb 2015 17:44:07 +0000 (17:44 +0000)]
lib/oeqa/selftest/bblayers: use dashed subcommands

bitbake-layers subcommands with underscores are the old syntax; the
dashed form has been supported (and displayed in the help text) for
quite a while now, and the old syntax is about to be unsupported, so use
the dashed form in the tests.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc: Dont offer to be parsed for non-glibc TCLIBC selection
Khem Raj [Fri, 20 Feb 2015 04:24:36 +0000 (04:24 +0000)]
glibc: Dont offer to be parsed for non-glibc TCLIBC selection

We now can support musl along with uclibc and glibc
earlier when only alternative was uclibc this check was fine
but now we need to consider non-glibc vs glibc case instead of
uclibc vs glibc

Change-Id: Id794ce193c6557b5435002a8f9b6eb608738b696
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotclibc-musl: Use musl for providing virtual/libintl instead of gettext
Khem Raj [Fri, 20 Feb 2015 04:24:35 +0000 (04:24 +0000)]
tclibc-musl: Use musl for providing virtual/libintl instead of gettext

Lets try to use musl version of libintl and see how far we get

Change-Id: I0259049eb6461ab9b579c7f3ad401fefede24621
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-tools: add PACKAGECONFIG for kmod
Robert Yang [Fri, 20 Feb 2015 05:57:19 +0000 (21:57 -0800)]
lttng-tools: add PACKAGECONFIG for kmod

Fixed:
lttng-tools-2.6.0: lttng-tools-ptest rdepends on libkmod, but it isn't a build dependency? [build-deps]
lttng-tools-2.6.0: lttng-tools rdepends on libkmod, but it isn't a build dependency? [build-deps]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-compare: update Rename-rpm-check.sh-to-pkg-diff.sh.patch
Robert Yang [Fri, 20 Feb 2015 05:57:18 +0000 (21:57 -0800)]
build-compare: update Rename-rpm-check.sh-to-pkg-diff.sh.patch

The patch can't be applied by "git am -3" with newer version of git
(such as 2.0.1), and can't be applied by "git am/apply" with any
version, now fix it

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager: Performance tweak in regex usage
Richard Purdie [Fri, 20 Feb 2015 17:41:41 +0000 (17:41 +0000)]
lib/oe/package_manager: Performance tweak in regex usage

Profiling a core-image-sato-sdk rootfs, we're spending over 40s
compiling the same regex over and over again, roughly around 5 million
times.

This is suboptimal, fix for a 40s improvement on a 18.5minute task execution
time.

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