]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
8 years agoqemuarm.conf: set PREFERRED_VERSION_linux-yocto rbt/qemuarm
Robert Yang [Tue, 6 Sep 2016 05:33:29 +0000 (22:33 -0700)] 
qemuarm.conf: set PREFERRED_VERSION_linux-yocto

The base_version_less_or_equal() will raise errors if
PREFERRED_VERSION_linux-yocto is None. For example, when we build
DISTRO = "nodistro", PREFERRED_VERSION_linux-yocto is not be defined
since it is defined in poky.conf, and then bitbake will
choose the higher version which is 4.8 currently, so set
PREFERRED_VERSION_linux-yocto to 4.8, otherwise, runqemu can't boot it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
8 years agogstreamer: do not attempt to run a plugin scanner during gtk-doc generation
Alexander Kanavin [Mon, 5 Sep 2016 18:56:04 +0000 (21:56 +0300)] 
gstreamer: do not attempt to run a plugin scanner during gtk-doc generation

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: correct globalres time format
Markus Lehtonen [Mon, 5 Sep 2016 18:33:56 +0000 (21:33 +0300)] 
oeqa.buildperf: correct globalres time format

Always use two digits for (integer part of) seconds, i.e. show '1:02.34'
instead of '1:2.34'.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-build-perf-test: fix log file path
Markus Lehtonen [Mon, 5 Sep 2016 17:21:16 +0000 (20:21 +0300)] 
oe-build-perf-test: fix log file path

The --log-file command line argument was slightly broken as {out_dir}
string replacement was not working as expected.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-modules: Do not fail if CONFIG_TRACEPOINTS is not enabled
Otavio Salvador [Mon, 5 Sep 2016 17:20:20 +0000 (14:20 -0300)] 
lttng-modules: Do not fail if CONFIG_TRACEPOINTS is not enabled

The lttng-modules are being pulled by the tools-profile image feature,
however, not every kernel has the CONFIG_TRACEPOINTS feature enabled.

This change makes the build do not fail when CONFIG_TRACEPOINTS is not
available, allowing it to be kept being pulled by default.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-module-split.bbclass: no need for running depmod
André Draszik [Thu, 18 Aug 2016 07:56:26 +0000 (08:56 +0100)] 
kernel-module-split.bbclass: no need for running depmod

With the recent changes, executing depmod is not needed
anymore.

This simplifies and removes a lot of unnecessary code.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-module-split.bbclass: generate dependencies across recipes
André Draszik [Thu, 18 Aug 2016 07:56:25 +0000 (08:56 +0100)] 
kernel-module-split.bbclass: generate dependencies across recipes

The information retrieved via depmod is incomplete with
regards to kernel modules that are dependencies, in
particular where two kernel modules are built from
different source trees / recipes, which leads to incomplete
dependency information for packages created.

So far, our packages created didn't contain dependencies on
packages created by other recipes, as we solely use depmod
for that, and depmod can only work well after *all* kernel
modules have been copied into one place - it doesn't work
well in a staged approach.

Now that all .ko have correct dependency information at packaging
time, we can use that information to properly track dependencies
across recipies, and can combine the information from the
.modinfo elf section with the information from depmod.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomodule.bbclass: use Module.symvers for dependants
André Draszik [Thu, 18 Aug 2016 07:56:24 +0000 (08:56 +0100)] 
module.bbclass: use Module.symvers for dependants

When compiling multiple external kernel modules, where one
depends on the other, there are two problems at the
moment:
1) we get compile time warnings from the kernel build
   system due to missing symbols (from modpost).
2) Any modules generated are missing dependency
   information (in the .modinfo elf section) for any
   dependencies outside the current source tree and
   outside the kernel itself.

This is expected, but the kernel build system has a way to
deal with this - the dependent module is expected to
specify KBUILD_EXTRA_SYMBOLS (as a space-separated list)
to point to any and all Module.symvers of kernel modules
that are dependencies.

While 1) by itself is not really a big issue, 2) prevents
the packaging process from generating cross-source tree
package dependencies.

As a first step to solve the missing dependencies in
packages created, we:
1) install Module.symvers of all external kernel module
   builds (into a location that is automatically packaged
   into the -dev package)
2) make use of KBUILD_EXTRA_SYMBOLS and pass the location
   of all Module.symvers of all kernel-module-* packages
   we depend on

This solves both problems mentioned above.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/liboe: add a test for copyhardlinktree()
Joshua Lock [Mon, 5 Sep 2016 13:35:10 +0000 (14:35 +0100)] 
selftest/liboe: add a test for copyhardlinktree()

Add a simple test to validate that the number of files in the
destination matches the number of files in the source after the
copyhardlinktree() has been performed.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe.path: fix copyhardlinktree()
Joshua Lock [Mon, 5 Sep 2016 13:35:09 +0000 (14:35 +0100)] 
oe.path: fix copyhardlinktree()

