]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agoselftest: test wic efi image in qemu
Ed Bartosh [Mon, 6 Mar 2017 15:10:11 +0000 (17:10 +0200)]
selftest: test wic efi image in qemu

Added test_qemu_efi test case to wic test suite.

It uses ovmf qemu extention to test mkefidisk image.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotargetcontrol: add image_fstype argument to commands.runqemu
Ed Bartosh [Mon, 6 Mar 2017 15:10:10 +0000 (17:10 +0200)]
targetcontrol: add image_fstype argument to commands.runqemu

qemu runner picks up first fsimage type from the hard-coded
list of supported types. This makes it impossible to test
particular image type unless it's not ext4(first type in
the hardcoded list of types).

Added image_fstypes argument to commands.runqemu and QemuTarget
__init__ to specify type of the image to run qemu with.

This will be used to pass wic image type to test efi wic images.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemurunner: add runqemuparams argument to commands.runqemu
Ed Bartosh [Mon, 6 Mar 2017 15:10:09 +0000 (17:10 +0200)]
qemurunner: add runqemuparams argument to commands.runqemu

Added possibility to pass additional runqemu parameters
down the stack of APIs:
 commands.runqemu -> QemuTarget.start -> QemuRunner.start

This will be used to pass ovmf parameter in testing of
efi wic images under qemu.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobase.bbclass: improve wording when skipping recipes with incompatible licenses
Andre McCurdy [Sat, 4 Mar 2017 05:11:12 +0000 (21:11 -0800)]
base.bbclass: improve wording when skipping recipes with incompatible licenses

The previous wording, e.g.

  ERROR: wget was skipped: incompatible with license GPLv3

isn't very clear and could be taken to imply that the recipe is
incompatible with its own license.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoapr: fix rss+perf+gold failure on do_compile_ptest_base
Andreas Müller [Sat, 4 Mar 2017 10:24:09 +0000 (11:24 +0100)]
apr: fix rss+perf+gold failure on do_compile_ptest_base

Was detected in Martin's world build

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomodule.bbclass: Add inherit of pkgconfig
Peter Kjellerstedt [Fri, 3 Mar 2017 21:38:58 +0000 (22:38 +0100)]
module.bbclass: Add inherit of pkgconfig

This is needed for the make_scripts task.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoparted: fix rss+perf+gold failure on do_compile_ptest_base
Andreas Müller [Fri, 3 Mar 2017 21:36:18 +0000 (22:36 +0100)]
parted: fix rss+perf+gold failure on do_compile_ptest_base

Was detected in Martin's world build

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomesa: Upgrade 17.0.0 -> 17.0.1
Jussi Kukkonen [Mon, 6 Mar 2017 10:08:14 +0000 (12:08 +0200)]
mesa: Upgrade 17.0.0 -> 17.0.1

This is a bug fix release and first non-development release in 17.0
branch. There are ~50 bug fix commits (plus a few release script
commits).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscreen: update to 4.5.1
Maxin B. John [Sat, 4 Mar 2017 11:52:52 +0000 (13:52 +0200)]
screen: update to 4.5.1

4.4.0 -> 4.5.1

Fixes logfile permissions problem (CVE-2017-5618)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuildhistory.bbclass: Only execute get_extra_sdkinfo when sdk is enabled
Aníbal Limón [Fri, 3 Mar 2017 23:01:07 +0000 (17:01 -0600)]
buildhistory.bbclass: Only execute get_extra_sdkinfo when sdk is enabled

If sdk ins't in BUILDHISTORY_FEATURES the get_extra_sdkinfo fails
because no information about sdk is generated in buildhistory repo.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-uninative: Update to the 1.5 release
Richard Purdie [Tue, 7 Mar 2017 21:41:33 +0000 (21:41 +0000)]
yocto-uninative: Update to the 1.5 release

This upgrades to a version of patchelf which works on newer distros
and doesn't inflate binaries in crazy ways.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa: start to ignore the largefile distro feature
Andre McCurdy [Tue, 7 Mar 2017 04:58:47 +0000 (20:58 -0800)]
meta: start to ignore the largefile distro feature

The largefile distro feature has been enabled by default in oe-core
for a long time and, more recently, also in poky-tiny. Building
without the largefile distro feature receives little or no testing.
Many packages now enable LFS without exposing a configure option, so
there should be very little expectation that disabling the distro
feature will result in a distro which globally disables LFS.

Respecting the distro feature adds a maintenance over-head and may be
the source of configurations oddities (e.g. dbus-native currently
builds with LFS disabled for no clear reason - fixed by this commit).

Ignore the largefile distro feature more widely, as a first step
towards deprecating and eventually removing it.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogpgme: Fix issue building for the target
Mark Hatle [Tue, 7 Mar 2017 18:54:33 +0000 (12:54 -0600)]
gpgme: Fix issue building for the target

gpgme failed when configuring since you can only configure for one python
system at a time (via the inherits).  So we need to have a PACKAGECONFIG
that defines which one [or neither] you want to use.

The prior pkgconfig patch introduced the usage of the variable PKG_CONFIG,
which is not defined anywhere.  Define this.

When building the python module, we can not call gpg-error-config, so we
need to find an alternative way of finding the information the setup.py.in
requires.  (In this case, it's easy to just use the environment
STAGING_INCDIR.)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocrosstap: Changes to support Recipe specific sysroot
Saul Wold [Tue, 7 Mar 2017 20:12:10 +0000 (12:12 -0800)]
crosstap: Changes to support Recipe specific sysroot

