]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agomsmtp: upgrade to 1.6.4
Alexander Kanavin [Thu, 26 May 2016 14:00:48 +0000 (17:00 +0300)]
msmtp: upgrade to 1.6.4

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogobject-introspection.bbclass: disable introspection for -native and -nativesdk recipes
Alexander Kanavin [Thu, 26 May 2016 14:00:47 +0000 (17:00 +0300)]
gobject-introspection.bbclass: disable introspection for -native and -nativesdk recipes

It is not necessary for those targets, adds to the build time, and pulls
in the unneeded qemu-native dependency.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/package_manager.py: Add pkgpath to dict returned by package_info
Mariano Lopez [Tue, 24 May 2016 12:44:16 +0000 (12:44 +0000)]
lib/oe/package_manager.py: Add pkgpath to dict returned by package_info

Having the package path with all the other package info allows to
reuse more code and have this information outside the package manager,
without additional processing.

[YOCTO #8536]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooetest.py: Add support to copy unextracted packages for runtime testing
Mariano Lopez [Tue, 24 May 2016 12:44:15 +0000 (12:44 +0000)]
oetest.py: Add support to copy unextracted packages for runtime testing

Sometimes is needed to have a package without extraction when
running a test. This patch adds the functionality.

[YOCTO #8536]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooetest.py: Add extract_packages() to RuntimeTestContext class
Mariano Lopez [Tue, 24 May 2016 12:44:14 +0000 (12:44 +0000)]
oetest.py: Add extract_packages() to RuntimeTestContext class

This new method extracts the content of package (RPM, DEB, or IPK)
to a directory inside of WORKDIR. The extraction is needed for later
install in the DUTs without using a package manager.

[YOCTO #8694]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooetest.py: Add json file support to specify packages needed in runtime tests
Mariano Lopez [Tue, 24 May 2016 12:44:13 +0000 (12:44 +0000)]
oetest.py: Add json file support to specify packages needed in runtime tests

This adds the functionality to use a json file to
specify the packages needed for a particular test.

The content of the json file is a dictionary with
dictionaries inside, using the test name as the hash.

The json file must have the same name as the class
module name and must be in the same path.

[YOCTO #7850]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxmlto: xmlto needs tail to run
Roy Li [Thu, 26 May 2016 09:17:19 +0000 (17:17 +0800)]
xmlto: xmlto needs tail to run

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibgpg-error: Upgrade 1.21 -> 1.22
Jussi Kukkonen [Wed, 25 May 2016 06:38:47 +0000 (09:38 +0300)]
libgpg-error: Upgrade 1.21 -> 1.22

License checksum changes are not license changes.
Remove a patch that's in upstream now.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognupg.org-hosted recipes: Change SRC_URI to https site
Jussi Kukkonen [Wed, 25 May 2016 06:40:26 +0000 (09:40 +0300)]
gnupg.org-hosted recipes: Change SRC_URI to https site

https version seems more reliable and in an informal test fetching
all gnupg recipes now takes <20% of the time it used to.

Define GNUPG_MIRROR in bitbake.conf so future tweaks to this are
easier. Replace some slower mirrors with the official ftp site
and another from gnupg.org mirror list.

Set UPSTREAM_CHECK_URI in all recipes that need it to
"https://gnupg.org/download/index.html" as the directory listings
are not up-to-date.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibevdev: Upgrade 1.4.6 -> 1.5.1
Jussi Kukkonen [Tue, 24 May 2016 13:39:22 +0000 (16:39 +0300)]
libevdev: Upgrade 1.4.6 -> 1.5.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogtk+: Upgrade 2.24.29 -> 2.24.30
Jussi Kukkonen [Tue, 24 May 2016 07:05:00 +0000 (10:05 +0300)]
gtk+: Upgrade 2.24.29 -> 2.24.30

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclutter-gst-3.0: Upgrade 3.0.16 -> 3.0.18
Jussi Kukkonen [Tue, 24 May 2016 06:50:05 +0000 (09:50 +0300)]
clutter-gst-3.0: Upgrade 3.0.16 -> 3.0.18

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclutter-1.0: Upgrade 1.24.2 -> 1.26.0
Jussi Kukkonen [Tue, 24 May 2016 06:36:35 +0000 (09:36 +0300)]
clutter-1.0: Upgrade 1.24.2 -> 1.26.0

Remove a backported patch.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocoreutils: revert upstream commit causing havoc with ls output
Paul Gortmaker [Wed, 25 May 2016 14:10:08 +0000 (10:10 -0400)]
coreutils: revert upstream commit causing havoc with ls output

A recent commit causes ls to have the following behaviour:

   meta-overc:~$ mkdir abc
   meta-overc:~$ cd abc
   meta-overc:~/abc$ touch  aaaa bbbb 'filename with spaces'
   meta-overc:~/abc$ ls
   aaaa  bbbb  'filename with spaces'
   meta-overc:~/abc$

Note the appearance of quotation marks.  This new behaviour was
introduced as "opt-out" and not "opt-in", and further, the opt-out
suggestion causes other breakage.  More details can be found here:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813164

Several large distros are reverting the change, for practical
considerations as per what can be seen above for Debian.

Here we do the same; I've marked the patch as upstream submitted
since there have been enough people vocally annoyed by this change
that it seems implausible that the coreutils team is unaware of it.

Hopefully this change here is just temporary and the coreutils team
will put the default back to the old way it was based on feedback
similar to what is recorded in the above Debian bug.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: bootimg-efi: include startup.nsh if it's available
Christopher Larson [Wed, 25 May 2016 20:31:52 +0000 (13:31 -0700)]
wic: bootimg-efi: include startup.nsh if it's available

We want the system to boot on its own, rather than the user having to manually
input the correct file at the EFI prompt.

[YOCTO #9556]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogummiboot.bbclass: also write startup.nsh for non-iso
Christopher Larson [Wed, 25 May 2016 20:31:51 +0000 (13:31 -0700)]
gummiboot.bbclass: also write startup.nsh for non-iso

wic will be needing this for its bootimg-efi plugin.

[YOCTO #9556]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogrub-efi.bbclass: also write startup.nsh for non-iso
Christopher Larson [Wed, 25 May 2016 20:31:50 +0000 (13:31 -0700)]
grub-efi.bbclass: also write startup.nsh for non-iso

wic will be needing this for its bootimg-efi plugin.

[YOCTO #9556]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-firmware: update to git rev 80d463be82
Maxin B. John [Wed, 25 May 2016 14:07:40 +0000 (17:07 +0300)]
linux-firmware: update to git rev 80d463be82

- change in amdgpu firmware copyright year
- change in radeon firmware copyright year

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibpam: update to 1.3.0
Maxin B. John [Wed, 25 May 2016 14:07:39 +0000 (17:07 +0300)]
libpam: update to 1.3.0

1.2.1 -> 1.3.0

Remove upstreamed patch:
        a) pam-no-innetgr.patch

Refreshed the following patches for 1.3.0:
        a) crypt_configure.patch
        b) pam-unix-nullok-secure.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodropbear: Remove incorrect SFTPSERVER_PATH from CFLAGS
Dominic Sacré [Wed, 25 May 2016 11:13:44 +0000 (13:13 +0200)]
dropbear: Remove incorrect SFTPSERVER_PATH from CFLAGS

Openssh now installs the sftp-server binary as /usr/libexec/sftp-server,
whereas the dropbear recipe assumes a different path.
Dropbear uses the correct path by default, so it's no longer necessary
to override SFTPSERVER_PATH via CFLAGS.

This fixes SFTP access to systems using dropbear as the SSH server.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodocbook-xsl-stylesheets: Upgrade 1.78.1 -> 1.79.1
Jussi Kukkonen [Wed, 25 May 2016 10:10:39 +0000 (13:10 +0300)]
docbook-xsl-stylesheets: Upgrade 1.78.1 -> 1.79.1

* Use $PV at appropriate places in do_install
* Install some new files, avoid installing 25M of java archives
* License checksum change is just copyright years changing
* Fix the URI delegation file (that prevents fetches from
  http://docbook.sourceforge.net/ during build) to refer to a
  non-versioned directory

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel: Make symbol link to vmlinuz in boot directory
He Zhe [Wed, 25 May 2016 08:47:17 +0000 (04:47 -0400)]
kernel: Make symbol link to vmlinuz in boot directory

Rename do_kernel_link_vmlinux to do_kernel_link_images and make a
symbol link to vmlinuz(if exists) for reference in arch/$arch/boot
directory.

Signen-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time
He Zhe [Wed, 25 May 2016 08:47:16 +0000 (04:47 -0400)]
kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time

Add KERNEL_IMAGETYPES to support building packaging and installing
multi types of kernel images, such as zImage uImage, at one time.

KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE work as before.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocpio: Add native variant
Mariano Lopez [Tue, 24 May 2016 12:44:18 +0000 (12:44 +0000)]
cpio: Add native variant

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/utils/package_manager.py: Add get_package_manager()
Mariano Lopez [Tue, 24 May 2016 12:44:12 +0000 (12:44 +0000)]
oeqa/utils/package_manager.py: Add get_package_manager()

This new file just contain one function to return an OE package
manager, this depends in the current packaging method.

[YOCTO #8694]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooetest.py: Move getTests() outside loadTests() method
Mariano Lopez [Tue, 24 May 2016 12:44:11 +0000 (12:44 +0000)]
oetest.py: Move getTests() outside loadTests() method

The method getTests() can be useful to all the class,
not just to loadTests().

[YOCTO #8694]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotestexport.bbclass: Stop exporting test context
Mariano Lopez [Tue, 24 May 2016 12:44:10 +0000 (12:44 +0000)]
testexport.bbclass: Stop exporting test context

Because runexported.py instance an ExportTestContext
object, there is no need to export the data in
to reconstruct the object based in a dummy class.

[YOCTO #8478]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonopackages.bbclass: deltask foo_setscene
Robert Yang [Wed, 25 May 2016 09:23:58 +0000 (02:23 -0700)]
nopackages.bbclass: deltask foo_setscene

When deltask foo, also deltask foo_setscene.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibjpeg-turbo: set SUMMARY
Paul Eggleton [Wed, 25 May 2016 03:37:14 +0000 (15:37 +1200)]
libjpeg-turbo: set SUMMARY

This recipe had a long DESCRIPTION, so add a new short SUMMARY value.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogobject-introspection: set SUMMARY and HOMEPAGE
Paul Eggleton [Wed, 25 May 2016 03:37:13 +0000 (15:37 +1200)]
gobject-introspection: set SUMMARY and HOMEPAGE

We should at least have SUMMARY set for all recipes in OE-Core, and
there's a reasonable HOMEPAGE in this case so use it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoargp-standalone: set SUMMARY instead of DESCRIPTION
Paul Eggleton [Wed, 25 May 2016 03:37:12 +0000 (15:37 +1200)]
argp-standalone: set SUMMARY instead of DESCRIPTION

Short descriptions should go into SUMMARY (DESCRIPTION will get the same
value if not set.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosigning-keys: set SUMMARY instead of DESCRIPTION
Paul Eggleton [Wed, 25 May 2016 03:37:11 +0000 (15:37 +1200)]
signing-keys: set SUMMARY instead of DESCRIPTION

Short descriptions should go into SUMMARY (DESCRIPTION will get the same
value if not set.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agofts: set SUMMARY instead of DESCRIPTION
Paul Eggleton [Wed, 25 May 2016 03:37:10 +0000 (15:37 +1200)]
fts: set SUMMARY instead of DESCRIPTION

Short descriptions should go into SUMMARY (DESCRIPTION will get the same
value if not set.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobsd-headers: set SUMMARY instead of DESCRIPTION
Paul Eggleton [Wed, 25 May 2016 03:37:09 +0000 (15:37 +1200)]
bsd-headers: set SUMMARY instead of DESCRIPTION

Short descriptions should go into SUMMARY (DESCRIPTION will get the same
value if not set.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodhcp: fix non-deterministic libxml2 dependency
Christopher Larson [Tue, 24 May 2016 16:28:40 +0000 (09:28 -0700)]
dhcp: fix non-deterministic libxml2 dependency

This dependency was floating, which results in non-deterministic builds. Add
a configure argument and associated PACKAGECONFIG to fix this.

The libxml dep is only needed when bind was built with a dep on libxml due to
its httpstats feature. So, when you enable the httpstats config in bind, and
want to build dhcp, be sure to also enable the bind-httpstats config in dhcp.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc: Backport nios2 gcc ICE fix
Marek Vasut [Tue, 24 May 2016 13:06:48 +0000 (15:06 +0200)]
gcc: Backport nios2 gcc ICE fix

Backport a patch from mainline gcc 5 branch to fix ICE triggered
when cross-compiling libdrm for nios2 architecture. The same ICE
is fixed in gcc6 already.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonpm: add target_arch flag to npm
Brendan Le Foll [Tue, 24 May 2016 11:12:16 +0000 (12:12 +0100)]
npm: add target_arch flag to npm

npm takes a target_arch flag which needs to be set to do some gyp compilations
correctly. It also doesn't use the same mapping as OE for target arch so a
small function is required to make the mapping work. Function is taken from
meta-nodejs

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoghostcript: Set UPSTREAM_CHECK_URI variable
Leonardo Sandoval [Tue, 24 May 2016 06:36:44 +0000 (01:36 -0500)]
ghostcript: Set UPSTREAM_CHECK_URI variable

Set UPSTREAM_CHECK_URI (a github location), so package checking system gets the
latest version of the package.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosanity: check that the en_US.UTF-8 locale exists
Ross Burton [Tue, 24 May 2016 16:37:45 +0000 (17:37 +0100)]
sanity: check that the en_US.UTF-8 locale exists

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodiffutils: Add patch to fix gplv2 version with gcc6
Richard Purdie [Wed, 25 May 2016 14:27:52 +0000 (15:27 +0100)]
diffutils: Add patch to fix gplv2 version with gcc6

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotcmode-default: Bump gcc
Khem Raj [Fri, 13 May 2016 16:46:52 +0000 (09:46 -0700)]
tcmode-default: Bump gcc

gcc 6.1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4: integrate v4.4.11
Bruce Ashfield [Tue, 24 May 2016 15:54:00 +0000 (11:54 -0400)]
linux-yocto/4.4: integrate v4.4.11

Updating to the korg stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4: beaglebone: build in the usb controller drivers
Bruce Ashfield [Tue, 24 May 2016 15:53:59 +0000 (11:53 -0400)]
linux-yocto/4.4: beaglebone: build in the usb controller drivers

Merging the following meta data change:

[
    In the current codes, we build the drivers for usb controller as
    modules. But for some image types, such as minimal or
    full-cmdline, these driver modules are not installed to the rootfs by
    default. This makes the using of the usb pretty inconvenience. So
    make them all builtin.

Reported-and-suggested-by: hiims <h@101.org.il>
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.1: v4.1.24 and gcc6 powerpc fixes
Bruce Ashfield [Tue, 24 May 2016 15:53:58 +0000 (11:53 -0400)]
linux-yocto/4.1: v4.1.24 and gcc6 powerpc fixes

Bumping to the v4.1.24 -stable release, and backporting a ppc
gcc6 fix from the 4.4 kernel.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosqlite3: update to 3.13.0
Maxin B. John [Mon, 23 May 2016 15:39:56 +0000 (18:39 +0300)]
sqlite3: update to 3.13.0

3.12.2 -> 3.13.0

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoiproute2: upgrade to 4.6.0
Maxin B. John [Mon, 23 May 2016 15:39:55 +0000 (18:39 +0300)]
iproute2: upgrade to 4.6.0

1. Refreshed musl build fix patch for 4.6.0
2. Use the bash-completion class to package the completion files.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomatchbox-keyboard: Upgrade
Jussi Kukkonen [Mon, 23 May 2016 12:44:08 +0000 (15:44 +0300)]
matchbox-keyboard: Upgrade

This version includes:
* french keyboard and the Caps improvements it requires
* Gtk+3 input method is now included (not enabled by default yet)

Define some additional PACKAGECONFIGs: the default configuration does
not change.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa-demos: Upgrade 8.2.0 -> 8.3.0
Jussi Kukkonen [Mon, 23 May 2016 12:44:07 +0000 (15:44 +0300)]
mesa-demos: Upgrade 8.2.0 -> 8.3.0

Drop patches included in upstream and the EGL_MESA_screen_surface
extension fixes as the relevant code was removed.

Rebase other patches.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofontconfig: Upgrade 2.11.94 -> 2.11.95
Jussi Kukkonen [Mon, 23 May 2016 12:44:06 +0000 (15:44 +0300)]
fontconfig: Upgrade 2.11.94 -> 2.11.95

Remove a backported patch.
License checksum stays the same but license location changed.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodropbear: Upgrade 2015.71 -> 2016.73
Jussi Kukkonen [Mon, 23 May 2016 12:44:05 +0000 (15:44 +0300)]
dropbear: Upgrade 2015.71 -> 2016.73

Backport a patch to fix out-of-tree build.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkelfimage: fix compile issues
Christopher Larson [Mon, 23 May 2016 21:19:28 +0000 (14:19 -0700)]
mkelfimage: fix compile issues

This fixes a couple issues introduced by the previous patch. There were
a couple spots where HOST_CFLAGS needed changing to CFLAGS. This fixes builds
with security_flags.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl: Ensure SSL certificates are stored on sysconfdir
Otavio Salvador [Mon, 23 May 2016 20:45:27 +0000 (17:45 -0300)]
openssl: Ensure SSL certificates are stored on sysconfdir

Debian and other generic distributions has moved the certificates for
sysconfdir (/etc/ssl) and made the libdir content to link for it.

This provides several advantages specially for read-only
rootfs. Another benefit is that it ensures foreign implementations
(e.g: BoringSSL, from Chromium, when running with OpenSSL backend for
the certificates) to find the content correctly.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoca-certificates: Use c_rehash utility
Otavio Salvador [Mon, 23 May 2016 20:45:26 +0000 (17:45 -0300)]
ca-certificates: Use c_rehash utility

As now the c_rehash utility is available, we can use it. This removes
the patch to disable its usage allowing for a standard SSL behaviour.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl: Add Shell-Script based c_rehash utility
Otavio Salvador [Mon, 23 May 2016 20:45:25 +0000 (17:45 -0300)]
openssl: Add Shell-Script based c_rehash utility

The PLD Linux distribution has ported the c_rehash[1] utility from Perl
to Shell-Script, allowing it to be shipped by default.

1. https://git.pld-linux.org/?p=packages/openssl.git;a=blob;f=openssl-c_rehash.sh;h=0ea22637ee6dbce845a9e2caf62540aaaf5d0761

The OpenSSL upstream intends[2] to convert the utility for C however
did not yet finished the conversion.

2. https://rt.openssl.org/Ticket/Display.html?id=2324

This patch adds this script and thus removed the Perl requirement for
it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate.bbclass: Don't create symlinks, download to the correct location
Randy Witt [Mon, 23 May 2016 21:57:00 +0000 (14:57 -0700)]
sstate.bbclass: Don't create symlinks, download to the correct location

Previously the sstate was all downloaded to the same directory and then
symlinks were added in the directories that pointed to the siginfo and
sstate in the parent directory.

This change makes it so that now the files are just downloaded to the
correct location without the need for symlinks.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: upgrade: clarify help text for --srcrev option
Paul Eggleton [Tue, 24 May 2016 04:18:52 +0000 (16:18 +1200)]
devtool: upgrade: clarify help text for --srcrev option

The -S / --srcrev option must be specified if fetching from a git
repository, so spell that out in the help text.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: upgrade: tweak conflict handling
Paul Eggleton [Tue, 24 May 2016 04:18:51 +0000 (16:18 +1200)]
devtool: upgrade: tweak conflict handling

Make a couple of changes to the rebase operation:

1) Only wrap the actual rebase command in try...except since a failure
   in any of the other commands should be an error, not a warning
2) If it's a conflict (which unfortunately we can only tell by checking
   for the keyword "conflict" since git doesn't return error codes based
   on the type of error) then print a message clarifying that the user
   needs to resolve the issue themselves to finish the upgrade.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: upgrade: handle upgrading recipes with a versioned inc file
Paul Eggleton [Tue, 24 May 2016 04:18:50 +0000 (16:18 +1200)]
devtool: upgrade: handle upgrading recipes with a versioned inc file

The gdb recipe in OE-Core has an inc file with the version in it;
since the inc file is pulled in with a "require ${PV}.inc", when
upgrading the recipe we need to also rename the inc file it will fail to
parse and the upgrade itself will fail.

Fixes [YOCTO #9574].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd: Fix infinite build loop
Richard Purdie [Mon, 23 May 2016 09:32:23 +0000 (10:32 +0100)]
useradd: Fix infinite build loop

http://git.openembedded.org/openembedded-core-contrib/commit/?id=642c6cf0b6a0371de476513162bd0cefa9c438b3
introduces a problem if the USERADD_PARAM variable has trailing
whitespace as the code infinitely loops causing build hangs.

Add a similar sed expression to $remaining to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto-rt, core-image-rt*: Explicitly skip when PREFERRED_PROVIDER_virtual/kerne...
Martin Jansa [Fri, 29 Apr 2016 17:46:09 +0000 (19:46 +0200)]
linux-yocto-rt, core-image-rt*: Explicitly skip when PREFERRED_PROVIDER_virtual/kernel isn't set to linux-yocto-rt

* just like linux-yocto-dev is doing
* fixes following errors in world builds:
  ERROR: Nothing PROVIDES 'linux-yocto-rt' (but /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-rt/images/core-image-rt-sdk.bb DEPENDS on or otherwise requires it)
  ERROR: linux-yocto-rt was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-rt
  ERROR: linux-yocto-rt was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-rt
  ERROR: Required build target 'core-image-rt-sdk' has no buildable providers.
  Missing or unbuildable dependency chain was: ['core-image-rt-sdk', 'linux-yocto-rt']

  ERROR: Nothing PROVIDES 'linux-yocto-rt' (but /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-rt/images/core-image-rt.bb DEPENDS on or otherwise requires it)
  ERROR: linux-yocto-rt was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-rt
  ERROR: linux-yocto-rt was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-rt
  ERROR: Required build target 'core-image-rt' has no buildable providers.
  Missing or unbuildable dependency chain was: ['core-image-rt', 'linux-yocto-rt']

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/bitbake-whatchanged: migrate from optparse to argparse
Humberto Ibarra [Thu, 19 May 2016 19:51:54 +0000 (14:51 -0500)]
scripts/bitbake-whatchanged: migrate from optparse to argparse

The script bitbake-whatchanged uses optparse library, which is
deprecated since python 2.7. This migrates to argparse library.

[Yocto #9634]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocore-image-{minimal, testmaster}-initramfs: set COMPATIBLE_HOST
Martin Jansa [Fri, 29 Apr 2016 17:46:10 +0000 (19:46 +0200)]
core-image-{minimal, testmaster}-initramfs: set COMPATIBLE_HOST

* use the same COMPATIBLE_HOST restriction as initramfs-live-install(-testfs)
  to resolve ugly error when trying to build them e.g. for ARM:

  ERROR: Nothing RPROVIDES 'initramfs-live-install-testfs' (but /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-extended/images/core-image-testmaster-initramfs.bb RDEPENDS on or otherwise requires it)
  ERROR: initramfs-live-install-testfs was skipped: incompatible with host arm-oe-linux-gnueabi (not in COMPATIBLE_HOST)
  NOTE: Runtime target 'initramfs-live-install-testfs' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['initramfs-live-install-testfs']
  ERROR: Required build target 'core-image-testmaster-initramfs' has no buildable providers.
  Missing or unbuildable dependency chain was: ['core-image-testmaster-initramfs', 'initramfs-live-install-testfs']

  ERROR: Nothing RPROVIDES 'initramfs-live-install' (but /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb RDEPENDS on or otherwise requires it)
  ERROR: initramfs-live-install was skipped: incompatible with host arm-oe-linux-gnueabi (not in COMPATIBLE_HOST)
  NOTE: Runtime target 'initramfs-live-install' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['initramfs-live-install']
  ERROR: Required build target 'core-image-minimal-initramfs' has no buildable providers.
  Missing or unbuildable dependency chain was: ['core-image-minimal-initramfs', 'initramfs-live-install']

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage.bbclass: additional output in create_symlinks
Patrick Ohly [Wed, 18 May 2016 16:24:16 +0000 (19:24 +0300)]
image.bbclass: additional output in create_symlinks

When a symlink does not get created, it is useful for debugging to log
what would have been created and why it was skipped.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
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>
8 years agoimage.bbclass: support duplicate compression types
Patrick Ohly [Wed, 18 May 2016 16:24:14 +0000 (19:24 +0300)]
image.bbclass: support duplicate compression types

When a derived distro adds a certain type, say zip, to
COMPRESSIONTYPES and later OE-core does the same, we end up with the
type being listed twice, and that would have undesired effects
(commands generated twice).

So to support such loosely coupled extension, we de-duplicated the
list of types first.

Alternatively, such a situation could also be treated as error. But that
seems unnecessary because typically commands for the same type will also
do the same thing.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
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>
8 years agocoreutils: Fix rootfs creation errors
Dai Caiyun [Sat, 27 Feb 2016 23:05:53 +0000 (02:05 +0300)]
coreutils: Fix rootfs creation errors

    1) error: file /usr/share/man/man1/su.1 from install of shadow-doc-4.2.1
       conflicts with file from package coreutils-doc-6.9-r5
    2) error: file /usr/share/man/man1/hostname.1 from install of net-tools-doc
       conflicts with file from package coreutils-doc-6.9-r5
    3) error: file /usr/share/man/man1/hostname.1 from install of net-tools-doc
       conflicts with file from package coreutils-doc-8.25

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonet-tools: Fix rootfs creation errors
Dai Caiyun [Sat, 27 Feb 2016 23:03:45 +0000 (02:03 +0300)]
net-tools: Fix rootfs creation errors

1) error: file /usr/share/man/man1/hostname.1 from install of net-tools-doc
           conflicts with file from package coreutils-doc-6.9-r5
2) error: file /usr/share/man/man1/hostname.1 from install of net-tools-doc
           conflicts with file from package coreutils-doc-8.25

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoshadow: Fix rootfs creation errors
Dai Caiyun [Sat, 27 Feb 2016 23:03:12 +0000 (02:03 +0300)]
shadow: Fix rootfs creation errors

error: file /usr/share/man/man1/su.1 from install of shadow-doc-4.2.1
           conflicts with file from package coreutils-doc-6.9-r5

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomusl: Update to latest tip
Khem Raj [Fri, 20 May 2016 14:03:30 +0000 (07:03 -0700)]
musl: Update to latest tip

Bobby Bingham (3):
      x32: remove arch-specific syscall remapping
      x32: eliminate __X32_SYSCALL_BIT constant
      deduplicate __NR_* and SYS_* syscall number definitions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemu: Upgrade to 2.6.0
Marek Vasut [Fri, 20 May 2016 14:03:29 +0000 (07:03 -0700)]
qemu: Upgrade to 2.6.0

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoharfbuzz: update to 1.2.7
Maxin B. John [Fri, 20 May 2016 12:51:22 +0000 (15:51 +0300)]
harfbuzz: update to 1.2.7

1.2.6 -> 1.2.7

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsolv: update to 0.6.21
Maxin B. John [Fri, 20 May 2016 12:51:21 +0000 (15:51 +0300)]
libsolv: update to 0.6.21

0.6.20 -> 0.6.21

Remove upstreamed patch:
        1. 0001-CMakeLists.txt-fix-MAN_INSTALL_DIR.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsoup-2.4: provide PACKAGECONFIG for gssapi
Maxin B. John [Fri, 20 May 2016 12:51:20 +0000 (15:51 +0300)]
libsoup-2.4: provide PACKAGECONFIG for gssapi

Fixes this build error:

| ../../libsoup-2.54.1/libsoup/soup-auth-negotiate.c:16:27: fatal error:
gssapi/gssapi.h: No such file or directory
| compilation terminated.
| Makefile:1166: recipe for target
'libsoup_2_4_la-soup-auth-negotiate.lo' failed
| make[3]: *** [libsoup_2_4_la-soup-auth-negotiate.lo] Error 1

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocmake: update to 3.5.2
Maxin B. John [Fri, 20 May 2016 12:51:19 +0000 (15:51 +0300)]
cmake: update to 3.5.2

Adjust LIC_FILES_CHKSUM due to changes in the Copyright date.
No change to the license text.

Remove the upstreamed patch:
        1. 0001-Add-NIOS2-CPU-support.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoghostscript: Update URL_SRI considered as 'old release'
Leonardo Sandoval [Fri, 20 May 2016 05:59:17 +0000 (00:59 -0500)]
ghostscript: Update URL_SRI considered as 'old release'

The Ghostcript project started to place their tarballs in two places
starting at 9.19 as explained in [1]. 9.18 version is considered old,
so including the 'old-gs-releases' in the URL.

[1] http://downloads.ghostscript.com/public/

[YOCTO #9573]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd: re-enable mount propagation for udevd
Roy Li [Tue, 10 May 2016 02:09:33 +0000 (10:09 +0800)]
systemd: re-enable mount propagation for udevd

With MountFlags=slave, those mounts then become private to the systemd-udevd
namespace and are no longer accessible from outside the namespace, which is
not expected

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage_manager: no need to output Note: in bb.note() calls
Ross Burton [Fri, 20 May 2016 14:14:59 +0000 (15:14 +0100)]
package_manager: no need to output Note: in bb.note() calls

8 years agowipe-sysroot: fix wrong glob when removing manifests
Ross Burton [Fri, 20 May 2016 10:36:32 +0000 (11:36 +0100)]
wipe-sysroot: fix wrong glob when removing manifests

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/oe-selftest: Remove inadvertant python3 specific change
Richard Purdie [Sun, 22 May 2016 15:06:20 +0000 (16:06 +0100)]
scripts/oe-selftest: Remove inadvertant python3 specific change

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-smartpm: Avoid locale issue with bitbake python3
Richard Purdie [Thu, 19 May 2016 14:00:57 +0000 (15:00 +0100)]
python-smartpm: Avoid locale issue with bitbake python3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf/toolchain-shar-extract: Use en_US.UTF-8 as locale
Richard Purdie [Sat, 21 May 2016 11:30:11 +0000 (12:30 +0100)]
bitbake.conf/toolchain-shar-extract: Use en_US.UTF-8 as locale

Under python 3, if we spawn python processes, we need to have a UTF-8 locale,
else python's file access methods will use ascii. You can't change that mode
once the interpreter is started so we have to ensure a locale is set. Ideally
we'd use C.UTF-8 since OE already forces the C locale but not all distros support
that and we need to set something so en_US.UTF-8 seems as standard we we can get.

This matches the change in bitbake revision 8902c29638411d312e6fc4a197707e5742652e15

Also set this into the environment used when installing SDKs since
python can be run and we need to ensure we use a standardised locale
which is available from things like buildtools-tarball.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa: Update to modern exception syntax
Richard Purdie [Sat, 21 May 2016 11:29:16 +0000 (12:29 +0100)]
meta: Update to modern exception syntax

Update older exception syntax to modern one required by python 3.
Compatible with python 2.7.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-uimage: Fix python indentation
Richard Purdie [Sat, 21 May 2016 11:27:48 +0000 (12:27 +0100)]
kernel-uimage: Fix python indentation

Use spaces, not tabs for python functions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa/scripts: python3: rename file -> open
Richard Purdie [Sat, 21 May 2016 11:26:45 +0000 (12:26 +0100)]
meta/scripts: python3: rename file -> open

file() API doesn't exist in python 3, convert to open(). Also handle
some cases where files aren't closed. Compatible with python 2.7.

[Contributions from Ed and Richard]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa/selftest/scripts: Use print function for python3 compatibility
Richard Purdie [Sat, 21 May 2016 11:25:02 +0000 (12:25 +0100)]
meta/selftest/scripts: Use print function for python3 compatibility

Used print function instead of print statement to make
the code work in python 3.

[Changes from both Ed and Richard]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: sdk-update: drop support for local updates
Paul Eggleton [Fri, 20 May 2016 10:21:18 +0000 (22:21 +1200)]
devtool: sdk-update: drop support for local updates

Having two code paths here makes maintenance difficult, and it doesn't
seem likely that you would use the local case in real usage anyway, so
drop the local support entirely.

This should allow us to resolve [YOCTO #9301].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonativesdk-glibc: Extend relocation support to locales
Richard Purdie [Sat, 21 May 2016 10:55:36 +0000 (11:55 +0100)]
nativesdk-glibc: Extend relocation support to locales

Currently locales are not found in a relocated buildtools-tarball
such as that used in eSDK. This breaks bitbake when used under python3.

This patch adds enough relocation magic to nativesdk-glibc so that
the binary locales can be found even in a relocated buildtools-tarball
and bitbake works successfully under python3. The eSDK also works
correctly after this change too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc-locale: Enable binary locale generation for nativesdk-glibc
Richard Purdie [Sat, 21 May 2016 10:53:08 +0000 (11:53 +0100)]
glibc-locale: Enable binary locale generation for nativesdk-glibc

python3 has much stricter locale requirements than previous versions.
If a locale isn't present, python3 reverts to ascii mode under which
bit
bake can't operate.

We therefore need working binary locales in things like uninative-tarball and buildtools-tarball. This patch enables binary locales for nativesdk-glibc.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: use 'lnr' instead of 'ln -sr'
Ming Liu [Fri, 20 May 2016 20:14:20 +0000 (22:14 +0200)]
build-appliance-image: use 'lnr' instead of 'ln -sr'

For portability, not all hosts are running sufficiently new coreutils.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-modules: Upgrade to 2.7.3 release
Andrew Bradford [Fri, 20 May 2016 19:04:05 +0000 (15:04 -0400)]
lttng-modules: Upgrade to 2.7.3 release

Linux 4.5 and later cause lttng-modules versions prior to 2.7.2 to fail
to compile due to Linux vmscan changes.  See lttng-modules git commit
d0d2908478bdc8c36faaeae6fcb687052cb5f93b on lttng-modules branch
stable-2.7: "Fix: update vmscan instrumentation for kernel 4.5".

Signed-off-by: Andrew Bradford <andrew.bradford@kodakalaris.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkelfimage: obey LDFLAGS, sort out HOST_ flags
Christopher Larson [Fri, 20 May 2016 17:04:20 +0000 (10:04 -0700)]
mkelfimage: obey LDFLAGS, sort out HOST_ flags

We weren't consistent in the HOST_ (aka BUILD_) and non-HOST_ flags, so we
were using BUILD_CPPFLAGS to compile target stuff, for example. Sort that out,
and make sure we obey LDFLAGS.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocore-image-weston: If X11 is enabled, add XWayland support
Otavio Salvador [Wed, 18 May 2016 16:40:48 +0000 (13:40 -0300)]
core-image-weston: If X11 is enabled, add XWayland support

When the distribution has X11 and Wayland backends, we enable XWayland support
and include matchbox-terminal as a test application for the XWayland backend.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Use weston-launch when starting weston as the first windowing system
Tom Hochstein [Wed, 18 May 2016 16:40:47 +0000 (13:40 -0300)]
weston-init: Use weston-launch when starting weston as the first windowing system

When  weston is started as the first windowing system (i.e. not under X
nor under another Wayland server), it should be done with  the  command
weston-launch to set up proper privileged access to devices.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Add Xwayland initialization support using weston-start
Otavio Salvador [Wed, 18 May 2016 16:40:46 +0000 (13:40 -0300)]
weston: Add Xwayland initialization support using weston-start

The weston-start script now supports loading modules so the Xwayland
support can be loaded optionally. Use this to load Weston accordingly.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Add module support for the weston-start helper
Otavio Salvador [Wed, 18 May 2016 16:40:45 +0000 (13:40 -0300)]
weston-init: Add module support for the weston-start helper

To make weston-start more flexible we now support module loading. For
such modules, following functions can be used:

 - add_weston_argument
 - add_openvt_argument

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Error out if loading a nested instance
Otavio Salvador [Wed, 18 May 2016 16:40:44 +0000 (13:40 -0300)]
weston-init: Error out if loading a nested instance

The Weston nested instance support is not implemented. This errors out
displaying an informative error message so someone insterested on it
may look at implement this later.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Rework init sequence to avoid code duplication
Otavio Salvador [Wed, 18 May 2016 16:40:43 +0000 (13:40 -0300)]
weston-init: Rework init sequence to avoid code duplication

The new 'weston-start' script redcues the code duplication for SysV
and SystemD based images.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Rework do_install to use install -D option
Otavio Salvador [Wed, 18 May 2016 16:40:42 +0000 (13:40 -0300)]
weston-init: Rework do_install to use install -D option

The install -D allow for the parent directories to be created in a
single command line, reducing the code and number of fork during the
build.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Provide a default version of weston-launch that doesn't require PAM
Tom Hochstein [Wed, 18 May 2016 16:40:41 +0000 (13:40 -0300)]
weston: Provide a default version of weston-launch that doesn't require PAM

weston-launch requires PAM for starting weston as a non-root user.

Since starting weston as root is a valid use case by itself, we check
the distro for 'pam' and build weston-launch with or without
non-root-user support.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Remove XWayland dependencies on PACKAGECONFIG
Otavio Salvador [Wed, 18 May 2016 16:40:40 +0000 (13:40 -0300)]
weston: Remove XWayland dependencies on PACKAGECONFIG

Instead of adding partial dependencies we list the PACKAGECONFIG
options that are required. Those are: X11 and Wayland.

The previous value were redudant with X11 PACKAGECONFIG option and as
it is a requirement, for XWayland, it can be removed to easy
maintenance.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Enable XWayland when X11 and Wayland support are available
Otavio Salvador [Wed, 18 May 2016 16:40:39 +0000 (13:40 -0300)]
weston: Enable XWayland when X11 and Wayland support are available

When the DISTRO has X11 and Wayland support enabled, XWayland ought to
be enabled by default.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>