The change to preserve extended attributes in copytree() and
copyhardlinktree() (e591d69103a40ec4f76d1132a6039d9cb1555103)
resulted in an incorrect cp invocation in copyhardlinktree() when
the source directory contained hidden files.

This was because the passed src was modified in place but some code
paths expected it to remain unmodified from the passed value.
Resolve the issue by constructing a new source string, rather than
modifying the passed in string.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-modules: Bump to 6e4fc6f3 revision
Otavio Salvador [Mon, 5 Sep 2016 16:28:43 +0000 (13:28 -0300)] 
lttng-modules: Bump to 6e4fc6f3 revision

This moves the recipe to the tip of stable-2.8 branch which allows the
use of Linux 4.8 while keep us on a stable release.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuppc: Use virtio networking instead of pcnet
Richard Purdie [Mon, 5 Sep 2016 16:38:58 +0000 (17:38 +0100)] 
qemuppc: Use virtio networking instead of pcnet

This is an attempt to avoid networking glitches we seem to be
seeing specific to qemuppc.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: ensure rpm2cpio call rpm relocation code
Zhixiong Chi [Mon, 5 Sep 2016 04:08:13 +0000 (12:08 +0800)] 
rpm: ensure rpm2cpio call rpm relocation code

We need to call rpmcliInit to ensure the rpm relocation code is called.
when we allow rpm2cpio to be relocatable, The adjusted path used to find
the macro files was being built into the binary and this path was valid
for the machine it was built on and some of our other build machines,
but invalid on some others, and was not being properly overridden at
runtime.