The crosstap script needed to be updated for recipe specific sysroot
changes including adding support for finding the systemtap binaries.

[YOCTO #10990]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemtap: Add patch to remove quotes
Saul Wold [Tue, 7 Mar 2017 20:12:09 +0000 (12:12 -0800)]
systemtap: Add patch to remove quotes

This fixes the -I include lines that are getting passed to the
kernel macros

[YOCTO #10990]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorecipes: Move out stale GPLv2 versions to a seperate layer uninative-1.5
Richard Purdie [Thu, 2 Mar 2017 12:04:08 +0000 (12:04 +0000)]
recipes: Move out stale GPLv2 versions to a seperate layer

These are recipes where the upstream has moved to GPLv3 and these old
versions are the last ones under the GPLv2 license.

There are several reasons for making this move. There is a different
quality of service with these recipes in that they don't get security
fixes and upstream no longer care about them, in fact they're actively
hostile against people using old versions. The recipes tend to need a
different kind of maintenance to work with changes in the wider ecosystem
and there needs to be isolation between changes made in the v3 versions
and those in the v2 versions.

There are probably better ways to handle a "non-GPLv3" system but right
now having these in OE-Core makes them look like a first class citizen
when I believe they have potential for a variety of undesireable issues.

Moving them into a separate layer makes their different needs clearer, it
also makes it clear how many of these there are. Some are probably not
needed (e.g. mc), I also wonder whether some are useful (e.g. gmp)
since most things that use them are GPLv3 only already. Someone could
now more clearly see how to streamline the list of recipes here.

I'm proposing we mmove to this separate layer for 2.3 with its future
maintinership and testing to be determined in 2.4 and beyond.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopatchelf: Fix issues with the 'hole' in binaries approach
Richard Purdie [Tue, 7 Mar 2017 13:47:03 +0000 (13:47 +0000)]
patchelf: Fix issues with the 'hole' in binaries approach

We're seeing two issues with patchelf, one where it inflates binaries to MBs in
size, the other where stripping the resulting binary fails:

$ strip fixincl
Not enough room for program headers, try linking with -N
[.note.ABI-tag]: Bad value

The patch header describes more about what the problem is and how the patch
fixes it.

[YOCTO #11123]
[YOCTO #11009]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils: Upgrade to 2.28 release
Khem Raj [Tue, 7 Mar 2017 08:20:09 +0000 (00:20 -0800)]
binutils: Upgrade to 2.28 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomusl: Update to tip
Khem Raj [Tue, 7 Mar 2017 08:20:08 +0000 (00:20 -0800)]
musl: Update to tip

Bring in some needed chnages for arm

Bobby Bingham (1):
      s390x: implement dlsym

Rich Felker (2):
      fix build regression in arm atomics asm with new binutils
      allow page size to vary on arm

Szabolcs Nagy (1):
      fix lsearch and lfind to pass key as first arg to the compar callback

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotzdata: update to 2017a
Armin Kuster [Wed, 1 Mar 2017 03:48:31 +0000 (19:48 -0800)]
tzdata: update to 2017a

 Briefly: Southern Chile moves from -04/-03 to -03, and Mongolia
  discontinues DST.

  Changes to future time stamps

    Mongolia no longer observes DST.  (Thanks to Ganbold Tsagaankhuu.)

    Chile's Region of Magallanes moves from -04/-03 to -03 year-round.
    Its clocks diverge from America/Santiago starting 2017-05-13 at
    23:00, hiving off a new zone America/Punta_Arenas.  Although the
    Chilean government says this change expires in May 2019, for now
    assume it's permanent.  (Thanks to Juan Correa and Deborah
    Goldsmith.)  This also affects Antarctica/Palmer.

  Changes to past time stamps

    Fix many entries for historical time stamps for Europe/Madrid
    before 1979, to agree with tables compiled by Pere Planesas of the
    National Astronomical Observatory of Spain.  As a side effect,
    this changes some time stamps for Africa/Ceuta before 1929, which
    are probably guesswork anyway.  (Thanks to Steve Allen and
    Pierpaolo Bernardi for the heads-ups, and to Michael Deckers for
    correcting the 1901 transition.)

    Ecuador observed DST from 1992-11-28 to 1993-02-05.
    (Thanks to Alois Treindl.)

    Asia/Atyrau and Asia/Oral were at +03 (not +04) before 1930-06-21.
    (Thanks to Stepan Golosunov.)

  Changes to past and future time zone abbreviations

    Switch to numeric time zone abbreviations for South America, as
    part of the ongoing project of removing invented abbreviations.
    This avoids the need to invent an abbreviation for the new Chilean
    new zone.  Similarly, switch from invented to numeric time zone
    abbreviations for Afghanistan, American Samoa, the Azores,
    Bangladesh, Bhutan, the British Indian Ocean Territory, Brunei,
    Cape Verde, Chatham Is, Christmas I, Cocos (Keeling) Is, Cook Is,
    Dubai, East Timor, Eucla, Fiji, French Polynesia, Greenland,
    Indochina, Iran, Iraq, Kiribati, Lord Howe, Macquarie, Malaysia,
    the Maldives, Marshall Is, Mauritius, Micronesia, Mongolia,
    Myanmar, Nauru, Nepal, New Caledonia, Niue, Norfolk I, Palau,
    Papua New Guinea, the Philippines, Pitcairn, Qatar, Réunion, St
    Pierre & Miquelon, Samoa, Saudi Arabia, Seychelles, Singapore,
    Solomon Is, Tokelau, Tuvalu, Wake, Vanuatu, Wallis & Futuna, and
    Xinjiang; for 20-minute daylight saving time in Ghana before 1943;
    for half-hour daylight saving time in Belize before 1944 and in
    the Dominican Republic before 1975; and for Canary Islands before
    1946, for Guinea-Bissau before 1975, for Iceland before 1969, for
    Indian Summer Time before 1942, for Indonesia before around 1964,
    for Kenya before 1960, for Liberia before 1973, for Madeira before
    1967, for Namibia before 1943, for the Netherlands in 1937-9, for
    Pakistan before 1971, for Western Sahara before 1977, and for
    Zaporozhye in 1880-1924.

    For Alaska time from 1900 through 1967, instead of "CAT" use the
    abbreviation "AST", the abbreviation commonly used at the time
    (Atlantic Standard Time had not been standardized yet).  Use "AWT"
    and "APT" instead of the invented abbreviations "CAWT" and "CAPT".

    Use "CST" and "CDT" instead of invented abbreviations for Macau
    before 1999 and Taiwan before 1938, and use "JST" instead of the
    invented abbreviation "JCST" for Japan and Korea before 1938.

  Change to database entry category

    Move the Pacific/Johnston link from 'australasia' to 'backward',
    since Johnston is now uninhabited.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotzcode-native: update to 2017a
Armin Kuster [Wed, 1 Mar 2017 03:48:30 +0000 (19:48 -0800)]
tzcode-native: update to 2017a

  Changes to code

    zic no longer mishandles some transitions in January 2038 when it
    attempts to work around Qt bug 53071.  This fixes a bug affecting
    Pacific/Tongatapu that was introduced in zic 2016e. localtime.c
    now contains a workaround, useful when loading a file generated by
    a buggy zic.  (Problem and localtime.c fix reported by Bradley
    White.)

    zdump -i now outputs non-hour numeric time zone abbreviations
    without a colon, e.g., "+0530" rather than "+05:30".  This agrees
    with zic %z and with common practice, and simplifies auditing of
    zdump output.

    zdump is now buildable again with -DUSE_LTZ=0.
    (Problem reported by Joseph Myers.)

    zdump.c now always includes private.h, to avoid code duplication
    with private.h.  (Problem reported by Kees Dekker.)

    localtime.c no longer mishandles early or late timestamps
    when TZ is set to a POSIX-style string that specifies DST.
    (Problem reported by Kees Dekker.)

    date and strftime now cause %z to generate "-0000" instead of
    "+0000" when the UT offset is zero and the time zone abbreviation
    begins with "-".

  Changes to documentation and commentary

    The 'Theory' file now better documents choice of historical time
    zone abbreviations.  (Problems reported by Michael Deckers.)

    tz-link.htm now covers leap smearing, which is popular in clouds.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agou-boot: Fix handling of CMD_LICENSE in u-boot-mkimage
Marek Vasut [Tue, 28 Feb 2017 19:41:10 +0000 (20:41 +0100)]
u-boot: Fix handling of CMD_LICENSE in u-boot-mkimage

Only ever change the CMD_LICENSE in the u-boot config if it is enabled
to prevent corruption of the config file. In case the CMD_LICENSE was
already disabled, the sed substitution inserted another "# " in front
of the CMD_LICENSE which triggered a restart of Kconfig oldconfig and
failed the build.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-libc-headers: Add inherit of pkgconfig
Peter Kjellerstedt [Tue, 28 Feb 2017 13:35:16 +0000 (14:35 +0100)]
linux-libc-headers: Add inherit of pkgconfig

pkg-config is used by the kernel build system when creating the
configuration tools.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-omx_1.2.0: remove recipe
Maxin B. John [Tue, 28 Feb 2017 09:41:14 +0000 (11:41 +0200)]
gstreamer1.0-omx_1.2.0: remove recipe

Removing this recipe since we have the latest gstreamer1.0-omx_1.10.4
in place.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd: check "ldconfig" distro feature when setting PACKAGECONFIG
Andre McCurdy [Fri, 27 Jan 2017 22:29:11 +0000 (14:29 -0800)]
systemd: check "ldconfig" distro feature when setting PACKAGECONFIG

Avoid trying to call ldconfig at run-time in distros which don't
provide ldconfig on the target.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoguile: fix a bashism
Ming Liu [Fri, 24 Feb 2017 11:57:31 +0000 (12:57 +0100)]
guile: fix a bashism

A following flaw was detected by verify-bashisms script:
......
meta/recipes-devtools/guile/guile_2.0.13.bb
possible bashism in guile_cross_config line 94 ($'...' should be "$(printf '...')"):

   echo '#!'`which ${BUILD_SYS}-guile`$' \\\n--no-auto-compile -e main -s\n!#\n(define %guile-build-info '\'\( \
       > ${B}/guile-config.cross
......

Fixed by removing $'...' from echo command, using a printf instead.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolttng-tools: update to 2.9.4
Nathan Lynch [Sun, 26 Feb 2017 04:29:45 +0000 (22:29 -0600)]
lttng-tools: update to 2.9.4

Drop upstreamed patch.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolttng-modules: update to 2.9.1
Nathan Lynch [Sun, 26 Feb 2017 04:29:44 +0000 (22:29 -0600)]
lttng-modules: update to 2.9.1

This includes a significant fix for kernel tracing on 32-bit systems;
kernel and user space events may be uncorrelated without it.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibgpg-error: Don't replace the syscfg header for mingw32
Nathan Rossi [Tue, 21 Feb 2017 13:17:28 +0000 (23:17 +1000)]
libgpg-error: Don't replace the syscfg header for mingw32

For mingw32 targets do not attempt to replace the
syscfg/lock-obj-pub.*.h as for mingw32 there are no arch specific
headers that are included in the libgpg-error source.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibgpg-error: correctly configure on mips64
Alexander Kanavin [Wed, 1 Mar 2017 11:07:22 +0000 (13:07 +0200)]
libgpg-error: correctly configure on mips64

This fixes the long-standing error:

../../libgpg-error-1.26/src/posix-lock.c:137: get_lock_object: Assertion `!"sizeof lock obj"' failed.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomesa: Upgrade 13.0.4 -> 17.0.0
Jussi Kukkonen [Tue, 28 Feb 2017 09:26:56 +0000 (11:26 +0200)]
mesa: Upgrade 13.0.4 -> 17.0.0

17.0.0 is considered a development release: 17.0.1 is expected to be
the first stable in this series. Typically the .1 release comes about
two weeks after .0.

* New feature release with lots of changes
* Versioning change (17 as in 2017, no longer relates to GL bumps)
* OpenGL 4.5 support on Haswell
* mesa now implements its own sha1 instead of having 5
  configurable sha-providers
* Remove libxvmcsoftpipe packaging, the library hasn't
  existed since 2013

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc-source: add comment explaining why a function is Python
Ross Burton [Thu, 2 Mar 2017 16:22:43 +0000 (16:22 +0000)]
gcc-source: add comment explaining why a function is Python

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuildhistory.bbclass: use tabs as separator in installed-package-sizes.txt
Mikko Rapeli [Wed, 1 Mar 2017 09:08:47 +0000 (11:08 +0200)]
buildhistory.bbclass: use tabs as separator in installed-package-sizes.txt

All other fields are separated by tabs except KiB and binary package
name. This helps users, *cough managers*, who import this file into
MS Excel to calculate file system usage summaries.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel.bbclass: Give sanity check function an opt-out variable
California Sullivan [Tue, 28 Feb 2017 01:02:43 +0000 (17:02 -0800)]
kernel.bbclass: Give sanity check function an opt-out variable

Having no opt-out method and adding the task to linux-yocto.inc was
causing issues. For example, linux-yocto-dev would often fail because
it uses AUTOREV with no way to dynamically change the PV.

Add a variable to turn off the sanity check, allowing an easy opt out,
and set the opt-out variable in linux-yocto-dev, fixing the issue with
AUTOREV.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage.bbclass: Add SHLIB detection support for mingw targets
Nathan Rossi [Tue, 21 Feb 2017 13:17:28 +0000 (23:17 +1000)]
package.bbclass: Add SHLIB detection support for mingw targets

Add support to detect dll files as shared objects as well as process
Windows .dll and .exe files to determine the runtime libraries
dependencies.

This implementation is sufficient to detect and map runtime library
dependencies between packages. And does not implement any version naming
conventions that might apply for .dll files (e.g. lib*-x.dll).

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoupdate-alternatives.bbclass: Disable for mingw32 targets
Nathan Rossi [Tue, 21 Feb 2017 13:17:28 +0000 (23:17 +1000)]
update-alternatives.bbclass: Disable for mingw32 targets

When building for mingw32 targets (e.g. nativesdk cross compiling for
windows), disable the dependency on update-alternatives as the Windows
platform does not support symlinks or package management.

This avoids the complex (partly non-buildable for mingw32) dependency
chain virtual/update-alternatives -> opkg-utils -> python -> ...

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoautotools.bbclass: delete the extra varflag set for autotools_copy_aclocals
Dengke Du [Thu, 2 Mar 2017 05:39:31 +0000 (00:39 -0500)]
autotools.bbclass: delete the extra varflag set for autotools_copy_aclocals

The autotools_copy_aclocals has been droped, so the varflag set for that should
be removed.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoptest.bbclass: use BPN in PTEST_PATH for multilib
Jackie Huang [Thu, 23 Feb 2017 08:08:30 +0000 (16:08 +0800)]
ptest.bbclass: use BPN in PTEST_PATH for multilib

Use BPN instead of PN in PTEST_PATH for multilib builds,
or we get two directories for a package in libdir which
doesn't make sense, e.g.

$ ls /usr/lib/*coreutils
/usr/lib/coreutils:
libstdbuf.so

/usr/lib/lib32-coreutils:
ptest

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agono-static-libs: add missing leading space when using "_append"
Robert P. J. Day [Tue, 28 Feb 2017 10:12:57 +0000 (05:12 -0500)]
no-static-libs: add missing leading space when using "_append"

The assigned value clearly needs a leading space to be consistent with
standard "_append" usage.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoarch-mips: Fix tune configuration for mipsisa64r6el-n32-nf
Zubair Lutfullah Kakakhel [Thu, 2 Mar 2017 13:36:14 +0000 (13:36 +0000)]
arch-mips: Fix tune configuration for mipsisa64r6el-n32-nf

Big endian flag marked in a little endian configuration by mistake.
Remove it.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature
Andre McCurdy [Fri, 27 Jan 2017 22:29:10 +0000 (14:29 -0800)]
bitbake.conf: replace USE_LDCONFIG with new "ldconfig" distro feature

USE_LDCONFIG could previously be set to 0 by distros which do not
require ldconfig or ld.so.conf on the target. Since more and more
recipes may need to respect that option, replace the ad-hoc variable
with a distro feature.

Distros which previously set:

  USE_LDCONFIG = "0"

Should now instead use:

  DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " ldconfig"

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoyocto-compat-layer.py: Add script to YP Compatible Layer validation
Aníbal Limón [Mon, 20 Feb 2017 21:12:49 +0000 (15:12 -0600)]
yocto-compat-layer.py: Add script to YP Compatible Layer validation

The yocto-compat-layer script serves as a tool to validate the alignament
of a layer with YP Compatible Layers Programme [1], is based on an RFC
sent to the ML to enable automatic testing of layers [2] that wants to
be YP Compatible.

The tool takes an layer (or set of layers) via command line option -l
and detects what kind of layer is distro, machine or software and then
executes a  set of tests against the layer in order to validate the
compatibility.

The tests currently implemented are:

common.test_readme: Test if a README file exists in the layer and isn't
    empty.
common.test_parse: Test for execute bitbake -p without errors.
common.test_show_environment: Test for execute bitbake -e without errors.
common.test_signatures: Test executed in BSP and DISTRO layers to review
    doesn't comes with recipes that changes the signatures.

bsp.test_bsp_defines_machines: Test if a BSP layers has machines
    configurations.
bsp.test_bsp_no_set_machine: Test the BSP layer to doesn't set
    machine at adding layer.

distro.test_distro_defines_distros: Test if a DISTRO layers has distro
    configurations.
distro.test_distro_no_set_distro: Test the DISTRO layer to doesn't set
    distro at adding layer.

Example of usage:

$ source oe-init-build-env
$ yocto-compat-layer.py LAYER_DIR

[YOCTO #10596]

[1] https://www.yoctoproject.org/webform/yocto-project-compatible-registration
[2] https://lists.yoctoproject.org/pipermail/yocto-ab/2016-October/001801.html

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: support xml report format
Markus Lehtonen [Thu, 23 Feb 2017 13:18:33 +0000 (15:18 +0200)]
build-perf-test-wrapper.sh: support xml report format

Add new command line option '-x' that enbles xml-formatted reports.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/runqemu: avoid overridden user input for bootparams
Dmitry Rozhkov [Tue, 21 Feb 2017 15:18:08 +0000 (17:18 +0200)]
scripts/runqemu: avoid overridden user input for bootparams

Currently runqemu hardcodes the "ip=" kernel boot parameter
when configuring QEMU to use tap or slirp networking. This makes
the guest system to have a network interface pre-configured
by kernel and causes systemd to fail renaming the interface
to whatever pleases it:

  Feb 21 10:10:20 intel-corei7-64 systemd-udevd[201]: Error changing
      net interface name 'eth0' to 'enp0s3': Device or resource busy,

Always append user input for kernel boot params after the ones
added by the script. This way user input has priority over runqemu's
default params.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/runqemu: Add always ttyS1 when no serial options are specified
Aníbal Limón [Thu, 16 Feb 2017 17:10:30 +0000 (11:10 -0600)]
scripts/runqemu: Add always ttyS1 when no serial options are specified

We always wants ttyS0 and ttyS1 in qemu machines (see SERIAL_CONSOLES),
if not serial or serialtcp options was specified only ttyS0 is created
and sysvinit shows an error trying to enable ttyS1:

     INIT: Id "S1" respawning too fast: disabled for 5 minutes

[YOCTO #10491]

(From OE-Core rev: 3a0efbbe6bb5a7f0fb3df0f6052b11e56788405f)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/lib/create_npm: handle Public Domain licenses
Anders Darander [Wed, 1 Mar 2017 17:20:01 +0000 (18:20 +0100)]
scripts/lib/create_npm: handle Public Domain licenses

Rewrite Public Domain as PD, as that's what the place holder in
meta/files/common_licenses is called.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/lib/create_npm: handle AND and OR in licenses
Anders Darander [Wed, 1 Mar 2017 17:20:00 +0000 (18:20 +0100)]
scripts/lib/create_npm: handle AND and OR in licenses

Handle npm packages with multiple licenses (AND and OR).
Prior to this, AND and OR were treated as licensed in their
own.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/lib/create_npm: rewrite see license in eula
Anders Darander [Wed, 1 Mar 2017 17:19:59 +0000 (18:19 +0100)]
scripts/lib/create_npm: rewrite see license in eula

Rewrite the 'SEE LICENSE IN EULA' to a single string (without
spaces), to avoid splitting the string later on.

(Otherwise, each word gets split, and assumed to be a license
on it's own.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/package.py: remove @ from package name
Anders Darander [Wed, 1 Mar 2017 17:19:57 +0000 (18:19 +0100)]
lib/oe/package.py: remove @ from package name

@ isn't allowed in package names. Angular2 packages often have
@ in their names.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocreate_npm.py: convert MIT/X11 to MIT
Anders Darander [Wed, 1 Mar 2017 17:19:56 +0000 (18:19 +0100)]
create_npm.py: convert MIT/X11 to MIT

Quite a few npm packages declare MIT/X11 as their license. This is equal to
a pure MIT license.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: add more targets to directdisk syslinux config
Ed Bartosh [Thu, 23 Feb 2017 14:22:04 +0000 (16:22 +0200)]
wic: add more targets to directdisk syslinux config

Added 3 new targets to directdisk-bootloader-config.cfg to
match hddimg syslinux config.

This is a preparation for dropping hddimg in favor of wic.

[YOCTO #11044]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: bootimg-pcbios: add support for syslinux vesamenu
Ed Bartosh [Thu, 23 Feb 2017 14:19:36 +0000 (16:19 +0200)]
wic: bootimg-pcbios: add support for syslinux vesamenu

Installed vesamenu.c32 and its dependencies to support
vesamenu ui in syslinux config.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError instead of calling logger.error
Ed Bartosh [Tue, 21 Feb 2017 15:12:35 +0000 (17:12 +0200)]
wic: raise WicError instead of calling logger.error

Replaced forgotten calls of logger.error with raising
WicError exception. Otherwise errors will be ignored.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: add WKS_FILE_DEPENDS variable
Ed Bartosh [Tue, 21 Feb 2017 15:09:10 +0000 (17:09 +0200)]
wic: add WKS_FILE_DEPENDS variable

This variable should be used to specify dependencies that
will be added to DEPENDS only if wic image build is 'active'
i.e. when 'wic' is in IMAGE_FSTYPES.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: exec_native_cmd: fix undefined variable error
Ed Bartosh [Tue, 21 Feb 2017 10:01:59 +0000 (12:01 +0200)]
wic: exec_native_cmd: fix undefined variable error

Defined variable 'out' to fix this exception:
UnboundLocalError: local variable 'out' referenced before assignment

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: exec_native_cmd: improve debug message
Ed Bartosh [Tue, 21 Feb 2017 09:54:20 +0000 (11:54 +0200)]
wic: exec_native_cmd: improve debug message

Added search paths to the debug message to make it
easier to see where the native command is searched.

[YOCTO #11017]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use image recipe sysroot as default
Ed Bartosh [Tue, 21 Feb 2017 09:46:29 +0000 (11:46 +0200)]
wic: use image recipe sysroot as default

Switched from using wic-tools recipe sysroot to using
image sysroot in wic script. This way is more logical
and consistent with the way wic uses other artifacts.

[YOCTO #11017]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use 2 sysroots to find native executable
Ed Bartosh [Tue, 21 Feb 2017 09:37:17 +0000 (11:37 +0200)]
wic: use 2 sysroots to find native executable

Currently there is no way to specify a dependency on native
tools for wic without modifying wic-tools recipe. Obvious
way to make it more flexible is to use image sysroot and
wic-tools together to find an executable.

Modified run_native_cmd to use image and wic-tools sysroots
to find native executable.

[YOCTO #11017]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: pluginbase: use global dictionary
Ed Bartosh [Thu, 16 Feb 2017 10:53:30 +0000 (12:53 +0200)]
wic: pluginbase: use global dictionary

Made PluginMeta to populate global PLUGINS dictionary that
is accessed by PluginMgr. This should make the code more
understandable as PluginMgr don't need to get data directly
from PlugnMeta attribute.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move PluginMgr class to pluginbase
Ed Bartosh [Wed, 15 Feb 2017 19:24:38 +0000 (21:24 +0200)]
wic: move PluginMgr class to pluginbase

As PluginMgr class contains only one method it's
better to move it to pluginbase to have all plugin
related APIs in one module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: plugin: cache results in get_plugins
Ed Bartosh [Wed, 15 Feb 2017 18:42:30 +0000 (20:42 +0200)]
wic: plugin: cache results in get_plugins

Store results of PluginMgr.get_plugins to avoid
loading plugins more than once.

This should speed up finding plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove PluginMgr.get_plugin_methods
Ed Bartosh [Wed, 15 Feb 2017 18:13:41 +0000 (20:13 +0200)]
wic: remove PluginMgr.get_plugin_methods

Call methods directly instead of getting them with
get_plugin_methods and then calling.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: throw exception if required API is not implemented
Ed Bartosh [Wed, 15 Feb 2017 17:50:45 +0000 (19:50 +0200)]
wic: throw exception if required API is not implemented

Throw WicError if do_create method of imager plugin is
not implemented.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: pluginbase: use python 3 metaclass syntax
Ed Bartosh [Wed, 15 Feb 2017 17:43:30 +0000 (19:43 +0200)]
wic: pluginbase: use python 3 metaclass syntax

Used more readable syntax to specify metaclass for
the base plugin classes.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: reimplement PluginMgr.get_plugins
Ed Bartosh [Wed, 15 Feb 2017 16:47:03 +0000 (18:47 +0200)]
wic: reimplement PluginMgr.get_plugins

Removed all private methods and complicated logic.
Put all code to get plugins into get_plugins method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: reimplement PluginMgr.get_plugin_methods
Ed Bartosh [Wed, 15 Feb 2017 12:58:22 +0000 (14:58 +0200)]
wic: reimplement PluginMgr.get_plugin_methods

Simplified the implementation of get_plugin_methods:
- get rid of looping over the dicrtionary, used access by key instead
- get rid of filling a dictionary that passed as a parameter

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove PluginMgr.get_source_plugins
Ed Bartosh [Wed, 15 Feb 2017 12:24:17 +0000 (14:24 +0200)]
wic: remove PluginMgr.get_source_plugins

Used get_plugins('source') instead of get_source_plugins to
unify and simplify API to get plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use PluginMgr directly
Ed Bartosh [Wed, 15 Feb 2017 12:16:38 +0000 (14:16 +0200)]
wic: use PluginMgr directly

Instead of making a singleton object of PluginMgr class
it's simpler to use PluginMgr class directly as any class
is a singleton.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move WicError to lib/wic/__init__.py
Ed Bartosh [Tue, 14 Feb 2017 22:07:14 +0000 (00:07 +0200)]
wic: move WicError to lib/wic/__init__.py

Removed unused exceptions from error.py
Moved definition of WicError to lib/wic/__init__.py

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError instead of ImageError and CreatorError
Ed Bartosh [Tue, 14 Feb 2017 21:47:06 +0000 (23:47 +0200)]
wic: raise WicError instead of ImageError and CreatorError

There is no need to raise special exceptions. Raising
WicError should be enough.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError in wic plugins
Ed Bartosh [Tue, 14 Feb 2017 21:07:35 +0000 (23:07 +0200)]
wic: raise WicError in wic plugins

Replaced sys.exit with raising WicError in wic plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError in core modules
Ed Bartosh [Tue, 14 Feb 2017 20:21:38 +0000 (22:21 +0200)]
wic: raise WicError in core modules

Replaced sys.exit with raising WicError in the core wic modules.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: raise WicError in main module
Ed Bartosh [Tue, 14 Feb 2017 20:00:48 +0000 (22:00 +0200)]
wic: raise WicError in main module

Replaced sys.exit with raising WicError in main module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move errors module
Ed Bartosh [Tue, 14 Feb 2017 19:31:05 +0000 (21:31 +0200)]
wic: move errors module

Moved from lib/wic/utils/ to lib/wic as this is a core module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove msger module
Ed Bartosh [Tue, 14 Feb 2017 18:44:59 +0000 (20:44 +0200)]
wic: remove msger module

Removed custom logger module msger as it's replaced
by wic logger.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use wic logger in wic source plugins
Ed Bartosh [Tue, 14 Feb 2017 18:13:46 +0000 (20:13 +0200)]
wic: use wic logger in wic source plugins

Replaced msger with wic logger in wic source plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use wic logger in imager direct plugin
Ed Bartosh [Tue, 14 Feb 2017 17:08:15 +0000 (19:08 +0200)]
wic: use wic logger in imager direct plugin

Replaced msger with wic logger in the direct plugin.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: use wic logger in core modules
Ed Bartosh [Tue, 14 Feb 2017 16:54:32 +0000 (18:54 +0200)]
wic: use wic logger in core modules

Replaced msger with wic logger in the core wic modules.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: setup logging in the main wic module
Ed Bartosh [Tue, 14 Feb 2017 16:48:54 +0000 (18:48 +0200)]
wic: setup logging in the main wic module

Set up wic logger using standerd logging module.
This is going to replace custom msger module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agocryptodev: update to handle 4.10 kernel API
Ross Burton [Fri, 3 Mar 2017 16:06:32 +0000 (16:06 +0000)]
cryptodev: update to handle 4.10 kernel API

8 years agogcc-runtime: Add libmpx supprt for x86
Richard Purdie [Fri, 24 Feb 2017 18:48:18 +0000 (10:48 -0800)]
gcc-runtime: Add libmpx supprt for x86

Enabling building the Intel Memory Protection Extension library for x86.

Leave this disabled in musl builds as it doesn't build there yet.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto-dev: add virtio fragment for virtio targets
Bruce Ashfield [Mon, 27 Feb 2017 03:10:04 +0000 (22:10 -0500)]
linux-yocto-dev: add virtio fragment for virtio targets

Other linux-yocto recipes have the virtio fragment added to qemu* targets.
If you plan on booting a kernel with qemu, we need these options .. or
things like the virtual disk won't be present.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibc-headers: introduce 4.10 and set as default
Bruce Ashfield [Mon, 27 Feb 2017 03:10:03 +0000 (22:10 -0500)]
libc-headers: introduce 4.10 and set as default

The 4.10 kernel has been released, so we can bump our libc-headers
to match.

We also drop the 4.9 headers, since we only want one variant in the
tree.

Tested against glibc and muslc core-image* variants.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto: introduce 4.10 recipes
Bruce Ashfield [Mon, 27 Feb 2017 03:10:02 +0000 (22:10 -0500)]
linux-yocto: introduce 4.10 recipes

The 4.10 kernel has been released, so we introduce the linux-yocto
variant.

This version supercedes the 4.4 and 4.8 versions in the tree, leaving us
with 4.1 (LTSI), 4.9 (LTS) and 4.10 (most recent) as the three active
versions.

Build tested against all qemu variants, core-image-kernel-dev + sato,
with musl and glibc as the C libraries.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestsdk: Fix lockfile patch
Richard Purdie [Fri, 3 Mar 2017 12:20:17 +0000 (12:20 +0000)]
testsdk: Fix lockfile patch

In the previous lock removal patch I mixed up the two tasks and broke sdk
testing. Fix this by removing locks for both sdk and extsdk.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_ext_sdk: Merge auto.conf into local.conf
Richard Purdie [Fri, 3 Mar 2017 11:13:00 +0000 (11:13 +0000)]
populate_ext_sdk: Merge auto.conf into local.conf

auto.conf is included before local.conf. Instead of keeping them separate, merge
them into the extsdk local.conf. As it happens we can do this quite neatly, more
neatly than the current code IMO and it makes the configuration easier for the end
user to understand too.

This means auto.conf is then available for the testsdk code to use for testing
purposes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_ext_sdk: Append to SSTATE_MIRRORS
Richard Purdie [Fri, 3 Mar 2017 11:12:09 +0000 (11:12 +0000)]
populate_ext_sdk: Append to SSTATE_MIRRORS

We need to appent to SSTATE_MIRRORS in case other areas of code are also
setting the variable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestsdk: Drop lockfile usage
Richard Purdie [Fri, 3 Mar 2017 10:58:49 +0000 (10:58 +0000)]
testsdk: Drop lockfile usage

We should be able to test sdks in parallel. As far as I can tell, this
restriction crept in for no good reason, based on locks that testimage used
for the non-qemu case.

Therefore remove the lock and allow sdks to test in parallel.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext/devtool: Ensure dependencies for test_extend_autotools_recipe_creation...
Richard Purdie [Fri, 3 Mar 2017 10:57:49 +0000 (10:57 +0000)]
oeqa/sdkext/devtool: Ensure dependencies for test_extend_autotools_recipe_creation are present

test_extend_autotools_recipe_creation needs libxml2 so ensure this is
installed/present as it may not be in the minimal eSDK case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity: Allow whitespace only mirror entries
Richard Purdie [Fri, 3 Mar 2017 00:12:49 +0000 (00:12 +0000)]
sanity: Allow whitespace only mirror entries

Forcing the use of "\n" in mirror variables is pointless, we can just require that
there are pairs of values. With the bitbake restriction relaxed, we can relax
the sanity check too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestsdk: Use auto.conf instead of local.conf to set SSTATE_MIRROR
Richard Purdie [Thu, 2 Mar 2017 15:24:45 +0000 (15:24 +0000)]
testsdk: Use auto.conf instead of local.conf to set SSTATE_MIRROR

The local.conf file can get overritten and changed by the SDK so (ab)use
auto.conf instead to ensure our configuration tweaks get applied.

Also ensure we append to any other configured SSTATE_MIRROR variable
that already exists.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa-estsdk-toolchain: use WORKDIR instead of D to hold locked-sigs
Ross Burton [Thu, 2 Mar 2017 14:16:05 +0000 (14:16 +0000)]
meta-estsdk-toolchain: use WORKDIR instead of D to hold locked-sigs

do_locked_sigs() uses ${D} to hold a file as input to the sstate staging code.
Generally this isn't a problem as it happens after packaging, but sometimes (if
the recipe is rebuild, perhaps) do_package() will see the file inside ${D} and
fail because there is an uninstalled file.

Solve this by using a directory under ${WORKDIR} so it can't be packaged.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocore-image-lsb-sdk: Lower IMAGE_OVERHEAD_FACTOR
Richard Purdie [Wed, 1 Mar 2017 23:07:15 +0000 (23:07 +0000)]
core-image-lsb-sdk: Lower IMAGE_OVERHEAD_FACTOR

We're on the margin of the 4GB size limit for certain image types with
this configuration. This is a temporary workaround to avoid total
failures whilst we figure out better ways to save space. On such a
large image, the standard 1.3 is large and 1.2 is reasonable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext: don't skip tests if there isn't a toolchain
Ross Burton [Wed, 1 Mar 2017 12:13:50 +0000 (12:13 +0000)]
oeqa/sdkext: don't skip tests if there isn't a toolchain

Skipping the tests if a toolchain wasn't installed out of the box (for example,
a minimal eSDK) doesn't make sense as the first thing the tests should do is
install a toolchain.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext/devtool: use finally instead of repeating cleanup
Ross Burton [Wed, 1 Mar 2017 12:21:34 +0000 (12:21 +0000)]
oeqa/sdkext/devtool: use finally instead of repeating cleanup

Use the finally: block to always to cleanup.

Now that the test harness in testsdk.bbclass has monkey-patched
CalledProcessException to display the output we don't need to do that in the
test case.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: add output to subprocess exceptions
Ross Burton [Wed, 1 Mar 2017 12:07:44 +0000 (12:07 +0000)]
oeqa: add output to subprocess exceptions

Out of the box subprocess.CalledProcessError.__str__() just displays the command
and exit code, which isn't very useful for debugging.

Add a function to oeqa.utils.subprocesstweak to monkey-patch __str__() so that
it can also display the value of stdout and stderr.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/esdk/devtool: clean setUpClass/tearDownClass
Ross Burton [Wed, 1 Mar 2017 12:17:27 +0000 (12:17 +0000)]
oeqa/esdk/devtool: clean setUpClass/tearDownClass

These methods are class not instance methods, so the argument should be cls not
self.

Also don't put variables into cls that we don't need there.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest: Drop http sstate sharing
Richard Purdie [Wed, 1 Mar 2017 15:16:44 +0000 (15:16 +0000)]
oeqa/selftest: Drop http sstate sharing

Using httpServer from python for sharing sstate is known to be buggy, it can't
cope with the number/type of requests coming from bitbake and quietly fails
to share files.

This causes intermittent build failures which are hard to debug. We can
use a file:// url for the sstate mirror instead, removing the need for
the http server.

The sdk-update test is simply dropped since the SDK is never published
to this location and hence it would never have any update. Its equiavalent
to pointing at an empty web server. There is a better eSDK update test in
testsdk so rather than improve this one, lets drop it and concentrate on
the one there.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_ext: Allow generation of meta-extsdk-toolchain even for minimal SDKs
Richard Purdie [Wed, 1 Mar 2017 14:47:50 +0000 (14:47 +0000)]
populate_sdk_ext: Allow generation of meta-extsdk-toolchain even for minimal SDKs

If you build a minimal eSDK currently, you don't build meta-extesdk-toolchain
even if you will have built most of its dependencies. This means when you try
and install a toolchain into the eSDK, it fails, breaking our automated testing
of the eSDK.

Therefore add the dependency unconditionally even when a minimal eSDK is being
built and allow the automated testing to work.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sdkext/context: Work around broken dependency checks to get sdk tests running
Richard Purdie [Wed, 1 Mar 2017 14:45:46 +0000 (14:45 +0000)]
oeqa/sdkext/context: Work around broken dependency checks to get sdk tests running

This is admitted a bit of a hack but it does allow a number of significant sdk
tests to run successfully and hence improves testing of eSDK which is good.

I'm therefore proposing we do this until we come up with a better solution
since the current lack of testing is worrying and would have caught other issues
had it been present.

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