]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agooelint.bbclass: remove duplicated code
Robert Yang [Thu, 19 Mar 2015 05:33:01 +0000 (22:33 -0700)]
oelint.bbclass: remove duplicated code

The old code 'if not srcpath.find("{PN}") == -1:' looks strange, use
'if srcpath.find("{PN}") != -1:' and remove duplicated code.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooelint.bbclass: adjust task order
Robert Yang [Thu, 19 Mar 2015 05:33:00 +0000 (22:33 -0700)]
oelint.bbclass: adjust task order

Addtask lint before do_build rather than do_fetch, otherwise it would
cause all the tasks after do_fetch run again every time since
do_lint[nostamp] = "1".

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoneard: fix the install path in init scripts
Cristian Iorga [Wed, 18 Mar 2015 15:38:39 +0000 (17:38 +0200)]
neard: fix the install path in init scripts

The neard make scripts will place the daemon executable
in /usr/lib/neard/nfc/neard. Change the path accordingly
in init scripts.

Fixes [YOCTO #7390].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonss: move /usr/bin/smime to nss-smime
Martin Jansa [Sat, 21 Mar 2015 01:40:38 +0000 (02:40 +0100)]
nss: move /usr/bin/smime to nss-smime

* remove perl runtime dependency from main package

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodirectfb: define DEPENDS and EXTRA_OECONF via directfb.inc only
Andre McCurdy [Fri, 20 Mar 2015 19:41:20 +0000 (12:41 -0700)]
directfb: define DEPENDS and EXTRA_OECONF via directfb.inc only

Remove duplicate EXTRA_OECONF definition from directfb_1.7.6.bb.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-pexpect: Adds this module to buildtools, since it is needed by some of the...
Alejandro Hernandez [Wed, 18 Mar 2015 22:25:55 +0000 (16:25 -0600)]
python-pexpect: Adds this module to buildtools, since it is needed by some of the automated runtime test code.

[YOCTO 7279]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-pexpect: Creates a recipe for the pexpect python module
Alejandro Hernandez [Wed, 18 Mar 2015 22:25:54 +0000 (16:25 -0600)]
python-pexpect: Creates a recipe for the pexpect python module

Based on the recipe contained in http://layers.openembedded.org/layerindex/branch/master/layer/meta-python

[YOCTO #7279]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolicense.bbclass: skip license checking if the package contains no file
Chen Qi [Thu, 19 Mar 2015 05:17:53 +0000 (13:17 +0800)]
license.bbclass: skip license checking if the package contains no file

If the package doesn't contain any file, then the license isn't relevant
as far as the final image is concerned. So we skip the license checking
in license_create_manifest if such case.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-distribute: Adds netclient, email and shell runtime dependencies necessary to
Alejandro Hernandez [Wed, 18 Mar 2015 23:57:27 +0000 (17:57 -0600)]
python-distribute: Adds netclient, email and shell runtime dependencies necessary to

run python-distribute out of the box

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosanity.bbclass: vmdk and live can't be built together
Robert Yang [Thu, 19 Mar 2015 02:14:49 +0000 (19:14 -0700)]
sanity.bbclass: vmdk and live can't be built together

Both vmdk and live use syslinux, but they have different/conflicted
configurations, the main conflictions are:

                    vmdk                live
SYSLINUX_ROOT       root=/dev/sda2      root=/dev/ram0
SYSLINUX_LABELS     boot                boot install
INITRD              No                  yes

So it would make the boot menu strange and vmdk can't be boot, we need
add a few extra vars to fix the problem such as SYSLINUX_ROOT_VMDK
SYSLINUX_ROOT_LIVE, but that needs a lot of changes in the code, so just
add a sanity checking for it.

[YOCTO #6889]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoos-release: add LIC_FILES_CHKSUM
Chen Qi [Thu, 19 Mar 2015 05:17:54 +0000 (13:17 +0800)]
os-release: add LIC_FILES_CHKSUM

Add LIC_FILES_CHKSUM to avoid the warning below at rootfs time.

    WARNING: The license listed MIT was not in the licenses collected for os-release

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzdata: fix HOMEPAGE
Robert Yang [Thu, 19 Mar 2015 05:33:04 +0000 (22:33 -0700)]
tzdata: fix HOMEPAGE

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogroff: fix HOMEPAGE
Robert Yang [Thu, 19 Mar 2015 05:33:03 +0000 (22:33 -0700)]
groff: fix HOMEPAGE

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogawk: fix HOMEPAGE
Robert Yang [Thu, 19 Mar 2015 05:33:02 +0000 (22:33 -0700)]
gawk: fix HOMEPAGE

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibav: add PACKAGECONFIG for VA-API
Ross Burton [Thu, 19 Mar 2015 15:18:24 +0000 (15:18 +0000)]
libav: add PACKAGECONFIG for VA-API

Intel BSPs want to enable VA-API support so add a PACKAGECONFIG statement to
enable it if required.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoe2fsprogs: Package resize2fs
Alex J Lennon [Thu, 19 Mar 2015 13:17:34 +0000 (13:17 +0000)]
e2fsprogs: Package resize2fs

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxserver-nodm-init: Change to vt1 when stop
Aníbal Limón [Thu, 19 Mar 2015 13:45:49 +0000 (13:45 +0000)]
xserver-nodm-init: Change to vt1 when stop

When X is stopped it remains in the same vt that was launched,
change to vt1 instead to avoid manual vt switch.

[YOCTO #5336]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosysvinit-inittab: Fix no tty in runlevel 1.
Aníbal Limón [Thu, 19 Mar 2015 13:45:48 +0000 (13:45 +0000)]
sysvinit-inittab: Fix no tty in runlevel 1.

When switch to runlevel 1 (Single user mode), tty was not
re-spawn and appears to be a machine hang.

[YOCTO #5336]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoutil-linux-native: Fixed conflicts with shadow-native and ncurses-native
Caner Altinbasak [Fri, 20 Mar 2015 14:16:36 +0000 (08:16 -0600)]
util-linux-native: Fixed conflicts with shadow-native and ncurses-native

    util-linux-native provides /bin/reset and /sbin/nologin. shadow-native
    provides /sbin/nologin and ncurses-native provides /bin/reset. This
    creates a conlict.

    [YOCTO #7484]

    This commit fixes the conflict by deleting the /bin/reset and
    /sbin/nologin from util-linux-native installation.

Signed-off-by: Caner Altinbasak <caner.altinbasak@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/runtime: Added a new auto rpm test
Lucian Musat [Fri, 20 Mar 2015 12:39:36 +0000 (14:39 +0200)]
oeqa/runtime: Added a new auto rpm test

The test tries to query the rpm list with a non-root user

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooe-selftest: use spaces to indent python code, not tabs
Paul Eggleton [Fri, 20 Mar 2015 12:15:02 +0000 (12:15 +0000)]
oe-selftest: use spaces to indent python code, not tabs

Indenting-only change.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/combo-layer: Handle update with no repo/revision specified
Richard Purdie [Fri, 20 Mar 2015 16:28:03 +0000 (16:28 +0000)]
scripts/combo-layer: Handle update with no repo/revision specified

Running an update operation with no repo/revision specified was failing.
This fixes that code path which worked until the change from:

http://git.yoctoproject.org/cgit.cgi/poky/commit/scripts/combo-layer?id=3592507a149b668c0a925e176535f7f2002fa543

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc: avoid configure stall by feeding prompt
Benjamin Esquivel [Wed, 18 Mar 2015 12:21:33 +0000 (12:21 +0000)]
glibc: avoid configure stall by feeding prompt

Addresses a stall (by prompt) condition of the run.do_configure at when
executed directly from the workdir, like when using the devshell.

[YOCTO 7369]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogcc-cross-canadian: Enable stripping and packaging of binaries
Richard Purdie [Fri, 20 Mar 2015 10:38:37 +0000 (10:38 +0000)]
gcc-cross-canadian: Enable stripping and packaging of binaries

This seems to have been disabled since the dawn of time for no good reason.
Enable the .debug stripping and packaging allowing for a smaller SDK.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoltp: find all .debug directories
Joe Slater [Wed, 18 Mar 2015 22:34:02 +0000 (15:34 -0700)]
ltp: find all .debug directories

The list of directories for ltp-dbg is incomplete, so
we generalize it.

We also eliminate a non-fatal qa error that the file
test_arch_stripped is stripped.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolsb: fix installed-vs-shipped when build with multilib
Robert Yang [Thu, 19 Mar 2015 09:05:21 +0000 (02:05 -0700)]
lsb: fix installed-vs-shipped when build with multilib

The init-functions had been installed to /lib/lsb/init-functions
according to lsb spec, then there is an installed-vs-shipped issue when
build with multilib:

ERROR: QA Issue: lsb: Files/directories were installed but not shipped
  /lib
  /lib/lsb
  /lib/lsb/init-functions [installed-vs-shipped]

Fix the issue and indent.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogst-plugins-good: fix nondeterministic udev dependency
Andre McCurdy [Thu, 19 Mar 2015 06:29:18 +0000 (23:29 -0700)]
gst-plugins-good: fix nondeterministic udev dependency

Make the v4l PACKAGECONFIG option control building of the video4linux2
plug-in (not use of libv4l, as it did before) and enable by default.
Add a separate libv4l PACKAGECONFIG to control use of libv4l (disabled
by default since libv4l is not part of oe-core).

The default config for gst-plugins-good and gstreamer1.0-plugins-good
is now aligned with regards to v4l, ie:

  v4l support: enabled by default
  v4l use of libgudev: enabled by default
  v4l use of libv4l2: disabled by default

This commit fixes the following build-deps QA Warnings:

  WARNING: QA Issue: gst-plugins-good-video4linux2 rdepends on libudev, but it isn't a build dependency? [build-deps]
  WARNING: QA Issue: gst-plugins-good-video4linux2 rdepends on libgudev, but it isn't a build dependency? [build-deps]

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopulseaudio: remove obsolete resampler patching
Tanu Kaskinen [Thu, 19 Mar 2015 08:17:33 +0000 (10:17 +0200)]
pulseaudio: remove obsolete resampler patching

This sed script hasn't worked since PulseAudio 0.9.8 (released in
2007), because the match condition refers to "sinc-fastest", while the
default resampler is nowadays speex-float-1.

The idea behind the sed script might be good, but it seems obvious
that nobody is actually depending on the script, so let's just delete
it.

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopuzzles: Fix build in x32 ABI
Aníbal Limón [Sun, 15 Mar 2015 12:02:29 +0000 (12:02 +0000)]
puzzles: Fix build in x32 ABI

Add patch for make castings to time_t values that are long long int
in x32 ABI.

[YOCTO #7447]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agosystemtap: Fix build in x32 ABI
Aníbal Limón [Sun, 15 Mar 2015 11:00:39 +0000 (11:00 +0000)]
systemtap: Fix build in x32 ABI

Add a patch for fix printing of time_t value that is long long int
in x32 ABI instead of long int.

[YOCTO #7423]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agomdadm: Fix build in x32 ABI
Aníbal Limón [Sun, 15 Mar 2015 09:02:14 +0000 (09:02 +0000)]
mdadm: Fix build in x32 ABI

Add a patch for fix build in x32 ABI, the fail is cause by time_t
printf because time_t is long int in x64 and long long int in x32.

[YOCTO #7422]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agosystemd: set the location of binaries used by service files
Jonathan Liu [Wed, 18 Mar 2015 02:37:21 +0000 (13:37 +1100)]
systemd: set the location of binaries used by service files

Otherwise systemd uses AC_PROG_PATH and finds it in the sysroot or host
system, which won't work on the target.

[YOCTO #7408]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobase.bbclass: clean up warning message for 'S'
Jonathan Liu [Wed, 18 Mar 2015 05:31:57 +0000 (16:31 +1100)]
base.bbclass: clean up warning message for 'S'

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agovalgrind: enable building on 4.x kernel
Martin Jansa [Tue, 17 Mar 2015 12:13:34 +0000 (13:13 +0100)]
valgrind: enable building on 4.x kernel

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoudev: remove 'modprobe' local rule
Javier Viguera [Tue, 17 Mar 2015 13:06:50 +0000 (14:06 +0100)]
udev: remove 'modprobe' local rule

Since udev version 176 (udev commit 06316d9) udev switched modprobe
explicit rules by the builtin kmod support.

The rule using the builtin kmod support is in
'/lib/udev/rules.d/80-drivers.rules':

DRIVER!="?*", ENV{MODALIAS}=="?*", IMPORT{builtin}="kmod load $env{MODALIAS}"

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoperf: add bash to RDEPENDS
Bruce Ashfield [Wed, 11 Mar 2015 13:14:54 +0000 (09:14 -0400)]
perf: add bash to RDEPENDS

perf has a dependency on bash in its utilities, which generate the
following warning:

  WARNING: QA Issue: perf requires /bin/bash, but no providers in its RDEPENDS [file-rdeps]

Since perf is not installed on extremely small systems, we just add
bash to the RDEPENDS, rather than modifying scripts or removing content.

[YOCTO: #7445]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolinux-yocto/3.19: integrate korg -stable update
Bruce Ashfield [Tue, 10 Mar 2015 13:35:01 +0000 (09:35 -0400)]
linux-yocto/3.19: integrate korg -stable update

Updating to the latest and greatest -stable release for the 3.19 series.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: split meta data generation from patching phase
Bruce Ashfield [Thu, 5 Mar 2015 14:04:01 +0000 (09:04 -0500)]
kernel-yocto: split meta data generation from patching phase

The linux-yocto kernel has a meta-data component which accompanies the
actual tree. That meta-data is processed to generate a series file that
controls the patching and configuration of the kernel.

patching and configuration are two distinct phases, so when working on
kernel configuration, it doesn't make sense to always have to re-run
the patching step just to update configuration data in the meta-series.

To allow a more granular set of tasks, we break the meta-data generation
into a separate task, which runs before do_patch. This allows the task
to be explicitly called when working on configuration, but otherwise
has no impact on the build.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokern-tools: fix iterative configuration runs
Bruce Ashfield [Wed, 4 Mar 2015 20:17:44 +0000 (15:17 -0500)]
kern-tools: fix iterative configuration runs

When fixing a kernel configuration warning, it is often necessary to
modify the kernel's meta-data and re-run the tools to update and
re-audit the config. This implies that the patch, config and audit
steps are run multiple times.

The tools had a bug that would incorrectly restore old meta-data
versus using updated configuration. Updating the kern-tools SRCREV
to fix the issue.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agogstreamer1.0: Shorten __FILE__ in gst_debug_log output on all platforms.
Peter Urbanec [Thu, 26 Feb 2015 17:31:33 +0000 (04:31 +1100)]
gstreamer1.0: Shorten __FILE__ in gst_debug_log output on all platforms.

On WIN32 the file argument to gst_debug_log_valist is shortened to just
the filename. This is useful not only for MSVC, but also with gcc/Linux
when doing cross-compilation builds and out-of-tree builds.

Signed-off-by: Peter Urbanec <openembedded-devel@urbanec.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodbus-test: make do_install run to trigger the effect of cleandirs flag
Chen Qi [Thu, 5 Mar 2015 08:06:03 +0000 (16:06 +0800)]
dbus-test: make do_install run to trigger the effect of cleandirs flag

For now, we would meet the following QA error if we build dbus-test in
the same build directory with multilib enabled/disabled.

The steps are as follows:
1. Enable multilib and `bitbake dbus-ptest'
2. Disable multilib and `bitbake dbus-ptest'

The error message is as follows:
ERROR: QA Issue: dbus-test: Files/directories were installed but not shipped
  /usr/lib64
  /usr/lib64/dbus-test
  /usr/lib64/dbus-test/ptest
  /usr/lib64/dbus-test/ptest/run-ptest
  ...

The problem is that the ${D} is not cleaned up at the second build while it
should be.

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 agotcmode-default: Define one gdb version
Khem Raj [Thu, 5 Mar 2015 18:10:36 +0000 (18:10 +0000)]
tcmode-default: Define one gdb version

Sometimes we need to override the gdb from third party
tool SDKs, this helps out, moreover it also makes it consistent
with in OE-Core too to have multiple versions of gdb if we ever
needed to

Change-Id: Ibe1ae59175984bbc661c243764c81cd99fef54d1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agopulseaudio: add system.pa to CONFFILES
Tanu Kaskinen [Mon, 16 Mar 2015 18:55:25 +0000 (20:55 +0200)]
pulseaudio: add system.pa to CONFFILES

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopulseaudio: move client.conf to libpulse
Tanu Kaskinen [Mon, 16 Mar 2015 18:55:24 +0000 (20:55 +0200)]
pulseaudio: move client.conf to libpulse

This fixes a scenario where the system has libpulse installed but not
pulseaudio-server. The "breakage" didn't have any big practical
effects, though, because the default client.conf contains only
comments anyway.

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopackage_manager: Create variable for install_dir_name
Saul Wold [Mon, 16 Mar 2015 17:21:30 +0000 (11:21 -0600)]
package_manager: Create variable for install_dir_name

This patch creates a variable for the install_dir name so it can be
something other than /install, also by doing this we can correctly
clean up the empty directories (/install/tmp) during the clean-up
phase. The new default is /oe_install so as to not conflict with other
possible packages that might use /install to place files.

[YOCTO #7353]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolib/oeqa/selftest/lic-checksum: Add INHIBIT_DEFAULT_DEPS
Randy Witt [Mon, 16 Mar 2015 18:14:14 +0000 (11:14 -0700)]
lib/oeqa/selftest/lic-checksum: Add INHIBIT_DEFAULT_DEPS

The test_nonmatching_checksum doesn't need the default dependencies,
and they would just take extra time to generate.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolib/oeqa/selftest/lic-checksum: Rename test_foo
Randy Witt [Mon, 16 Mar 2015 18:14:13 +0000 (11:14 -0700)]
lib/oeqa/selftest/lic-checksum: Rename test_foo

test_foo is renamed to test_nonmatching_checksum. It was a mistake to
submit it with the old name.

There was also some extra whitespace removed.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agotrace-cmd: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:40 +0000 (16:50 +0100)]
trace-cmd: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agommc-utils: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:39 +0000 (16:50 +0100)]
mmc-utils: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:38 +0000 (16:50 +0100)]
systemd: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agou-boot-mkimage: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:37 +0000 (16:50 +0100)]
u-boot-mkimage: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agou-boot-fw-utils: remove unnecessary 'protocol=git' from SRC_URI
Maxin B. John [Thu, 12 Mar 2015 15:50:36 +0000 (16:50 +0100)]
u-boot-fw-utils: remove unnecessary 'protocol=git' from SRC_URI

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: add missing dependency to test_recipetool_create_git
Paul Eggleton [Sun, 15 Mar 2015 20:40:28 +0000 (20:40 +0000)]
oe-selftest: add missing dependency to test_recipetool_create_git

libmatchbox links to libjpeg if it is present so just explicitly build
it and then check it appears in DEPENDS.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorecipetool: fix duplicate licenses being picked up
Paul Eggleton [Sun, 8 Mar 2015 21:41:18 +0000 (21:41 +0000)]
recipetool: fix duplicate licenses being picked up

If a license file matched more than one of the specifications (e.g.
COPYING.GPL) then it was being added to LIC_FILES_CHKSUM more than once.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: add a test for devtool modify on recipes fetching local files
Paul Eggleton [Sun, 15 Mar 2015 11:56:03 +0000 (11:56 +0000)]
oe-selftest: add a test for devtool modify on recipes fetching local files

With the change to externalsrc we can now handle these, so add a test
to ensure they can be built.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: add a test for devtool deploy-target
Paul Eggleton [Fri, 13 Mar 2015 18:27:06 +0000 (18:27 +0000)]
oe-selftest: add a test for devtool deploy-target

Whilst this test would seemingly be better placed as a runtime test,
unfortunately the runtime tests run under bitbake and you can't run
devtool within bitbake (since devtool needs to run bitbake itself).
Additionally we are testing build-time functionality as well, so
really this has to be done as an oe-selftest test.

This test does have a few perhaps unusual requirements in order to run:
 * pexpect is installed
 * MACHINE is set to one of the qemu machines
 * runqemu tap devices have been set up

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: support getting unexported variable values
Paul Eggleton [Fri, 13 Mar 2015 18:25:33 +0000 (18:25 +0000)]
oe-selftest: support getting unexported variable values

Allow get_bb_var() to work with unexported variable values such as
MACHINE - the workaround is a little crude but should suffice for now.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogitignore: exclude meta-selftest, drop meta-hob
Paul Eggleton [Mon, 16 Mar 2015 10:05:27 +0000 (10:05 +0000)]
gitignore: exclude meta-selftest, drop meta-hob

* We don't want to ignore changes in the meta-selftest directory
* While I'm at it, meta-hob has been gone for a while now, so drop the
  reference to it here.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: add dry-run option
Paul Eggleton [Tue, 10 Mar 2015 14:42:36 +0000 (14:42 +0000)]
devtool: deploy-target: add dry-run option

Add a dry-run option to the deploy-target and undeploy-target
subcommands so you can see the list of files to be deployed or
un-deployed before actually carrying out the operation.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoclasses/externalsrc: fix for recipes that fetch local files
Paul Eggleton [Mon, 9 Mar 2015 13:57:56 +0000 (13:57 +0000)]
classes/externalsrc: fix for recipes that fetch local files

If SRC_URI contains local files (file:// references) these will almost
certainly be required at some point during the build process, so we need
to actually fetch these to ${WORKDIR} as we would normally.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: add an option to disable quiet mode
Paul Eggleton [Sun, 8 Mar 2015 13:03:33 +0000 (13:03 +0000)]
devtool: deploy-target: add an option to disable quiet mode

The -q option to scp does stop the progress being shown, which is mostly
superfluous, however it also stops errors from ssh being shown - if
there's a problem, you'll just get "lost connection" which really isn't
that helpful. As a compromise, add a -s/--show-status option and
advertise this when the command fails.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: detect and error if D is empty
Paul Eggleton [Sun, 8 Mar 2015 12:51:36 +0000 (12:51 +0000)]
devtool: deploy-target: detect and error if D is empty

If you haven't built the recipe yet or if the output directory (${D}) is
empty, then we should tell the user rather than have scp error out.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: allow disabling host key checking
Paul Eggleton [Sun, 8 Mar 2015 12:25:56 +0000 (12:25 +0000)]
devtool: deploy-target: allow disabling host key checking

If you're testing with multiple images/devices that have the same IP
address / hostname then it can be annoying to deal with host key
mismatches all of the time. As a MITM attack is unlikely in the local
test environment, provide a command line option to pass the appropriate
options to scp/ssh to disable the host key checking.

Note: if you wish to apply this permanently, the best way is to do it
through your ssh configuration e.g. by adding the following to your
~/.ssh/config:

Host 192.168.7.2
   UserKnownHostsFile=/dev/null
   StrictHostKeyChecking no

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: modify/extract: prevent usage with incompatible recipes
Paul Eggleton [Thu, 5 Mar 2015 10:51:20 +0000 (10:51 +0000)]
devtool: modify/extract: prevent usage with incompatible recipes

Consolidate code for checking compatible recipes and consider meta and
packagegroup recipes as well as package-index and gcc-source to be
incompatible.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: modify: get correct initial revision from previously extracted source tree
Paul Eggleton [Wed, 4 Mar 2015 13:20:37 +0000 (13:20 +0000)]
devtool: modify: get correct initial revision from previously extracted source tree

If you point devtool modify to a source tree previously created by
devtool modify or devtool extract, then we need to try to pick up the
correct initial revision so that devtool update-recipe knows where to
start looking for commits that match up with patches in the recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: reset: add ability to reset entire workspace
Paul Eggleton [Wed, 4 Mar 2015 12:56:13 +0000 (12:56 +0000)]
devtool: reset: add ability to reset entire workspace

Add a -a/--all option to allow you to quickly reset all recipes in your
workspace.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: name command line parsers appropriately
Paul Eggleton [Wed, 4 Mar 2015 12:46:29 +0000 (12:46 +0000)]
devtool: name command line parsers appropriately

No functional changes, just use a unique name for each parser.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodevtool: deploy-target: fix deploying to previously deployed machine
Paul Eggleton [Sun, 8 Mar 2015 12:34:01 +0000 (12:34 +0000)]
devtool: deploy-target: fix deploying to previously deployed machine

* Pass correct arguments to undeploy() function
* If an error occurs during undeploy(), exit instead of continuing

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer-hook-default.sh: handle patches without Signed-off-by
Patrick Ohly [Fri, 13 Mar 2015 12:04:08 +0000 (13:04 +0100)]
combo-layer-hook-default.sh: handle patches without Signed-off-by

Inserting the "From rev" comment depended on having at least one
Signed-off-by line in the patch header. Some old repository commits in
openembedded-core and bitbake do not have those.

When inporting those, just insert at the end of the patch
header. While doing so, ensure that there's exactly one blank line
since the last non-blank line.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer-hook-default.sh: beware of embedded patches
Patrick Ohly [Fri, 13 Mar 2015 11:57:16 +0000 (12:57 +0100)]
combo-layer-hook-default.sh: beware of embedded patches

Patching the subject line must be limited to the subject of
the main patch itself. In particular, git formatted patches embedded in the patch must not be changed.

Achieved by limiting the replacement to the lines until the first
subject in the patch, just as it is done for modifying the first
Signed-off-by.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer-hook-default.sh: avoid duplicating prefix
Patrick Ohly [Fri, 13 Mar 2015 11:51:54 +0000 (12:51 +0100)]
combo-layer-hook-default.sh: avoid duplicating prefix

The existing patch might already have the desired prefix, perhaps
even multiple times (due to some previous import error). Ensure
that after the replace, the prefix is present exactly once.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: partial import for '--history init'
Patrick Ohly [Thu, 12 Mar 2015 16:09:41 +0000 (17:09 +0100)]
combo-layer: partial import for '--history init'

The new "since_revision" property can be used to cut off the imported
history at some point. This is useful to keep the resulting repository
smaller while still preserving enough history that "git annotate"
reports the right author and commit for most lines.

The initial, squashed import commit shows up with "unknown" as author
in the "git annotate" output. It has the repository name as prefix
in the subject line; importing that commit works best with a
layer hook which does not add the repository name again when
it is already present. Adding it here is useful for hooks
which do not extend the subject line.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: combine trees via replacement objects
Patrick Ohly [Thu, 12 Mar 2015 15:45:34 +0000 (16:45 +0100)]
combo-layer: combine trees via replacement objects

Instead of local graft entries rooting the imported branches in the
shared root commit, use replacement objects.

The advantage is that they get moved around by "git push" and "git
fetch", so everyone has the same, nicer view with everything starting
at the beginning of the combined repository.

If undesired, these objects can be removed with "git replace".

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: init with full history
Patrick Ohly [Thu, 12 Mar 2015 13:29:21 +0000 (14:29 +0100)]
combo-layer: init with full history

The new --history parameter enables a new mode in "combo-layer init"
where it copies the entire history of the components into the new
combined repository. This also imports merge commits.

Moving into a destination directory and applying commit hooks
is done via "git filter-branch" of the upstream branch. File
filtering uses the same code as before and just applies it
to that filtered branch to create the final commit which
then gets merged into the master branch of the new repository.

When multiple components are involved, they all get merged
into a single commit with an octopus merge. This depends
on a common ancestor, which is grafted onto the filtered
branches via .git/info/grafts.

These grafts are currently left in place. However, they do not get
pushed, so the local view on the entire history (all branches rooted
in the initial, empty commit, temporarily diverging and then
converging) is not the same as what others will see (branches starting
independently and converging). Perhaps "git replace" should be used
instead.

The final commit needs to be done manually, as before. A commit
message with some tracking information is ready for use as-is. This
information should be sufficient to implement also "combo-layer
update" using this approach, if desired. The advantage would be that
merge commits with conflict resolution would not longer break
the update.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: update() also instance property
Patrick Ohly [Thu, 12 Mar 2015 07:27:43 +0000 (08:27 +0100)]
combo-layer: update() also instance property

The Configuration class mirrors all properties in local hashes.
When updating the configuration, also update these properties
to remain consistent.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: exclude files
Patrick Ohly [Tue, 10 Mar 2015 08:56:03 +0000 (09:56 +0100)]
combo-layer: exclude files

Some combined repos intentionally do not include certain files.
For example, Poky does not include bitbake's setup files and
OE-core's sample files under meta/conf.

When these files get modified in the upstream repository, applying the
patches fails and requires manual intervention. That is merely a
nuisance for someone familiar with the problem, but a real show
stopper when having the import run automatically or by someone less
experienced.

Therefore this change introduces "file_exclude", a new per-repo list
of file patterns which removes all matching files when initializing or
updating a combined repository. Because fnmatch is used under the hood
to match full path strings, removing entire directories must be done
with a pattern ending in a '/*' (in contrast to file_filter).

For Poky, the additional configuration looks like this:

[bitbake]
...
file_exclude = classes/base.bbclass
conf/bitbake.conf
.gitignore
MANIFEST.in
setup.py
TODO

[openembedded-core]
...
file_exclude = meta/conf/bblayers.conf.sample
meta/conf/local.conf.sample
meta/conf/local.conf.sample.extended
meta/conf/site.conf.sample

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: runcmd() with separate output
Patrick Ohly [Tue, 10 Mar 2015 08:48:15 +0000 (09:48 +0100)]
combo-layer: runcmd() with separate output

Allow the caller to specify a separate output stream. stderr is always
a temporary file opened by runcmd(), so read from that to capture
output for error reporting *and* the return value.

The reasoning for the latter is a) that this preserves the traditional
behavior when out=None and b) if the caller wants the content of
stdout, it can read from the stream itself, which is not possible for
the temporary stderr.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: make Signed-off-by optional
Patrick Ohly [Mon, 9 Mar 2015 12:50:11 +0000 (13:50 +0100)]
combo-layer: make Signed-off-by optional

It depends on the diligence of the person running the combo-layer tool
whether the Signed-off-by line added to each commit actually indicates
that the person was involved in validating the change.

When the import is purely automatic, it is better to not add the line,
because the history is more useful without it (searching for the person
really only lists changes he or she was involved with) and it would
be a false statement.

The 'signoff' property can be set per repository, like every
other property. But setting it in the special [DEFAULT] section
is more useful, so that is what the example shows.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: let user choose where properties get updated
Patrick Ohly [Thu, 8 Jan 2015 15:23:52 +0000 (07:23 -0800)]
combo-layer: let user choose where properties get updated

When updating a property (at the moment, only 'last_revision'),
first check whether the user already added it to the main config.
If so, update there even if there is a local config.

This way, 'last_revision' can be shared between developers
as part of the repository while still configuring per-developer
repo paths outside of the git repository in a local config.

An example of a repository which is set up like that is tizen-distro,
with instructions for such a collaborative maintenance found here:
https://review.tizen.org/git/?p=scm/bb/tizen-distro.git;a=blob;f=README;hb=refs/heads/tizen-ivi

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorunqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images
Richard Purdie [Thu, 19 Mar 2015 11:33:30 +0000 (11:33 +0000)]
runqemu-internal: Add cpio support for qemux86 so that we can boot poky-tiny images

poky-tiny generates cpio.gz images, add support for these so we can boot
them using runqemu.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoscripts/runqemu: Allow FSTYPE to be changed from the environment
Richard Purdie [Thu, 19 Mar 2015 11:32:42 +0000 (11:32 +0000)]
scripts/runqemu: Allow FSTYPE to be changed from the environment

Currently its not possible to change FSTYPE from the environment but it would
be useful to do so where multiple image types have been generated. This
adds that possibility.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogst-player: Fix Pause/Play in GTK+ player
Jussi Kukkonen [Thu, 19 Mar 2015 08:53:53 +0000 (10:53 +0200)]
gst-player: Fix Pause/Play in GTK+ player

Backport a bug fix from upstream gst-player to make
Pause and Play buttons work properly in gtk-play.

[ YOCTO #7429 ]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoxf86-input-synaptics: drop already applied patch
Paul Eggleton [Mon, 16 Mar 2015 13:56:24 +0000 (13:56 +0000)]
xf86-input-synaptics: drop already applied patch

This patch was part of the 1.8.1 release.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agoopkg: drop already applied patch
Paul Eggleton [Mon, 16 Mar 2015 13:30:34 +0000 (13:30 +0000)]
opkg: drop already applied patch

This patch was part of the 0.2.4 release.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agopackagegroup zeroconf: nss-mdns is libc dependant
Bernhard Reutner-Fischer [Fri, 13 Mar 2015 13:47:42 +0000 (14:47 +0100)]
packagegroup zeroconf: nss-mdns is libc dependant

glibc provides NSS, other libc do not, so only add libnss-mdns to the
zeroconf package group for glibc.
This fixes the build of core-image-sato for e.g. uClibc

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 years agoglibc/glibc-collateral.inc: Add LIC_FILES_CHKSUM to avoid warnings in manifest creation
Aníbal Limón [Sat, 14 Mar 2015 08:46:53 +0000 (08:46 +0000)]
glibc/glibc-collateral.inc: Add LIC_FILES_CHKSUM to avoid warnings in manifest creation

Add licenses point to COMMON_LICENSE_DIR because glibc-collateral.inc is
a recipe that don't provide tarball/repo with LICENSE files.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agounzip: Add ALTERNATIVE configuration
Saul Wold [Thu, 12 Mar 2015 19:58:17 +0000 (12:58 -0700)]
unzip: Add ALTERNATIVE configuration

Since busybox also provides the unzip command use the update-alternatives
mechanism to address this.

[YOCTO #7446]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agometa/lib/oe/package.py: fix files ownership in packages
Fabrice Coulon [Thu, 12 Mar 2015 14:36:55 +0000 (15:36 +0100)]
meta/lib/oe/package.py: fix files ownership in packages

This fix solves the problem with the ownership of files in packages.
The do_install task was producing correct and expected output but when
the files were being put in, e.g. a rpm package, the ownership could
be different than that in the do_install task.

[YOCTO #7428]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Fabrice Coulon <fabrice.coulon@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooeqa/runtime: Fixed a problem in logparser where it failed to whitelist some common...
Lucian Musat [Fri, 13 Mar 2015 12:54:56 +0000 (14:54 +0200)]
oeqa/runtime: Fixed a problem in logparser where it failed to whitelist some common errors.

And some minor tweaks like moving some errors from qemu to common.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoAdd archiver folder to SSTATE_DUPWHITELIST
Adrian [Fri, 13 Mar 2015 16:39:45 +0000 (17:39 +0100)]
Add archiver folder to SSTATE_DUPWHITELIST

Without this patch the source archiver class is not allowed to
archive the same source archive for different builds.

Signed-off-by: Adrian <adrian.freihofer@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: Consider PSEUDO_* environment variables
Ed Bartosh [Mon, 16 Mar 2015 10:57:55 +0000 (12:57 +0200)]
wic: Consider PSEUDO_* environment variables

Used default values of PSEUDO_* environment variables only
if variables are not set.

This allows to set custom PSEUDO_PREFIX and other pseudo
variables in order to use pseudo database from non-standard
locations.

Change-Id: I0bc1af5e521121d1f96d590cb6edb23cf0cb0b83
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorpcbind: don't try to enable rpcbind.socket twice
Martin Jansa [Fri, 13 Mar 2015 18:43:23 +0000 (19:43 +0100)]
rpcbind: don't try to enable rpcbind.socket twice

* rpcbind.service requires rpcbind.socket and systemctl tries to add it twice
* see log.do_rootfs:
  Started /OE/build/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/systemctl --root=/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs enable rpcbind.service rpcbind.socket
  Try to find location of rpcbind.service...
  Found rpcbind.service in /lib/systemd/system/rpcbind.service
  Also=rpcbind.socket found in rpcbind.service
  Started /OE/build/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/systemctl --root=/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs enable rpcbind.socket
  Try to find location of rpcbind.socket...
  Found rpcbind.socket in /lib/systemd/system/rpcbind.socket
  WantedBy=sockets.target found in rpcbind.socket
  Enabled rpcbind.socket for sockets.target.
  Try to find location of rpcbind.socket...
  Found rpcbind.socket in /lib/systemd/system/rpcbind.socket
  WantedBy=sockets.target found in rpcbind.socket
  ln: failed to create symbolic link '/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs/etc/systemd/system/sockets.target.wants/rpcbind.socket': File exists
  Enabled rpcbind.socket for sockets.target.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemctl: Don't try to remove directory which doesn't exist
Martin Jansa [Fri, 13 Mar 2015 18:41:40 +0000 (19:41 +0100)]
systemctl: Don't try to remove directory which doesn't exist

Noticed in this log.do_rootfs error:
  Started /OE/build/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/systemctl --root=/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs disable bluetooth.service
  Try to find location of bluetooth.service...
  Found bluetooth.service in /lib/systemd/system/bluetooth.service
  WantedBy=bluetooth.target found in bluetooth.service
  rmdir: failed to remove '/OE/build/shr-core/tmp-glibc/work/nokia900-oe-linux-gnueabi/shr-image/2.0-r20/rootfs/etc/systemd/system/bluetooth.target.wants': No such file or directory
  Disabled bluetooth.service for bluetooth.target.
  Disabled bluetooth.service for dbus-org.bluez.service.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogst-player: Depend on -libav if commercial license is enabled
Jussi Kukkonen [Fri, 13 Mar 2015 12:49:17 +0000 (14:49 +0200)]
gst-player: Depend on -libav if commercial license is enabled

gstreamer1.0-libav makes AAC playback possible but is protected by
the "commercial" LICENSE_FLAGS: recommend -libav if those licenses
are enabled.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowaffle: drop unneeded setting of EXTRA_OECMAKE
Paul Eggleton [Mon, 16 Mar 2015 10:45:28 +0000 (10:45 +0000)]
waffle: drop unneeded setting of EXTRA_OECMAKE

base.bbclass already sets EXTRA_OECMAKE when cmake.bbclass is inherited.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-selftest: improve bitbake-layers tests
Paul Eggleton [Mon, 16 Mar 2015 10:45:29 +0000 (10:45 +0000)]
oe-selftest: improve bitbake-layers tests

* Add a test for add-layer and remove-layer
* Correct message for test_bitbakelayers_showoverlayed()
* Improve test_bitbakelayers_flatten() to use a more unique name for the
  temp output directory and clean it up using track_for_cleanup()

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooe-init-build-env-memres: Fix source check
Esquivel, Benjamin [Thu, 19 Mar 2015 20:31:41 +0000 (20:31 +0000)]
oe-init-build-env-memres: Fix source check

The source check was referring to oe-init-build-env instead of the
memres. It could be executed without the proper failure message and the
corresponding exit command out of the script. This commit makes the
memres script look more like the oe-init-build-env with the correct
script name.

[YOCTO #7487]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: fix /var/log/journal ownership
Jonathan Liu [Thu, 12 Mar 2015 09:18:56 +0000 (20:18 +1100)]
systemd: fix /var/log/journal ownership

The ownership needs to be explicitly set otherwise it inherits the user
and group id of the build user.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: Fix journal "Failed to set file attributes:" warning
Randy Witt [Fri, 6 Mar 2015 22:15:33 +0000 (14:15 -0800)]
systemd: Fix journal "Failed to set file attributes:" warning

This is a backport of an upstream patch that fixes the
"Failed to set file attributes: Inappropriate ioctl for device" message
when the device exists on ext4 filesystems.

No functionality is changed, the patch just removes a potentially misleading
warning.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocurl: remove samba from PACKAGECONFIG[smb] DEPENDS
Andre McCurdy [Thu, 12 Mar 2015 00:27:38 +0000 (17:27 -0700)]
curl: remove samba from PACKAGECONFIG[smb] DEPENDS

Enabling support for the smb protocol does not create
a build time dependency on samba.

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