]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agotzdata: update to 2015g
Armin Kuster [Fri, 2 Oct 2015 14:26:49 +0000 (07:26 -0700)]
tzdata: update to 2015g

Resend: typo in version in subject.

Changes affecting future time stamps

Turkey's 2015 fall-back transition is scheduled for Nov. 8, not Oct. 25.
(Thanks to Fatih.)

Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time.
(Thanks to Alexander Krivenyshev.)

Fiji's 2016 fall-back transition is scheduled for January 17, not 24.
(Thanks to Ken Rylander.)

Fort Nelson, British Columbia will not fall back on 2015-11-01. It has
effectively been on MST (-0700) since it advanced its clocks on 2015-03-08.
New zone America/Fort_Nelson.  (Thanks to Matt Johnson.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotzcode: update to 2015g
Armin Kuster [Fri, 2 Oct 2015 14:24:52 +0000 (07:24 -0700)]
tzcode: update to 2015g

Changes affecting code

localtime no longer mishandles America/Anchorage after 2037.
(Thanks to Bradley White for reporting the bug.)

On hosts with signed 32-bit time_t, localtime no longer mishandles
Pacific/Fiji after 2038-01-16 14:00 UTC.

The localtime module allows the variables 'timezone', 'daylight',
and 'altzone' to be in common storage shared with other modules,
and declares them in case the system <time.h> does not.
(Problems reported by Kees Dekker.)

On platforms with tm_zone, strftime.c now assumes it is not NULL.
This simplifies the code and is consistent with zdump.c.
(Problem reported by Christos Zoulas.)

Changes affecting documentation
The tzfile man page now documents that transition times denote the
starts (not the ends) of the corresponding time periods.
(Ambiguity reported by Bill Seymour.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: fix change in path structure if --extract-to path exists
Paul Eggleton [Fri, 2 Oct 2015 13:05:08 +0000 (14:05 +0100)]
recipetool: create: fix change in path structure if --extract-to path exists

If the directory specified by --extract-to exists, because we were using
shutil.move() to move the temporary extracted directory to the specified
path, a subdirectory was being created under that directory instead of
moving the contents, which was a different result than if the directory
didn't previously exist. We could try to always move the contents but
that's complicated when any symlinks are involved; the simplest thing is
just to remove the directory (which should be empty anyway) before
moving the temporary directory across in its place.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: update-recipe: avoid updating patches that have not changed
Paul Eggleton [Fri, 2 Oct 2015 13:05:07 +0000 (14:05 +0100)]
devtool: update-recipe: avoid updating patches that have not changed

Use "git cherry" against the original tag that we made when we extracted
the source in order to find the revisions that are definitely new. This
allows you to modify a commit in the middle of the series and then run
devtool update-recipe and not have the subsequent patches unnecessarily
modified.

Fixes [YOCTO #8388].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: wic: fix LocalSetup
Ed Bartosh [Fri, 2 Oct 2015 13:03:17 +0000 (16:03 +0300)]
oe-selftest: wic: fix LocalSetup

Appended required features to build config every time
LocalSetup is run to ensure that core-image-minimal is not
rebuilt due to configuration changes.

This should fix test22_mkgummidisk and test23_mkefidisk testcases as
they depend on specific features set in LocalSetup.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Thu, 1 Oct 2015 16:55:07 +0000 (17:55 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runexported: Replaced optionparser with argparse.
Lucian Musat [Tue, 29 Sep 2015 14:47:42 +0000 (17:47 +0300)]
oeqa/runexported: Replaced optionparser with argparse.

Also added the default json file name as default for
the first positional argument.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: remove glib-2.0 build dependency
Ross Burton [Thu, 1 Oct 2015 16:30:27 +0000 (17:30 +0100)]
systemd: remove glib-2.0 build dependency

This dependency isn't required now that systemd doesn't include gudev, so remove
it.

[ YOCTO #8398 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowebkitgtk: Add some PACKAGECONFIG options.
Carlos Alberto Lopez Perez [Thu, 1 Oct 2015 13:49:50 +0000 (15:49 +0200)]
webkitgtk: Add some PACKAGECONFIG options.

 * Also default to enable X11/Wayland support or WebGL according
   to enabled DISTRO_FEATURES.

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agofontcache: allow to pass extra parameters and environment to fc-cache
Martin Jansa [Thu, 10 Sep 2015 14:31:26 +0000 (16:31 +0200)]
fontcache: allow to pass extra parameters and environment to fc-cache

* this can be useful for passing extra parameters, pass
  -v by default to see what's going on in do_rootfs
* we need to use this for extra parameter we implemented
  in fontconfig:
  --ignore-mtime always use cache file regardless of font directory mtime
  because the checksum of fontcache generated in do_rootfs
  doesn't match with /usr/share/fonts directory as seen on
  target device causing fontconfig to re-create the cache
  when fontconfig is used for first time or worse create
  new cache in every user's home directory when /usr/
  filesystem is read only and cache cannot be updated.

  Running FC_DEBUG=16 fc-cache -v on such device shows:
  FcCacheTimeValid dir "/usr/share/fonts" cache checksum 1441207803 dir checksum 1441206149
* my guess is that the checksum is different, because pseudo
  (which is unloaded when running qemuwrapper) or because some
  influence of running the rootfs under qemu.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowebkitgtk: Use ON/OFF for cmake switches.
Carlos Alberto Lopez Perez [Thu, 1 Oct 2015 13:49:49 +0000 (15:49 +0200)]
webkitgtk: Use ON/OFF for cmake switches.

  * This is a cosmetic patch.

  * Using ON/OFF instead of True/False is exactly the same for cmake
    (is case insensitive).

  * But WebKitGTK+ preffers (and uses) the first option. So when you
    check which values were enabled for the build (at log.do_configure)
    you will see that every option that was not modified will print either
    OFF or ON, meanwhile the options modified by this recipe will print
    True or False. For example:

         [...]
         --  ENABLE_THREADED_COMPOSITOR                OFF
         --  ENABLE_PLUGIN_PROCESS_GTK2 .............. ON
         --  ENABLE_MINIBROWSER                        True
         [...]

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: Added IO commands to dumps
Mariano Lopez [Tue, 29 Sep 2015 09:05:56 +0000 (09:05 +0000)]
testimage: Added IO commands to dumps

This change just add two more commands to
the host dumps to get more information
related to the IO.

[YOCTO #8412]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodistro-alias.inc: Updated for jethro 2.0 release
Beth Flanagan [Thu, 1 Oct 2015 15:27:36 +0000 (16:27 +0100)]
distro-alias.inc: Updated for jethro 2.0 release

Updates for distro_alias.inc. This should be pulled for jethro and
master branches.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Thu, 1 Oct 2015 14:28:01 +0000 (15:28 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Thu, 1 Oct 2015 14:17:57 +0000 (15:17 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to jethro head revision
Richard Purdie [Thu, 1 Oct 2015 14:11:36 +0000 (15:11 +0100)]
build-appliance-image: Update to jethro head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "oeqa/runtime: Added one runtime testcase in connman."
Cristian Iorga [Thu, 1 Oct 2015 13:42:09 +0000 (16:42 +0300)]
Revert "oeqa/runtime: Added one runtime testcase in connman."

connman daemon forks during normal usage,
so this test is no longer valid and generates
sometimes false positives.

This reverts commit 7d01c595c96eb3d67b90caf71050c4e9345257de.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: Drop BROKEN usage
Richard Purdie [Thu, 1 Oct 2015 13:21:49 +0000 (14:21 +0100)]
qemu: Drop BROKEN usage

BROKEN support was removed from bitbake back in 2013. These lines just
increase parsing time, remove them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosmart:cache.py: getPackages() matches name + arch
Robert Yang [Wed, 30 Sep 2015 08:19:55 +0000 (01:19 -0700)]
smart:cache.py: getPackages() matches name + arch

It only matched name ony in the past, for example:
smart install busybox (matched)
but:
smart install busybox@core2_64 (didn't match)

The installation is very slow when no match since it would seach all the
packages in the repo, and what we use mostly in oe-core is the second
case, so the installation is very slow when install COMPLEMENTARY
packages such as the task do_populate_sdk.

This patch makes it match both.

* Speed up
  MACHINE = "qemux86-64"
  - When multilib enabled:
    $ bitbake core-image-sato -cpopulate_sdk
    time: 6m5s -> 2m34s (Reduce 57% )

    $ bitbake core-image-minimal -cpopulate_sdk
    time: 2m1s -> 1m26s (Reduce 28% )

    $ bitbake core-image-sato-sdk
    time: 10m15s -> 7m12s (Reduce 29% )

  - When multilib NOT enabled:
    $ bitbake core-image-sato -cpopulate_sdk
    time: 4m25s -> 2m28s (Reduce 44% )

[YOCTO #8389]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: modify: use correct local files directory name
Markus Lehtonen [Thu, 1 Oct 2015 10:03:36 +0000 (13:03 +0300)]
devtool: modify: use correct local files directory name

The name of the directory for local source files under srctree is
'oe-local-files', not 'local-files'. Fixes a bug that slipped through
in b7ab82485e4514e07ab8a76e554da27ddc92e6c0.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxuser-account: Take over xuser specific D-Bus policy
Jussi Kukkonen [Thu, 1 Oct 2015 08:04:36 +0000 (11:04 +0300)]
xuser-account: Take over xuser specific D-Bus policy

Move connmans xuser-related D-Bus policy to a separate file that
xuser-account installs: This way connman does not need to depend on
xuser-account. Add policies for bluez and ofono in the same file.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobluez5: Use upstream D-Bus policy
Jussi Kukkonen [Thu, 1 Oct 2015 08:04:35 +0000 (11:04 +0300)]
bluez5: Use upstream D-Bus policy

The Bluez D-Bus policy is much too open and affects not just bluez but
all system services: Use upstream policy configuration instead.

This change has a chance of affecting other D-Bus services: the bug
that is fixed here may have hidden problems in other policies.

[YOCTO #8414]

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoptest: run-ptest not required to run do_install_ptest
Ian Ray [Wed, 30 Sep 2015 10:03:38 +0000 (13:03 +0300)]
ptest: run-ptest not required to run do_install_ptest

Modify do_install_ptest_base to run do_install_ptest and install the
Makefile irrespective of the presence of ${WORKDIR}/run-ptest.  This
change allows "ptest-aware" packages to install run-ptest as part of
the make machinery.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodistrodata: Take account proxies on distrodata tasks
Leonardo Sandoval [Wed, 2 Sep 2015 08:59:43 +0000 (08:59 +0000)]
distrodata: Take account proxies on distrodata tasks

Proxies defined in the enviroment where not taken into account
on the distrodata tasks. This commit implied passing the datastore
into the distro_check library and context manager for the
urllib.urlopen function.

One way to run distrodata tasks is using 'universe' as target and the
'all' distrodata task:

      $ bitbake universe -c distrodataall
      $ bitbake universe -c distro_checkall
      $ bitbake universe -c checklicenseall

Logs are located under TMPDIR/log

[YOCTO #7567]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: update-recipe: enable var history tracking
Markus Lehtonen [Wed, 30 Sep 2015 13:51:53 +0000 (16:51 +0300)]
devtool: update-recipe: enable var history tracking

Enable variable history tracking so that the variables are updated in
the correct file - i.e. in the file they are already defined.

[YOCTO #7715]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/wic: Use SetupLocal instead of Setup
Richard Purdie [Wed, 30 Sep 2015 22:31:44 +0000 (23:31 +0100)]
oeqa/selftest/wic: Use SetupLocal instead of Setup

If we replace the code Setup method, we don't get the cleanup it performs
and this just resulted in failures on the autobuilder due to a stale
config fragment. Setup will call SetupLocal so this should be a safe
and easy fix to resolve the auobuilder failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel.bbclass: fix the bug of checking the existing sections in do_strip()
Kevin Hao [Wed, 30 Sep 2015 02:29:33 +0000 (10:29 +0800)]
kernel.bbclass: fix the bug of checking the existing sections in do_strip()

Ross reported the following waring when building edgerouter BSP:
    WARNING: Section not found: .comment

The reason is that the testing of the existing sections in do_strip()
returned the wrong value. Please see the following code in do_strip():
                for str in ${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}; do {
                        if [ "$headers" != *"$str"* ]; then
                                bbwarn "Section not found: $str";
                        fi

                        "$CROSS_COMPILE"strip -s -R $str ${KERNEL_OUTPUT}
                }; done

The "*" doesn't have special meaning in the if string test, so it will
return true even the $str is a substring of $headers. Fix this issue
by replacing it with "! (echo "$headers" | grep -q "^$str$")".

Reported-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto_{3.14,3.19,4.1}: qemuarm enable virtio drivers
Aníbal Limón [Tue, 29 Sep 2015 22:51:22 +0000 (17:51 -0500)]
linux-yocto_{3.14,3.19,4.1}: qemuarm enable virtio drivers

We are experimenting segfault in qemu arm SCSI driver because
it's broken [1][2] so enable virtio drivers to use as default.

[YOCTO #8060]

[1] https://lists.gnu.org/archive/html/qemu-devel/2007-03/msg00093.html
[2] https://lists.nongnu.org/archive/html/qemu-devel/2010-07/msg01473.html

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu-internal: qemuarm enable usage of virtio devices
Aníbal Limón [Tue, 29 Sep 2015 22:51:23 +0000 (17:51 -0500)]
runqemu-internal: qemuarm enable usage of virtio devices

We are experiencing occasional segfaults in scsi sym53c8xx driver
on qemuarm boot. There are some old discussions into the mailing
lists [1] about the scsi problem and seems to be isn't fixed.

We use virtio blk/net devices into qemuarm64 also are supported
into qemuarm so change to use it because virtio devices are the best
choice.

[YOCTO #8060]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8060#c10

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognome-doc-utils: xslt - don't install Makefiles
Wenzong Fan [Wed, 30 Sep 2015 07:59:46 +0000 (03:59 -0400)]
gnome-doc-utils: xslt - don't install Makefiles

All the xml files under xslt will be installed by default, the
buildtime stuffs that Makefile, Makefile.in, Makefile.am are not
needed for target.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoapr-utils: cleanup buildpaths for target stuffs
Wenzong Fan [Wed, 30 Sep 2015 07:59:33 +0000 (03:59 -0400)]
apr-utils: cleanup buildpaths for target stuffs

* cleanup buildpaths from apu-1-config:
  - remove ${STAGING_DIR_HOST} from CC, CPP ...
  - set APU_SOURCE_DIR, APU_BUILD_DIR as empty

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoapr: cleanup buildpaths from target stuffs
Wenzong Fan [Wed, 30 Sep 2015 07:59:23 +0000 (03:59 -0400)]
apr: cleanup buildpaths from target stuffs

* cleanup buildpaths from apr_rules.mk and apr-1-config:
  - remove ${STAGING_DIR_HOST} from CC, CPP ...
  - set APR_SOURCE_DIR, APR_BUILD_DIR as empty

* install ${HOST_SYS}-libtool to sysroot only, it's required for
  building apache2 but not suitable for target.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocurl: cleanup buildpaths from curl-config
Wenzong Fan [Wed, 30 Sep 2015 08:08:59 +0000 (04:08 -0400)]
curl: cleanup buildpaths from curl-config

curl-config will be installed to target, cleanup buildpaths in it:

* remove ${STAGING_DIR_HOST} from CC, CFLAGS ...

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodropbear: fix key generation when systemd is in use and rootfs is readonly
Alexander Kanavin [Wed, 30 Sep 2015 12:53:18 +0000 (15:53 +0300)]
dropbear: fix key generation when systemd is in use and rootfs is readonly

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: tweak the key location for dropbear when rootfs is readonly
Alexander Kanavin [Wed, 30 Sep 2015 12:53:17 +0000 (15:53 +0300)]
image.bbclass: tweak the key location for dropbear when rootfs is readonly

In the same way it's done for openssh.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssh: fix sshd key generation when systemd is in use and rootfs is readonly
Alexander Kanavin [Wed, 30 Sep 2015 12:53:16 +0000 (15:53 +0300)]
openssh: fix sshd key generation when systemd is in use and rootfs is readonly

[YOCTO #8365]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage.bbclass: when building a readonly rootfs, tweak ssh settings regardless of...
Alexander Kanavin [Wed, 30 Sep 2015 12:53:15 +0000 (15:53 +0300)]
image.bbclass: when building a readonly rootfs, tweak ssh settings regardless of init system in use

Previously it was done only if sysvinit was in DISTRO_FEATURES.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolttng-tools: Drop KERNELDIR reference
Richard Purdie [Wed, 30 Sep 2015 13:53:20 +0000 (14:53 +0100)]
lttng-tools: Drop KERNELDIR reference

The source makes no reference to KERNELDIR any more and this make the recipe
machine specific. Simply drop the unused reference.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa-ide-support: No need to mark as nostamp anymore
Richard Purdie [Wed, 30 Sep 2015 13:57:20 +0000 (14:57 +0100)]
meta-ide-support: No need to mark as nostamp anymore

With the modern checksum infrastructure, this is no longer needed
(much in the same way images no longer need this).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoadt-installer: No need to mark as nostamp
Richard Purdie [Wed, 30 Sep 2015 13:56:49 +0000 (14:56 +0100)]
adt-installer: No need to mark as nostamp

With the modern checksum infrastructure, this is no longer needed
(much in the same way images no longer need this).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodistutils3: Avoid MACHINE specific checksums
Richard Purdie [Wed, 30 Sep 2015 13:54:35 +0000 (14:54 +0100)]
distutils3: Avoid MACHINE specific checksums

The MACHINE variable is used to handle sysroot paths within one of the
patches to python3-native. In this context, it is relocation safe and
the resulting packages should not have MACHINE specific checksums,
therefore excluding MACHINE in this context is safe.

This whole setup is ugly and ideally we should come up with a better
way of handling this but at least allow a stop gap solution for now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer-omx: Improve variable expansion of ${S}
Richard Purdie [Wed, 30 Sep 2015 13:53:51 +0000 (14:53 +0100)]
gstreamer-omx: Improve variable expansion of ${S}

The way ${S} is expanded into CFLAGS means the recipe is marked as depending
on the path within which its built. We can avoid this by avoiding the expansion
which then allows reuse of the recipe from sstate.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: Exclude sstate-outputdirs flag from checksums
Richard Purdie [Wed, 30 Sep 2015 13:52:49 +0000 (14:52 +0100)]
bitbake.conf: Exclude sstate-outputdirs flag from checksums

This was making deploy tasks MACHINE specific since they place output
into DEPLOY_DIR_IMAGE which contains MACHINE. On the plus side, this
was accidentally ensuring the output was placed for each machine,
on the downside it was triggering a rebuild every time for the different
checksum.

There is a better way to handle this which avoids the rebuild, see
the following tweak to do_deploy to mark it as MACHINE specific
in a different way.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodeploy: Mark deploy tasks as MACHINE specific
Richard Purdie [Wed, 30 Sep 2015 13:52:20 +0000 (14:52 +0100)]
deploy: Mark deploy tasks as MACHINE specific

This adds the markup to inform bitbake to rerun the deploy task per MACHINE.
This makes sense since DEPLOY_DIR_IMAGE contains MACHINE. Doing it this
way means the same artefact will be reused from sstate rather than rebuilt.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolayer.conf: Add SIGGEN exclusion for oprofile kernel dependency
Richard Purdie [Wed, 30 Sep 2015 13:51:53 +0000 (14:51 +0100)]
layer.conf: Add SIGGEN exclusion for oprofile kernel dependency

The oprofile kernel dependency is a simple RRECOMMENDS, it therefore
doesn't have any interface constraints and doesn't need to rebuild
every time the kernel changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolayer.conf: Improve siggen exclusion to handle virtual/libc
Richard Purdie [Wed, 30 Sep 2015 13:51:25 +0000 (14:51 +0100)]
layer.conf: Improve siggen exclusion to handle virtual/libc

Now the system supports virtual/xxx in SIGGEN_ variables, convert
this one to use virtual/libc instead of the hardcoded expansion which
is error prone.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomultilib_global: Add handling of SIGGEN variables for multilib
Richard Purdie [Wed, 30 Sep 2015 13:50:42 +0000 (14:50 +0100)]
multilib_global: Add handling of SIGGEN variables for multilib

multilib task signatures turned out to have issues since
SIGGEN_EXCLUDERECIPES_ABISAFE and SIGGEN_EXCLUDE_SAFE_RECIPE_DEP
did not have multilib mappings. This adds those mappings in which
in turn improves multilib task checksums to match the standard
non-mulitlib versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/sstate: Add tasks_resolved handler for virtual/xxx mappings
Richard Purdie [Wed, 30 Sep 2015 13:50:00 +0000 (14:50 +0100)]
lib/oe/sstate: Add tasks_resolved handler for virtual/xxx mappings

In SIGGEN_EXCLUDERECIPES_ABISAFE and SIGGEN_EXCLUDE_SAFE_RECIPE_DEP
we really need to be able to use virtual/xxx namespaces but this
currently doesn't work.

To make this work, we need to translate them into the resolved
providers. After such a hook was added to bitbake, we can add
this translation here.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/sstatetests: Add test that MACHINE doesn't change target sigs
Richard Purdie [Wed, 30 Sep 2015 13:49:23 +0000 (14:49 +0100)]
oeqa/selftest/sstatetests: Add test that MACHINE doesn't change target sigs

When we change between two machines with the same tune, we shouldn't see
rebuilds of binaries. This adds a test for this using the qemux86copy
machine. We also extend the test to cover multilibs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa-selftest: Add qemux86copy machine
Richard Purdie [Wed, 30 Sep 2015 13:47:13 +0000 (14:47 +0100)]
meta-selftest: Add qemux86copy machine

I know Martin finds something like this useful for testing sstate signatures,
this adds one to meta-selftest so we can use it from oe-selftest in the sstate
tests there too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/sstatetests: Add check for same sigs for SDKMACHINE
Richard Purdie [Wed, 30 Sep 2015 13:46:28 +0000 (14:46 +0100)]
oeqa/selftest/sstatetests: Add check for same sigs for SDKMACHINE

Extend one of the sstate tests to also ensure that changing SDKMACHINE doesn't
change the target task checksums.

Also fix a typo and improve debugging by turning the diff filtering off
in all cases (if the test fails, we want to full list).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomultilib.conf: Ensure MACHINE doesn't change target sigs
Richard Purdie [Wed, 30 Sep 2015 13:44:43 +0000 (14:44 +0100)]
multilib.conf: Ensure MACHINE doesn't change target sigs

Sysroot paths (which happen to contain MACHINE) should not cause the signatures
to change every time MACHINE changes so exclude this from them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-multilib-config: Ensure SDK_ARCH doesn't change target sigs
Richard Purdie [Wed, 30 Sep 2015 13:43:37 +0000 (14:43 +0100)]
gcc-multilib-config: Ensure SDK_ARCH doesn't change target sigs

Changing SDKMACHINE (which changes SDK_ARCH) shouldn't cause
target task signatures to change. Exclude the dependency
on SDK_ARCH for this reason. It only affects nativesdk builds
and those already account for SDK_ARCH in the build WORKDIR paths.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/package_manager: Handle empty package list in opkg case
Richard Purdie [Wed, 30 Sep 2015 13:42:07 +0000 (14:42 +0100)]
lib/oe/package_manager: Handle empty package list in opkg case

If you build buildtools-tarball with opkg as the package manager, it
passes in an empty target packages list and fails.

This allows the code to cope with an empty package list (in sync
with the rpm backend).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/decorators: Append the testname without the full path
Leonardo Sandoval [Tue, 29 Sep 2015 06:27:07 +0000 (06:27 +0000)]
oeqa/utils/decorators: Append the testname without the full path

When getting the failures/errors/skipped lists, include the
unit test without the full path.

This issue was found on this scenario

    | test_1_logrotate_setup (oeqa.runtime.logrotate.LogrotateTest) ... FAIL
    | test_2_logrotate (oeqa.runtime.logrotate.LogrotateTest) ... ok

Where test_1_logrotate failed and test_2_logrotate should not have
run because

    @skipUnlessPassed("test_1_logrotate_setup")
    def test_2_logrotate(self):

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokern-tools: fix multi-layer patch application
Bruce Ashfield [Tue, 29 Sep 2015 14:31:35 +0000 (10:31 -0400)]
kern-tools: fix multi-layer patch application

Updating the kern-tools SRCREV to import the following fix:

    kgit-meta: resume after last applied patch

    When the auto-resume (resume point detection) was removed from the
    processing of a meta-series, it ignored the fact that a single patch
    series may in fact be processed a number of times.

    Two layers patching a kernel will generate two different runs on the
    same branch, which always start at patch one. This will obviously
    break with duplicate patches.

    To avoid this, we simply track the last patch applied, and
    explicitly
    tell the patch scripts where to start. This gets us resume
    functionality, without the overhead of resume point detection.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: braswell bug fixes
Bruce Ashfield [Tue, 29 Sep 2015 14:31:34 +0000 (10:31 -0400)]
linux-yocto/4.1: braswell bug fixes

Updating the 4.1 SRCREVs to integrate the following DRM backports:

  a8abc111a96d drm/i915: Only wait for required lanes in vlv_wait_port_ready()
  81354180432b Revert "drm/i915: Hack to tie both common lanes together on chv"
  d660fc117731 drm/i915: Work around DISPLAY_PHY_CONTROL register corruption on CHV
  0e797e9cb717 drm/i915: Implement chv display PHY lane stagger setup

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.1: update to 4.1.8 -stable
Bruce Ashfield [Tue, 29 Sep 2015 14:31:33 +0000 (10:31 -0400)]
linux-yocto/4.1: update to 4.1.8 -stable

There are some important fixes and CVEs in 4.1.8, so we update the
SRCREVs to integrate the -stable changes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto-rt/4.1: integrate axxia BSP
Bruce Ashfield [Tue, 29 Sep 2015 14:31:32 +0000 (10:31 -0400)]
linux-yocto-rt/4.1: integrate axxia BSP

As part of the axxia preempt-rt integration, the preempt-rt
branch now becomes standard/preempt-rt/base, to allow proper
branch inheritance as: standard/preempt-rt/axxia/base.

No functional changes happen to the base -rt, just the default
KBRANCH changes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa: fix build with gettext 0.16.1
Robert Yang [Thu, 17 Sep 2015 07:46:27 +0000 (00:46 -0700)]
meta: fix build with gettext 0.16.1

The gettext 0.16.1 doesn't install any m4 files to sysroot, please see
the following commit:

  commit 9e10db5bdfe77c0ef2aff2f1cf89958b62c294a1
  Author: Christopher Larson <kergoth@gmail.com>
  Date:   Mon Mar 17 18:10:54 2014 +0000

      gettext-0.16.1: kill target m4 macros from sysroot

This is aim for using gettext-native's macros(gettext-native-0.19.4),
but when we set:
  PREFERRED_VERSION_gettext = "0.16.1"
And build the recipes like pcmanfm, we would get errors when
do_configure:

configure:5164: error: possibly undefined macro: AM_NLS

This is because autotools_copy_aclocals doesn't copy the native macros
for target unless they're direct dependencies.

Add gettext-native to DEPENDS will fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agohostap-utils: Use C99 stddefs in defining local typedefs
Khem Raj [Mon, 31 Aug 2015 06:15:34 +0000 (06:15 +0000)]
hostap-utils: Use C99 stddefs in defining local typedefs

The code is creating more abstract types which is nice however it should
be using standard defines from stdint.h and not random defines to base
its own type system

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto-custom: Update for newer kernel
Saul Wold [Mon, 28 Sep 2015 17:12:57 +0000 (10:12 -0700)]
linux-yocto-custom: Update for newer kernel

Update the NAME version tweak example patch for the
newer kernel. This moves the example to the 4.2 stable
kernel and appends -custom to the VERSION string.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooetest: Change logic of a failed test
Mariano Lopez [Mon, 28 Sep 2015 11:53:18 +0000 (11:53 +0000)]
oetest: Change logic of a failed test

Currently the logic to check if a test failed was
to check for an exception in the thread, but some
decorators used in the syslog runtime test would
generate and handle exceptions; this will mess
with the current check logic and will dump the
host and the target as if the test failed.

This patch changes the check logic to verify if
the test that just happend is in the failure test
list and dump the host and target accordingly.

[YOCTO #8406]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocwautomacros: cleanup buildpath in autogen.sh
Jackie Huang [Tue, 22 Sep 2015 09:16:13 +0000 (17:16 +0800)]
cwautomacros: cleanup buildpath in autogen.sh

CWAUTOMACROSPREFIX is ${D}${prefix} which is used as the prefix
of install dir and used to replace the path placeholder in script
autogen.sh, the former is correct but not for the later, we can
fix the Makefile to use two variables for this, but I think a sed
replacement would be fine since the package has not been in
development for a long time.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/runexported: Fix a problem with ssh_target_log existing in folder.
Lucian Musat [Mon, 28 Sep 2015 14:25:56 +0000 (17:25 +0300)]
oeqa/runexported: Fix a problem with ssh_target_log existing in folder.

When copying the exported tests to a remote machine ssh_target_log can
be transformed from softlink to file which will throw an error when
trying to run again.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemurunner: Sanitize output from qemu and qemu pid
Mariano Lopez [Mon, 28 Sep 2015 12:49:47 +0000 (12:49 +0000)]
qemurunner: Sanitize output from qemu and qemu pid

Currently the output from qemu could contain control
or Unicode characters; having such characters in the
log will cause an internal server error when sending
the report to error reporting web. Control characters
can be found in the command line used to run quemu too.

This change sanitize the output from qemu and the
command line used to run qemu, this way the logs doesn't
contain control or Unicode characters and this will solve
the issue of error reporting web and generate better
logs.

The only Unicode character found in the qemu output
is the copyright symbol, it really doesn't interfer
removing Unicode characters with debugging.

[YOCTO #8225]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/testimage: Add ability to run single test from suite.
Lucian Musat [Mon, 28 Sep 2015 14:52:24 +0000 (17:52 +0300)]
oeqa/testimage: Add ability to run single test from suite.

Just like we have in oe-selftest, you can add
<filename>.<Class>.<testname> in TEST_SUITES in order to
run just that test

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipes-extended: remove duplicate recipe and .wks
Ed Bartosh [Mon, 28 Sep 2015 16:01:34 +0000 (19:01 +0300)]
recipes-extended: remove duplicate recipe and .wks

Removed wic-image-minimal.bb and wic-image-minimal.wks as they're
also present in meta-selftest/recipes-test/images/

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu-internal: Make sure two serial ports always exist
Randy Witt [Mon, 28 Sep 2015 22:38:23 +0000 (15:38 -0700)]
runqemu-internal: Make sure two serial ports always exist

Since inittab for qemu images now always tries to start getty on a
second serial device, make sure that device exists.

Otherwise the following message will be spammed:
    INIT: Id "S1" respawning too fast: disabled for 5 minutes

[YOCTO #8374]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross-canadian.bbclass: big-endian ARM is also gnueabi.
Peter Seebach [Mon, 28 Sep 2015 20:48:07 +0000 (15:48 -0500)]
cross-canadian.bbclass: big-endian ARM is also gnueabi.

If building for a BE8 ARM target, arch is "armeb" rather than
"arm", but ABI should still be "gnueabi". Otherwise gcc won't
build.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssl: fix ptest failures
Maxin B. John [Tue, 29 Sep 2015 02:54:15 +0000 (05:54 +0300)]
openssl: fix ptest failures

Remove dependencies for test targets. Otherwise, during ptest
execution, "make" tries to rebuild those executables and fails
there.

[YOCTO #8059]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-async: inherit setuptools
Robert Yang [Mon, 28 Sep 2015 08:18:42 +0000 (01:18 -0700)]
python-async: inherit setuptools

Fixed when bitbake nativesdk-python-async:
DEBUG: Executing shell function do_compile
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    from setuptools import setup
ImportError: No module named setuptools

Replace distutils with setuptools will fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoutil-linux: add runuser PAM config files to fix runuser error
Chen Qi [Tue, 29 Sep 2015 09:59:02 +0000 (17:59 +0800)]
util-linux: add runuser PAM config files to fix runuser error

The runuser command fails with below error message, add proper PAM
config files to fix the problem. The config files are borrowed from
CentOS 7.0 release.

runuser: Failure setting user credentials

Signed-off-by: Shan Hai <shan.hai@windriver.com>
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/decorators: Fixed a problem with decorator logs link.
Lucian Musat [Tue, 29 Sep 2015 11:52:57 +0000 (14:52 +0300)]
oeqa/decorators: Fixed a problem with decorator logs link.

When not doing actual tests with testimage, like for example
exporting tests, the link to the log file was still created
although the actual log file was not existent. Fixed it by
moving the link creation part into the run() method.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/wic: Added testcase decorator to all testcases + fixed minor typos.
Daniel Istrate [Tue, 29 Sep 2015 13:04:04 +0000 (16:04 +0300)]
oeqa/selftest/wic: Added testcase decorator to all testcases + fixed minor typos.

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-extract: Correct environment-setup script names for multilib
Richard Purdie [Tue, 29 Sep 2015 12:43:45 +0000 (13:43 +0100)]
toolchain-shar-extract: Correct environment-setup script names for multilib

Currently a lib32-core-image-* SDK prints an incorrect environment-setup-*
file name when installing the SDK. Instead of printing the wrong thing, list
the environment setup files present in the SDK.

As it happens this fixes the message printed with buildtools-tarball too
which someone reported to me about the same time as I finished this patch!

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolsb: add lsbinitscripts and util-linux rdepends
Alex Franco [Fri, 25 Sep 2015 21:03:05 +0000 (16:03 -0500)]
lsb: add lsbinitscripts and util-linux rdepends

Building a base image such as core-image-minimal with lsb and then
attempting to source /lib/lsb/init-functions, then using the start
_daemon function (to start a daemon, such as syslogd) fails, since
/lib/lsb/init-functions use functions (incl. "daemon()") from file
/etc/init.d/functions.lsbinitscripts, which is provided by package
lsbinitscripts.

Running daemon() then calls /usr/bin/mountpoint, which is provided
by util-linux.

So, lsbinitscripts has been added as an RDEPENDency in lsb, and in
turn util-linux has been added to lsbinitscripts.

[YOCTO #7732]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: add PACKAGECONFIG for qrencode
Jonathan Liu [Mon, 28 Sep 2015 03:10:22 +0000 (13:10 +1000)]
systemd: add PACKAGECONFIG for qrencode

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg: create opkg.lock in /run instead of /var/run
Jonathan Liu [Fri, 25 Sep 2015 23:35:21 +0000 (09:35 +1000)]
opkg: create opkg.lock in /run instead of /var/run

This avoids a "Could not unlink" warning when extracting a /var/run
symbolic link pointing to /run from the base-files package as it is
unable to unlink the /var/run directory when it contains opkg.lock.

This also fixes an issue where /var/run is created as a directory
instead of a symbolic link to /run.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Acked-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-relocate.sh: make it faster
Robert Yang [Mon, 28 Sep 2015 06:58:37 +0000 (23:58 -0700)]
toolchain-shar-relocate.sh: make it faster

Make the extrating faster by:
* Merge the two heavy "for .. find" loops into one
* Move the commands out of for loop rather than inside, this can reduce the
  forking amount.

As a result, when install:
* buildtools-nativesdk-standalone: 14s -> 7s (50% saved)
* core-image-minimal-core2-64-toolchain: 56s -> 47s (17% saved)

[YOCTO #8404]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_base: Simplify postprocess commands
Richard Purdie [Mon, 28 Sep 2015 10:56:15 +0000 (11:56 +0100)]
populate_sdk_base: Simplify postprocess commands

When looking at and trying to build a slightly customised SDK, I
realised the code could be simplified and written in a way which was
more customisable.

This patch moves various function calls into the SDK_POSTPROCESS_COMMAND
which was intended for this kind of use.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/meta: Add DISTRO_FEATURES check for gtk+/gtk3+
Richard Purdie [Mon, 28 Sep 2015 10:53:35 +0000 (11:53 +0100)]
classes/meta: Add DISTRO_FEATURES check for gtk+/gtk3+

If you currently do a DISTRO_FEATURES_remove = "x11" with OE-Core, you
see failures due to dependency problems. The work in resolving this was
partially completed a while back. This adds in the markup mainly for
gtk/gtk3+ recipes and means "bitbake world" will work successfully.

Rather than code the gtk/gtk+ specific distro features into each recipe,
a shared variable is used.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: modify: make bitbake use local files from srctree
Markus Lehtonen [Tue, 21 Apr 2015 12:30:35 +0000 (15:30 +0300)]
devtool: modify: make bitbake use local files from srctree

This change makes it possible to have local files (non-remote SRC_URI
files, i.e. files that are located in the "recipe space") under the
srctree even if S!=WORKDIR. The files must be placed under the
'local-files' subdirectory.

Complements the previous patch that imports local files into srctree.

[YOCTO #7602]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: better support for local source files
Markus Lehtonen [Thu, 23 Apr 2015 14:11:42 +0000 (17:11 +0300)]
devtool: better support for local source files

* extract: Copy all local source files (i.e.  non-compressed/non-arcived
  SRC_URI files that have file:// URI prefix) - excluding patches - to
  the srctree repository. The files will be placed in a subdirectory
  called 'oe-local-files'. The oe-local-files directory is not committed
  to the Git repository, but, marked to be ignored by a .gitignore file.
  The developer can manually add and commit the files to Git if the
  changes to them need to be tracked.

  Before this patch, local source files (were copied (and committed) to
  the srctree repository only in some special cases (basically when
  S=WORKDIR) when doing devtool-extract. For most of the packages local
  files were not copied at all.

* update-recipe: This patch causes the local files to be 'synced' from
  the srctree (i.e. from the 'oe-local-files' subdirectory) to the
  layer.  Being 'synced' means that in addition to copying modified
  files over the original sources, devtool will also handle removing and
  adding local source files and updating the recipe accordingly.  We
  don't want to create patches against the local source files but rather
  update them directly.  Thus, 'oe-local-file' directory is ignored in
  patch generation when doing update-recipe, even if committed to Git.
  This functionality is only enabled if the 'oe-local-files' directory
  is present in srctree.

[YOCTO #7602]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: file mover function that creates target dir
Markus Lehtonen [Thu, 24 Sep 2015 10:03:34 +0000 (13:03 +0300)]
devtool: file mover function that creates target dir

Helper function for replacing a pattern like:
  target_dir = os.path.dirname(target)
  bb.utils.mkdirhier(target_dir)
  shutil.move(source, target)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: update_recipe: refactor patch generation
Markus Lehtonen [Wed, 23 Sep 2015 12:58:07 +0000 (15:58 +0300)]
devtool: update_recipe: refactor patch generation

Implement new function that handles patch file generation. The new
function also does the discovery of new, updated and deleted patches.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: update-recipe: add new patches in correct order
Markus Lehtonen [Wed, 23 Sep 2015 12:04:29 +0000 (15:04 +0300)]
devtool: update-recipe: add new patches in correct order

When adding multiple new patches append them to SRC_URI in correct order
so that they apply correctly.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agooe-selftest: devtool: add method for checking repo status
Markus Lehtonen [Wed, 23 Sep 2015 10:45:07 +0000 (13:45 +0300)]
oe-selftest: devtool: add method for checking repo status

New method for checking the status of the working tree of a repository.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agooe-selftest: devtool: add method for checking srctree repo
Markus Lehtonen [Fri, 29 May 2015 13:35:41 +0000 (16:35 +0300)]
oe-selftest: devtool: add method for checking srctree repo

Removes some code duplication.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agooe-selftest: devtool: add setup() method
Markus Lehtonen [Fri, 29 May 2015 13:03:41 +0000 (16:03 +0300)]
oe-selftest: devtool: add setup() method

In order to remove some code duplication.  The method currently only
does checking of workspace dir.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agooe.patch.GitApplyTree: add paths argument to extractPatches
Markus Lehtonen [Thu, 23 Apr 2015 12:41:04 +0000 (15:41 +0300)]
oe.patch.GitApplyTree: add paths argument to extractPatches

Makes it possible to define which paths are included in the patches.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agorecipeutils: implement get_recipe_local_files()
Markus Lehtonen [Thu, 23 Apr 2015 12:38:52 +0000 (15:38 +0300)]
recipeutils: implement get_recipe_local_files()

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agomultilib: Add TARGET_VENDOR to saved variables list
Richard Purdie [Fri, 31 Jul 2015 07:18:48 +0000 (07:18 +0000)]
multilib: Add TARGET_VENDOR to saved variables list

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/sdk/gcc: Fix makefile test
Richard Purdie [Sun, 27 Sep 2015 10:07:38 +0000 (11:07 +0100)]
oeqa/sdk/gcc: Fix makefile test

The makefile test was hardcoding a test for gcc. In the SDK context, we
need to use $(CC) to use the cross compiler.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdk-pixbuf: Only apply native cleaning in normal task, not setscene
Richard Purdie [Sat, 26 Sep 2015 17:12:17 +0000 (18:12 +0100)]
gdk-pixbuf: Only apply native cleaning in normal task, not setscene

The previous fix works well for normal tasks since the ordering is always
correct and gdk-pixbuf-native comes first. Setscene ordering is reversed
so we can't rely on this there. Remove the fix in that case since
it breaks more than it solves.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu-export-rootfs: update location of unfsd binary
Maxin B. John [Thu, 24 Sep 2015 10:48:12 +0000 (13:48 +0300)]
runqemu-export-rootfs: update location of unfsd binary

Update the location of unfsd binary from "/usr/sbin" to "/usr/bin" in
runqemu-export-rootfs

[YOCTO #8315]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorunqemu: don't complain about conflicting machines if they are equal
Pascal Bach [Thu, 24 Sep 2015 16:10:05 +0000 (18:10 +0200)]
runqemu: don't complain about conflicting machines if they are equal

When the MACHINE variable was set as an environment variable, via
"export MACHINE=qemuarm" and runqemu was executed as "runqemu qemuarm"

The confusing error message appears:
Error: conflicting MACHINE types [qemuarm] and [qemuarm]

This checks if the two values are equal, in that case there is no problem
and execution can continue.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/testimage: Remove absolute path to oeqa from json
Lucian Musat [Thu, 24 Sep 2015 09:14:44 +0000 (12:14 +0300)]
oeqa/testimage: Remove absolute path to oeqa from json

In the json file the whole datastore is serialized which contains
absolute path to the oeqa folder. This breaks the functionality
when trying to run the tests from other machines.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoiproute2: fix the configure process
Chen Qi [Thu, 24 Sep 2015 09:27:31 +0000 (17:27 +0800)]
iproute2: fix the configure process

Previously, the iproute2's configure script is actually run in the
do_compile stage. There's a Makefile rule 'all: Config' which makes
the configure process run to generate the Config file.

However, this makes it hard to fix the dependency problems. We need
to generate the Config file in the do_configure stage.

Add do_configure_append to separate the configure process from the
compile process.

Besides, explicitly disable ATM support for iproute2, otherwise we'll
sometimes meet errors like below when building.

  ld: cannot find -latm
  collect2: error: ld returned 1 exit status
  Makefile:154: recipe for target 'q_atm.so' failed
  make[1]: *** [q_atm.so] Error 1

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-multilib-config: Expand ccargs variable
Yuanjie Huang [Thu, 24 Sep 2015 06:17:16 +0000 (14:17 +0800)]
gcc-multilib-config: Expand ccargs variable

The ccargs obtained from get_tune_parameters may not be fully expanded,
so that the gcc_multilib_setup function can be confused, and generates
invalid MULTILIB_OPTIONS in GCC Makefile fragment, which will break the
multilib feature of target gcc.

To address problems above, this patch modifies gcc_multilib_setup
function to expand ccargs before use.

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>