when we export the wrsdk and source the sdk, then execute rpm2cpio xxx.rpm|cpio -t.
we will get the following error :
"rpm-5.4.14/rpmdb/dbconfig.c:493:
db3New: Assertion `dbOpts != ((void *)0) && *dbOpts != '\0'' failed.

Signed-off-by: Zhixiong Chi <Zhixiong.Chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogobject-introspection: set GI_SCANNER_DISABLE_CACHE for native
Robert Yang [Mon, 5 Sep 2016 06:56:24 +0000 (23:56 -0700)] 
gobject-introspection: set GI_SCANNER_DISABLE_CACHE for native

The native recipe should not write files to $HOME/.cache as target, this can
avoid problems when multi builds are running on the same host like:
|   File "./g-ir-scanner", line 66, in <module>
|     sys.exit(scanner_main(sys.argv))
|   File "../gobject-introspection-1.48.0/giscanner/scannermain.py", line 543, in scanner_main
|     transformer = create_transformer(namespace, options)
|   File "../gobject-introspection-1.48.0/giscanner/scannermain.py", line 389, in create_transformer
|     symbol_filter_cmd=options.symbol_filter_cmd)
|   File "../gobject-introspection-1.48.0/giscanner/transformer.py", line 54, in __init__
|     self._cachestore = CacheStore()
|   File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 61, in __init__
|     self._check_cache_version()
|   File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 89, in _check_cache_version
|     self._clean()
|   File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 141, in _clean
|     self._remove_filename(os.path.join(self._directory, filename))
|   File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 123, in _remove_filename
|     os.unlink(filename)
| FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/.cache/g-ir-scanner/0a47aa95823c95a0b5d1bd610b60d02f35785f26'
| Makefile:3518: recipe for target 'GModule-2.0.gir' failed

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocoreutils: enable xattr for native
Robert Yang [Mon, 5 Sep 2016 07:30:43 +0000 (00:30 -0700)] 
coreutils: enable xattr for native

The lib/oe/path.py requires xattr, fixed:
Subprocess output:
cp: cannot preserve extended attributes, cp is built without xattr support

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "bitbake.conf: Disable api-docs temporarily"
Richard Purdie [Wed, 31 Aug 2016 21:00:09 +0000 (22:00 +0100)] 
Revert "bitbake.conf: Disable api-docs temporarily"

This reverts commit 96ac471c358dee1844b22105269c2b4a791ccea0.

8 years agobitbake.conf: Disable api-docs temporarily
Richard Purdie [Wed, 31 Aug 2016 08:59:55 +0000 (09:59 +0100)] 
bitbake.conf: Disable api-docs temporarily

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agox11-common: Remove Xserver script
Jussi Kukkonen [Tue, 30 Aug 2016 08:32:09 +0000 (11:32 +0300)] 
x11-common: Remove Xserver script

X startup is now handled in xserver-nodm-init.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxserver-nodm-init: Deprecate /etc/X11/Xserver
Jussi Kukkonen [Thu, 1 Sep 2016 06:53:04 +0000 (09:53 +0300)] 
xserver-nodm-init: Deprecate /etc/X11/Xserver

This commit should provide the same functionality as before, but
should make meta-oe xserver-nodm-init-2.0 obsolete as well as
keep systemd and sysvinit startup better in sync.

/etc/X11/Xserver is not called anymore: it is provided by both
x11-common and xserver-common with no useful differences (but some
annoying ones). Instead xserver-nodm-init provides
/etc/xserver-nodm/Xserver as the startup script and
/etc/default/xserver-nodm as the default settings file. These are
used by both init systems.

The Xserver script could be completely removed (with sysv and
systemd calling xinit directly), but to keep compatibility with
meta-oes xserver-nodm-init-2.0 the Xserver script sources
/etc/X11/xserver-common if one exists -- and systemd EnvironmentFile
cannot do that.

x11-common used to have a packageconfig to easily control screen
blanking. Move this to xserver-nodm-init.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognutls: update to 3.5.3
Jussi Kukkonen [Wed, 31 Aug 2016 08:50:03 +0000 (11:50 +0300)] 
gnutls: update to 3.5.3

Add patch to fix compile without libtasn headers.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm: Add DTB file new kernel
Richard Purdie [Tue, 30 Aug 2016 22:56:38 +0000 (23:56 +0100)] 
qemuarm: Add DTB file new kernel

For kernels after 4.7, we need to ensure the DTB file for the kernel is
used by runqemu. Doing this conditionally based upon the kernel verison
being built seems to be the only way forward for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: Enable virtio RNG for all platforms
Richard Purdie [Thu, 1 Sep 2016 21:10:21 +0000 (22:10 +0100)] 
runqemu: Enable virtio RNG for all platforms

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner.py/qemutinyrunner.py: remove runqemu-internal
Robert Yang [Thu, 25 Aug 2016 14:41:07 +0000 (07:41 -0700)] 
qemurunner.py/qemutinyrunner.py: remove runqemu-internal

There is no runqemu-internal any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonativesdk-qemu-helper: fix for new runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:06 +0000 (07:41 -0700)] 
nativesdk-qemu-helper: fix for new runqemu

There is no runqemu-internal anymore, and it is a python script now
which requires several python modules.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: refactor it and remove machine knowledge
Robert Yang [Thu, 25 Aug 2016 14:41:05 +0000 (07:41 -0700)] 
runqemu: refactor it and remove machine knowledge

Previously, runqemu had hard coded machine knowledge, which limited its
usage, for example, qemu can boot genericx86, but runqemu can't, we need
edit runqemu/runqemu-internal a lot if we want to boot genericx86.

Now bsp conf files can set vars to make it can be boot by runqemu, and
qemuboot.bbclass will save these info to DEPLOY_DIR_IMAGE/qemuboot.conf.
Please see qemuboot.bbclass' comments on how to set the vars.

* Re-write it in python3, which can reduce lines from 1239 to about 750
  lines
* All the machine knowledges are gone
* All of the TUN_ARCH knowledge are gone
* All the previous options are preserved, and there is a new way to run
  runqemu: (it doesn't need run "bitake -e" in such a case)
  $ runqemu tmp/deploy/images/qemux86
  or:
  $ runqemu tmp/deploy/images/qemuarm/<image>.ext4
  or:
  $ runqemu tmp/deploy/images/qemuarm/qemuboot.conf
* Fixed audio support, not limited on x86 or x86_64
* Fix SLIRP mode, add help message, avoid mixing with tap
* Fix NFS boot, it will extract <image>.tar.bz2 or tar.gz to
  DEPLOY_DIR_IMAGE/<image>-nfsroot when no NFS_DIR, and remove it after
  stop.
* More bsps can be boot, such as genericx86 and genericx86-64.
* The patch for qemuzynq, qemuzynqmp, qemumicroblaze has been sent to
  meta-xilinx' mailing list.
* I can't find any qemush4 bsp or how to build it, so it is not
  considered atm.

[YOCTO #1018]
[YOCTO #4827]
[YOCTO #7459]
[YOCTO #7887]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu.inc: inherit qemuboot.bbclass
Robert Yang [Thu, 25 Aug 2016 14:41:04 +0000 (07:41 -0700)] 
qemu.inc: inherit qemuboot.bbclass

All qemu boards should be able to boot by runqemu.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuppc.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:03 +0000 (07:41 -0700)] 
qemuppc.conf: set vars for runqemu

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemumips/qemumips64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:02 +0000 (07:41 -0700)] 
qemumips/qemumips64.conf: set vars for runqemu

Add qemuboot-mips.inc to reduce duplicated code, the various mips bsps
which can be boot by runqemu can require qemuboot-mips.inc

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemux86.conf/qemux86-64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:01 +0000 (07:41 -0700)] 
qemux86.conf/qemux86-64.conf: set vars for runqemu

Add qemuboot-x86.inc to reduce duplicated code, the x86/x86_64 bsps
which can be boot by runqemu can require qemuboot-x86.inc.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:00 +0000 (07:41 -0700)] 
qemuarm64.conf: set vars for runqemu

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:40:59 +0000 (07:40 -0700)] 
qemuarm.conf: set vars for runqemu

These info are from old runqemu.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuboot.bbclass: add it for runqemu
Robert Yang [Thu, 25 Aug 2016 14:40:58 +0000 (07:40 -0700)] 
qemuboot.bbclass: add it for runqemu

It saves vars in ${DEPLOY_DIR_IMAGE}/<image>.qemuboot.conf, and runqemu
will read it.

The bsp which can be boot by runqemu will inherit it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk+3: disable gtk-doc when x11 is not available
Alexander Kanavin [Fri, 2 Sep 2016 12:06:45 +0000 (15:06 +0300)] 
gtk+3: disable gtk-doc when x11 is not available

gtk-doc requires gdk/x11/gdkx.h which is not available if gdk x11 backend is disabled
(due to jku's patch).

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclutter-1.0: do not use the prepackaged clutter.types file when generating gtk-doc
Alexander Kanavin [Fri, 2 Sep 2016 12:06:44 +0000 (15:06 +0300)] 
clutter-1.0: do not use the prepackaged clutter.types file when generating gtk-doc

Doing so will fail when x11 is disabled in particular.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopango: fix gtk-doc build when x11 is not in use
Alexander Kanavin [Fri, 2 Sep 2016 12:06:43 +0000 (15:06 +0300)] 
pango: fix gtk-doc build when x11 is not in use

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-doc: patch the scripts to not hardcode the full paths to interpreters
Alexander Kanavin [Wed, 31 Aug 2016 19:22:07 +0000 (22:22 +0300)] 
gtk-doc: patch the scripts to not hardcode the full paths to interpreters

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: re-enable introspection on powerpc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:27 +0000 (17:28 +0300)] 
webkitgtk: re-enable introspection on powerpc

It seems to work under qemu-ppc now.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcr, libsecret, webkitgtk: disable gtk-doc on mips64
Alexander Kanavin [Fri, 26 Aug 2016 14:28:26 +0000 (17:28 +0300)] 
gcr, libsecret, webkitgtk: disable gtk-doc on mips64

It fails with the same error as gobject-introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: enable gtk-doc support
Alexander Kanavin [Fri, 26 Aug 2016 14:28:24 +0000 (17:28 +0300)] 
webkitgtk: enable gtk-doc support

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutil-linux: do not enable gtk-doc and explain why
Alexander Kanavin [Fri, 26 Aug 2016 14:28:43 +0000 (17:28 +0300)] 
util-linux: do not enable gtk-doc and explain why

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agop11-kit: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:42 +0000 (17:28 +0300)] 
p11-kit: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibsoup-2.4: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:41 +0000 (17:28 +0300)] 
libsoup-2.4: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibtasn1: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:40 +0000 (17:28 +0300)] 
libtasn1: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognutls: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:39 +0000 (17:28 +0300)] 
gnutls: enable gtk-doc

gtk-doc also requires --enable-doc, so that is no longer configurable.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoharfbuzz: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:38 +0000 (17:28 +0300)] 
harfbuzz: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocairo: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:37 +0000 (17:28 +0300)] 
cairo: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibenck3: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:36 +0000 (17:28 +0300)] 
libenck3: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgudev: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:35 +0000 (17:28 +0300)] 
libgudev: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agojson-glib: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:34 +0000 (17:28 +0300)] 
json-glib: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognome-desktop3: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:33 +0000 (17:28 +0300)] 
gnome-desktop3: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdk-pixbuf: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:32 +0000 (17:28 +0300)] 
gdk-pixbuf: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibuser: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:31 +0000 (17:28 +0300)] 
libuser: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibidn: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:30 +0000 (17:28 +0300)] 
libidn: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoorc: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:29 +0000 (17:28 +0300)] 
orc: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodbus-glib: enable gtk-doc
Alexander Kanavin [Fri, 26 Aug 2016 14:28:28 +0000 (17:28 +0300)] 
dbus-glib: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcr: disable gtk-doc on x86_64
Alexander Kanavin [Fri, 26 Aug 2016 14:28:25 +0000 (17:28 +0300)] 
gcr: disable gtk-doc on x86_64

For same reason that introspection is disabled: the transient binary goes into infinite loop.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0: enable gtk-doc support
Alexander Kanavin [Fri, 26 Aug 2016 14:28:23 +0000 (17:28 +0300)] 
gstreamer1.0: enable gtk-doc support

check support is no longer disabled by default because it is a requirement
of gtk-doc support in gstreamer.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibglade: remove the recipe
Alexander Kanavin [Fri, 26 Aug 2016 14:28:22 +0000 (17:28 +0300)] 
libglade: remove the recipe

Libglade has been obsolete for several years and is used by nothing in oe-core;
it will be moved to meta-oe so that old recipes still present there continue to build.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: drop unused gtkdoc-related variable
Alexander Kanavin [Fri, 26 Aug 2016 14:28:21 +0000 (17:28 +0300)] 
systemd: drop unused gtkdoc-related variable

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokmod: do not let gtkdocize fail
Alexander Kanavin [Fri, 26 Aug 2016 14:28:20 +0000 (17:28 +0300)] 
kmod: do not let gtkdocize fail

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-doc.bbclass: enable building gtk-doc based documentation
Alexander Kanavin [Fri, 26 Aug 2016 14:28:19 +0000 (17:28 +0300)] 
gtk-doc.bbclass: enable building gtk-doc based documentation

This is done similarly to gobject-introspection, but with much
less delicate hacking around the upstream way of working.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: add "api-documentation" to default distro features
Alexander Kanavin [Fri, 26 Aug 2016 14:28:18 +0000 (17:28 +0300)] 
bitbake.conf: add "api-documentation" to default distro features

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-doc: add a recipe, remove gtk-doc-stub
Alexander Kanavin [Fri, 26 Aug 2016 14:28:17 +0000 (17:28 +0300)] 
gtk-doc: add a recipe, remove gtk-doc-stub

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosource-highlight: add a recipe
Alexander Kanavin [Fri, 26 Aug 2016 14:28:16 +0000 (17:28 +0300)] 
source-highlight: add a recipe

gtk-doc relies on this to highlight source code snippets

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysstat: 11.3.5 -> 11.4.0
Wang Xin [Fri, 2 Sep 2016 05:11:32 +0000 (01:11 -0400)] 
sysstat: 11.3.5 -> 11.4.0

Upgrade sysstat from 11.3.5 to 11.4.0.

Signed-off-by: Wang Xin <wangxin2015.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-perf-test-wrapper.sh: fix handling of -C argument
Markus Lehtonen [Fri, 2 Sep 2016 13:37:25 +0000 (16:37 +0300)] 
build-perf-test-wrapper.sh: fix handling of -C argument

Not specifying -C caused oe-build-perf-test to try to commit results to
the build directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoofono: RRECOMMENDS tun.ko & APN database
André Draszik [Fri, 2 Sep 2016 22:04:41 +0000 (23:04 +0100)] 
ofono: RRECOMMENDS tun.ko & APN database

- kernel-module-tun is needed so that ofono can create the
  ppp network interface

- mobile-broadband-provider-info is needed as an explicit
  dependency even though it is in DEPENDS, because it's
  just an xml database, and the DEPENDS simply allows
  ofono to figure out its location in the file system
  (using pkg-config during configure). But there is no
  shared library dependency or so for bitbake to figure
  out this runtime dependency.
  We make it a recommendation only, so that it can still
  be removed from filesystem images in case people build
  images that don't need the provider database (and e.g.
  hard-code APNs for specific use-cases)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoe2fsprogs: packaging cleanups (compile_et & mk_cmds)
André Draszik [Fri, 2 Sep 2016 21:39:37 +0000 (22:39 +0100)] 
e2fsprogs: packaging cleanups (compile_et & mk_cmds)

While comparing what were supposed to be similar
filesystems from different build machines, some issues
have been noticed in the e2fsprogs recipe, in
particular with the compile_et and mk_cmds utilities.

1) target:
   move compile_et and mk_cmds into the -dev package

   Both are development tools, from the man pages:

   compile_et - error table compiler
     compile_et converts a table listing error-code names
     and associated messages into a C source file suitable
     for use with the com_err(3) library.

   mk_cmds - error table compiler
     mk_cmds converts a table listing command names and
     associated help messages into a C source file suitable
     for use with the ss(3) library.

2) native/nativesdk
   Also apply cleaning of host path (build directory) here,
   so that only the sysroot directory remains, which is
   properly adjusted by the sstate handling.

3) make cleaning of host path actually work
   The existing sed command wasn't working, in particular
   for compile_et; we fix up the sed command so that
   removal of references to the local build directory
   really works. Do the same changes for mk_cmds, for
   consistency.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: fix MIPS16e compilation
André Draszik [Sat, 3 Sep 2016 00:12:22 +0000 (01:12 +0100)] 
boost: fix MIPS16e compilation

Backport upstream patch to use g++ 4.1+ __sync intrinsics
instead of incompatible hand-written assembly when
compiling for MIPS16e

Upstream-Status: Backport https://svn.boost.org/trac/boost/ticket/12418

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: fix mips soft float compilation
André Draszik [Sat, 3 Sep 2016 00:12:21 +0000 (01:12 +0100)] 
boost: fix mips soft float compilation

Upstream-Status: Submitted https://svn.boost.org/trac/boost/ticket/11756

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: fix a musl compilation warning
André Draszik [Sat, 3 Sep 2016 00:12:20 +0000 (01:12 +0100)] 
boost: fix a musl compilation warning

Upstream-Status: Submitted https://svn.boost.org/trac/boost/ticket/12419

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovalgrind: Disable for MIPS Soft Float
Zubair Lutfullah Kakakhel [Fri, 2 Sep 2016 16:01:42 +0000 (17:01 +0100)] 
valgrind: Disable for MIPS Soft Float

Valgrind doesn't build for MIPS soft float. Disable the build until
the package has support for it.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup: Disable packages not available on mipsel
Zubair Lutfullah Kakakhel [Fri, 2 Sep 2016 16:01:40 +0000 (17:01 +0100)] 
packagegroup: Disable packages not available on mipsel

These are not available on mipsel yet so disable them

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-core-sdk: Disable sanitizers for mipsel
Zubair Lutfullah Kakakhel [Fri, 2 Sep 2016 16:01:39 +0000 (17:01 +0100)] 
packagegroup-core-sdk: Disable sanitizers for mipsel

These are not available on mipsel yet, so disable them.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.1: backport virtio HW_RANDOM_VIRTIO config
Bruce Ashfield [Thu, 1 Sep 2016 14:10:58 +0000 (10:10 -0400)] 
linux-yocto/4.1: backport virtio HW_RANDOM_VIRTIO config

We enabled HW_RANDOM_VIRTIO for the 4.4+ kernels, but it is also needed
for 4.1 to ensure that VMs have sufficient entropy. Without this entropy
networking on qemuppc starves and triggers intermittent errors.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/parselogs: Add qemuarm64 warning from 4.8 kernel to whitelist
Richard Purdie [Thu, 1 Sep 2016 16:50:41 +0000 (17:50 +0100)] 
oeqa/parselogs: Add qemuarm64 warning from 4.8 kernel to whitelist

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/parselogs/qemuarm: Whitelist amba and jitter for 4.8+ kernels
Bruce Ashfield [Wed, 31 Aug 2016 14:54:11 +0000 (10:54 -0400)] 
oeqa/parselogs/qemuarm: Whitelist amba and jitter for 4.8+ kernels

With the update to the 4.8 kernel the versatile platform (and hence
qemuarm) has switched to a device tree boot.

We are using an ummodified mainline kernel versatilepb device tree,
which includes definitions of multiple amba devices. These devices
are not present in the qemu system emulation, hence throw warnings
during boot.

These warnings are not unique to oe-core, and rather than carry kernel
patches to the device tree (for now), we whitelist the known warnings
so qa testing will pass. We also can't turn amba off completely, since
it is providing valid devices (like the serial port) and AMBA is
force selected by other kconfig values.

We also have a jitterentropy warning that shows up on some hosts.
This warning is harmless, and like amba we can't turn it off in a
fragment since it is force selected by crypto (and we'd rather not
turn all crypto off). So we add it to the whitelist while investigations
continue into what is needed in the host to support this fully.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocryptodev: Add backported patches for 4.6+ kernels
Richard Purdie [Wed, 31 Aug 2016 13:00:22 +0000 (14:00 +0100)] 
cryptodev: Add backported patches for 4.6+ kernels

This allows 4.6 onward kernels to build, backported from upstream
master.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.x: configuration updates
Bruce Ashfield [Tue, 30 Aug 2016 16:49:07 +0000 (12:49 -0400)] 
linux-yocto/4.x: configuration updates

Integrating a series to expliclity set the quark build to 32 bits
and avoid 64 bit x86 defaults.

We also have a series of commits that fix configuration warnings on
x86 platforms:

 intel-quark.cfg: Explicitly disable CONFIG_64BIT
 common-pc-drivers.cfg: Remove I2O configs
 features: Fix dependencies and =m vs =y discrepancies for corei7
 intel-core2-32.cfg: Explicitly disable CONFIG_64BIT
 features: Add 6lowpan feature and add it where necessary

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: do_kernel_configme: Fix silent sysroot poisoning error
Ioan-Adrian Ratiu [Tue, 30 Aug 2016 16:49:06 +0000 (12:49 -0400)] 
kernel-yocto: do_kernel_configme: Fix silent sysroot poisoning error

do_kernel_configme calls merge_config.sh (installed in the sysroot by
the kern-tools-native recipe) which may invoke the compiler to complete
the configuration process.

Depending on the build (and dependencies), this may error due to sysroot poisoning [1].

The errors are similar to:

  make[1]: Entering directory '4.1+gitAUTOINC+a7e53ecc27-r0/linux-x64-standard-build' HOSTCC  scripts/basic/fixdep
  work-shared/x64/kernel-source/scripts/basic/fixdep.c:106:23: fatal error: sys/types.h: No such file or directory
  compilation terminated.
  make[2]: *** [work-shared/x64/kernel-source/scripts/basic/Makefile:22: scripts/basic/x86_64-nilrt-linux-fixdep] Error 1

Adding $TOOLCHAIN_OPTIONS to $CFLAGS before calling merge_configs.sh
fixes the error because $TOOLCHAIN_OPTIONS defines the sysroot and make
uses it to correctly compile & fill all missing kernel config options.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2014-October/098253.html

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: test for empty artifacts
Bruce Ashfield [Tue, 30 Aug 2016 16:49:05 +0000 (12:49 -0400)] 
kernel-yocto: test for empty artifacts

With the updated kernel tools, we generate a list of sccs, patches,
configs and BSP definitions as part of the meta data generation.

It is valid if there aren't any of these artifacts found (i.e. you
are just building a branch and a default config), but invoking the
tools with no inputs isn't a good idea.

To avoid this issue, we generate a string based on the artifacts
and skip calling the tools if there's nothing to do.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.8: add qemuarm device tree specification
Bruce Ashfield [Tue, 30 Aug 2016 16:49:04 +0000 (12:49 -0400)] 
linux-yocto/4.8: add qemuarm device tree specification

4.7+ requires a device tree for the arm versatile family of platforms.
We add the definition to our 4.8 linux-yocto recipes so we can continue
to boot!

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-libc-headers: Refresh musl patches against newer kernel headers version
Richard Purdie [Wed, 31 Aug 2016 07:30:35 +0000 (08:30 +0100)] 
linux-libc-headers: Refresh musl patches against newer kernel headers version

The musl patches need to be updated against the latest kernel verison
in order to apply. No functionality changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibc-headers: update to v4.8
Bruce Ashfield [Tue, 30 Aug 2016 16:49:03 +0000 (12:49 -0400)] 
libc-headers: update to v4.8

Updating the libc-headers to use the 4.8 kernel as the default.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto-dev: bump to v4.8+
Bruce Ashfield [Tue, 30 Aug 2016 16:49:02 +0000 (12:49 -0400)] 
linux-yocto-dev: bump to v4.8+

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperf: adapt to Makefile.config
Bruce Ashfield [Tue, 30 Aug 2016 16:49:00 +0000 (12:49 -0400)] 
perf: adapt to Makefile.config

commit 4842576cd857 [perf tools: Move config/Makefile into Makefile.config]
relocated the configuration Makefile of perf. As such, we need to adapt
our fixup routines to work with the Makefile no matter where it is.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: introduce v4.8 recipes
Bruce Ashfield [Tue, 30 Aug 2016 16:48:59 +0000 (12:48 -0400)] 
linux-yocto: introduce v4.8 recipes

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotoaster: fire TaskArtifacts event
Ed Bartosh [Thu, 1 Sep 2016 08:56:03 +0000 (11:56 +0300)] 
toaster: fire TaskArtifacts event

Fire TaskArtifact MetaData event for deployment tasks when task
either completed or skipped. Event contains full task id
(recipe+task) and list of deployment artifacts from sstate
manifest.

This should allow Toaster to always get notified about deployment
artifacts produced by the build.

[YOCTO #9869]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildtools-tarball/uninative-tarball: Fix for working with populate_sdk under sstate...
Richard Purdie [Fri, 2 Sep 2016 22:47:54 +0000 (23:47 +0100)] 
buildtools-tarball/uninative-tarball: Fix for working with populate_sdk under sstate control

Firstly, these recipes are not target (MACHINE) specific so they should
by SDK_ARCH based, not PACKAGE_ARCH.

Also fix use of SDK_DEPLOY -> SDKDEPOLYDIR after other recent changes.

Together these fixes avoid various build failures and ensure the tarballs
only get built once rather than multiple times.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: Put populate_sdk_ext under sstate control
Richard Purdie [Fri, 2 Sep 2016 10:22:41 +0000 (11:22 +0100)] 
populate_sdk_ext: Put populate_sdk_ext under sstate control

Adding populate_sdk task to SSTATE_TASKS should make sstate machinery
to generate manifest for deployed ext sdk artifacts and do final deployment
to SDK_DEPLOY.

This is done in a similar way to do_populate_sdk in a previous patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_base: Put populate_sdk under sstate control
Ed Bartosh [Thu, 1 Sep 2016 08:56:02 +0000 (11:56 +0300)] 
populate_sdk_base: Put populate_sdk under sstate control

Adding populate_sdk task to SSTATE_TASKS should make sstate machinery
to generate manifest for deployed sdk artifacts and do final deployment
to SDK_DEPLOY.

Set stamp-extra-info flag for do_populate_sdk task. This flag is used
in the name of sstate manifest. Setting it to predetermined value for
populate_sdk task should help to get correct manifest filenames when
processing runQueueTask events.

The do_populate_sdk function is also executed by do_populate_sdk_ext
so in order to avoid conflicts with the sstate postfuncs, split
the main code into a separate function.

We also need to set SDKDEPLOYDIR as do_populate_sdk_ext expects
it in order not to break ESDK generation.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Avoid duplicate README file errors for sdk under sstate control
Richard Purdie [Fri, 2 Sep 2016 10:22:19 +0000 (11:22 +0100)] 
sstate: Avoid duplicate README file errors for sdk under sstate control

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage.bbclass: Put image_complete under sstate control
Ed Bartosh [Thu, 1 Sep 2016 08:56:01 +0000 (11:56 +0300)] 
image.bbclass: Put image_complete under sstate control

Adding image_complete task should make sstate machinery
to generate manifest for deployed images and do final
deployment to DEPLOY_DIR_IMAGE.

Made sure IMGDEPLOYDIR doesn't contain images from past deployments
to prevent them to be included into sstate manifests.

Set stamp-extra-info flag for do_image_complete task. This flag
is used in the name of sstate manifest. Setting it to predetermined
value for image_complete should help to get correct manifest
filenames when processing runQueueTask events.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_base: Deploy images to SDKDEPLOYDIR
Richard Purdie [Thu, 1 Sep 2016 08:56:00 +0000 (11:56 +0300)] 
populate_sdk_base: Deploy images to SDKDEPLOYDIR

Changed deployment directory from DEPLOY_DIR_IMAGE to
SDKDEPLOYDIR to make sstate machinery to do final deployment and
generate manifest.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage: Deploy images to IMGDEPLOYDIR
Ed Bartosh [Thu, 1 Sep 2016 08:56:00 +0000 (11:56 +0300)] 
image: Deploy images to IMGDEPLOYDIR

Changed deployment directory from DEPLOY_DIR_IMAGE to
IMGDEPLOYDIR to make sstate machinery to do final deployment and
generate manifest.

Renamed variable deploy_dir to deploy_dir_image in selftest code
to avoid confusion with DEPLOYDIR variable.

Updated the code of rootfs.py:Rootfs class to use IMGDEPLOYDIR variable
as it's now used as a new deployment destination.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage/populate_sdk_base: Add *DEPLOYDIR variables
Ed Bartosh [Wed, 31 Aug 2016 11:02:50 +0000 (14:02 +0300)] 
image/populate_sdk_base: Add *DEPLOYDIR variables

This is a preparation for changing deployment directory for image
and populate_sdk targets.

Introduced new variables, IMGDEPLOYDIR and SDKDEPLOYDIR. Set it to current
image/sdk deployment locations.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoarch-mips.inc: Disable QEMU usermode usage when building with n32 ABI
Alexander Kanavin [Thu, 1 Sep 2016 17:50:54 +0000 (20:50 +0300)] 
arch-mips.inc: Disable QEMU usermode usage when building with n32 ABI

QEMU usermode doesn't support n32 binaries, erroring with "Invalid
ELF image for this architecture".

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobusybox: fix "sed n (flushes pattern space, terminates early)" testcase failure
Dengke Du [Thu, 1 Sep 2016 09:42:10 +0000 (05:42 -0400)] 
busybox: fix "sed n (flushes pattern space, terminates early)" testcase failure

It is a busybox upstream known bug. When the busybox sed sub-command 'n'
hit the files EOF, it print an extra character that have been printed, but
the GNU sed would not print it.

In busybox source code ../editors/sed.c
------------------------------------------------------------------------
    case 'n':
        if (!G.be_quiet)
                sed_puts(pattern_space, last_gets_char);
            if (next_line) {
                    free(pattern_space);
                    pattern_space = next_line;
                    last_gets_char = next_gets_char;
                    next_line = get_next_line(&next_gets_char, &last_puts_char, last_gets_char);
                    substituted = 0;
                    linenum++;
                    break;
            }
            /* fall through */

    /* Quit.  End of script, end of input. */
    case 'q':
        /* Exit the outer while loop */
            free(next_line);
            next_line = NULL;
            goto discard_commands;
------------------------------------------------------------------------
when read at the end of the file, the 'next_line' is null, it would go
"case 'q'" and goto discard_commands, the discard_commands would print
the old pattern space which have been printed.

So in order to comply with GNU sed, in case 'n', when the next_line is null
I add "else" at the end of the second "if": "goto again;" and send it to
the busybox upstream, the busybox maintainer adopt it and make a little
changes to the patch, we can see it at:

His reply:

http://lists.busybox.net/pipermail/busybox/2016-September/084613.html

The new patch on busybox master branch:

https://git.busybox.net/busybox/commit/?id=76d72376e0244a5cafd4880cdc623e37d86a75e4

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel.bbclass: include signing keys when copying files required for module builds
Mattias Waldo [Thu, 1 Sep 2016 14:36:25 +0000 (16:36 +0200)] 
kernel.bbclass: include signing keys when copying files required for module builds

The absence of signing_key.* in $kerneldir made signing of
out-of-tree kernel modules fail (silently). Add copying of these
files during the shared_workdir task.

Signed-off-by: Mattias Waldo <mattias.waldo@saabgroup.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest Adds eSDK test cases to devtool verification.
Francisco Pedraza [Wed, 24 Aug 2016 20:55:23 +0000 (15:55 -0500)] 
oeqa/selftest Adds eSDK test cases to devtool verification.

The covered functions are, install libraries headers and image generation
binary feeds.

Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>