]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agobuild-appliance-image: add /sbin to PATH
Juro Bystricky [Thu, 20 Oct 2016 16:54:23 +0000 (09:54 -0700)]
build-appliance-image: add /sbin to PATH

runqemu script fails with an error when executed in Build Appliance.

Typical use case:

$ bitbake core-image-minimal
$ runqemu qemux86

Observed error:

    runqemu - ERROR - In order for this script to dynamically infer paths
         ...snip...
         runqemu-ifup, runqemu-ifdown or ip not found

The error is caused by the fact that "ip" is located in /sbin, however /sbin is
not in user's ("builder") PATH. To fix this we add /sbin to PATH.
The simplest place to do this is in user's .bashrc.

[YOCTO#10434]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.8: update to v4.8.3
Bruce Ashfield [Fri, 21 Oct 2016 15:35:31 +0000 (11:35 -0400)]
linux-yocto/4.8: update to v4.8.3

Integrating the korg -stable release

One commit of note is the fix for CVE-2016-5195 (http://dirtycow.ninja/):

 mm: remove gup_flags FOLL_WRITE games from __get_user_pages()

The remaining changes are covered by the following shortlog export:

   mm: remove gup_flags FOLL_WRITE games from __get_user_pages()
   Make __xfs_xattr_put_listen preperly report errors.
   scsi: configure runtime pm before calling device_add in scsi_add_host_with_dma
   v4l: rcar-fcp: Don't force users to check for disabled FCP support
   Linux 4.8.2
   tpm_crb: fix crb_req_canceled behavior
   tpm: fix a race condition in tpm2_unseal_trusted()
   ima: use file_dentry()
   Bluetooth: Add a new 04ca:3011 QCA_ROME device
   ARM: cpuidle: Fix error return code
   ARM: dts: MSM8660 remove flags from SPMI/MPP IRQs
   ARM: dts: MSM8064 remove flags from SPMI/MPP IRQs
   ARM: dts: mvebu: armada-390: add missing compatibility string and bracket
   ARM: fix delays
   x86/dumpstack: Fix x86_32 kernel_stack_pointer() previous stack access
   x86/mm/pkeys: Do not skip PKRU register if debug registers are not used
   arch/x86: Handle non enumerated CPU after physical hotplug
   x86/apic: Get rid of apic_version[] array
   x86/platform/intel-mid: Keep SRAM powered on at boot
   x86/platform/intel-mid: Add Intel Penwell to ID table
   x86/cpu: Rename Merrifield2 to Moorefield
   x86/pkeys: Make protection keys an "eager" feature
   x86/irq: Prevent force migration of irqs which are not in the vector domain
   x86/boot: Fix kdump, cleanup aborted E820_PRAM max_pfn manipulation
   arm64: fix dump_backtrace/unwind_frame with NULL tsk
   KVM: PPC: BookE: Fix a sanity check
   KVM: arm/arm64: vgic: Don't flush/sync without a working vgic
   KVM: arm64: Require in-kernel irqchip for PMU support
   KVM: MIPS: Drop other CPU ASIDs on guest MMU changes
   KVM: PPC: Book3s PR: Allow access to unprivileged MMCR2 register
   xen/x86: Update topology map for PV VCPUs
   mfd: wm8350-i2c: Make sure the i2c regmap functions are compiled
   mfd: 88pm80x: Double shifting bug in suspend/resume
   mfd: atmel-hlcdc: Do not sleep in atomic context
   mfd: rtsx_usb: Avoid setting ucr->current_sg.status
   ALSA: usb-line6: use the same declaration as definition in header for MIDI manufacturer ID
   ALSA: usb-audio: Extend DragonFly dB scale quirk to cover other variants
   ALSA: ali5451: Fix out-of-bound position reporting
   phy: sun4i-usb: Use spinlock to guard phyctl register access
   usb: dwc3: fix Clear Stall EP command failure
   timekeeping: Fix __ktime_get_fast_ns() regression
   usb: storage: fix runtime pm issue in usb_stor_probe2
   Linux 4.8.1
   ALSA: hda - Add the top speaker pin config for HP Spectre x360
   ALSA: hda - Fix headset mic detection problem for several Dell laptops
   ALSA: hda - Adding one more ALC255 pin definition for headset problem
   Revert "usbtmc: convert to devm_kzalloc"
   USB: serial: cp210x: Add ID for a Juniper console
   usb: usbip: vudc: fix left shift overflow
   Staging: fbtft: Fix bug in fbtft-core
   usb: misc: legousbtower: Fix NULL pointer deference
   Using BUG_ON() as an assert() is _never_ acceptable
   arm64: debug: avoid resetting stepping state machine when TIF_SINGLESTEP
   Using BUG_ON() as an assert() is _never_ acceptable

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.1: fix CVE-2016-5195 (dirtycow)
Bruce Ashfield [Sat, 22 Oct 2016 03:47:37 +0000 (23:47 -0400)]
linux-yocto/4.1: fix CVE-2016-5195 (dirtycow)

Backporting commit 19be0eaffa [mm: remove gup_flags FOLL_WRITE games
from __get_user_pages()] to address the dirtycow exploit.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4: update to v4.4.26
Bruce Ashfield [Sat, 22 Oct 2016 03:47:36 +0000 (23:47 -0400)]
linux-yocto/4.4: update to v4.4.26

Integrating the 4.4.23->26 -stable releases. Among other fixes
this contains commit:

  mm: remove gup_flags FOLL_WRITE games from __get_user_pages()

Which addresses CVE-2016-5195.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokern-tools: make patches with shell-unsafe characters valid
Bruce Ashfield [Wed, 19 Oct 2016 01:08:18 +0000 (21:08 -0400)]
kern-tools: make patches with shell-unsafe characters valid

If a patch contains characters like ; or (), it can cause processing
errors in the patch queue.

We had previously fixed this issue by renaming the patches to not
include invalid characters, but with this change to the kern tools
that ensures patch names are wrapped in quotes, we avoid shell
processing and hence they are valid.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4/4.8: kernel config warning cleanups
Bruce Ashfield [Wed, 19 Oct 2016 01:08:17 +0000 (21:08 -0400)]
linux-yocto/4.4/4.8: kernel config warning cleanups

Merging the following patches into 4.4 and 4.8 to remove kernel
configuration warnings:

  bbaf01752b01 meta-yocto-bsp: beaglebone: remove the stale kernel options
  552a83790b17 features: Fix configcheck warnings in features used by intel-quark BSPs
  c33d9c2c575f features: Fix configcheck warnings in features used by intel-core* BSPs

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolocal.conf.sample.extended: remove RM_OLD_IMAGE
Joshua Lock [Wed, 12 Oct 2016 20:46:42 +0000 (21:46 +0100)]
local.conf.sample.extended: remove RM_OLD_IMAGE

RM_OLD_IMAGE has been removed so don't include this variable in
sample local.conf

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Sat, 15 Oct 2016 12:22:16 +0000 (13:22 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils: Fix gas error with cfi_section inconsistencies
Khem Raj [Fri, 14 Oct 2016 12:04:07 +0000 (05:04 -0700)]
binutils: Fix gas error with cfi_section inconsistencies

This error is visible when using clang but not when using gcc
this has been reported and fixed upstream.

llvm bug https://llvm.org/bugs/show_bug.cgi?id=29017
binutils bug https://sourceware.org/bugzilla/show_bug.cgi?id=20648

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxml2: Make tests non-executable
Jussi Kukkonen [Fri, 14 Oct 2016 18:38:40 +0000 (21:38 +0300)]
libxml2: Make tests non-executable

The XML W3C conformance test suite contains thousands of xml files all
marked executable. We dutifully try to strip all these files of debug
info in do_package.

"chmod -x" improves build time by ~40 seconds.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobind: fix two CVEs
Zheng Ruoqin [Fri, 14 Oct 2016 14:11:04 +0000 (10:11 -0400)]
bind: fix two CVEs

Add two CVE patches from upstream
git: https://www.isc.org/git/

1.CVE-2016-2775.patch
2.CVE-2016-2776.patch

Signed-off-by: zhengruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorpm: prevent race in tempdir creation
Markus Lehtonen [Fri, 14 Oct 2016 10:41:26 +0000 (13:41 +0300)]
rpm: prevent race in tempdir creation

This patch fixes an extramely rare race condition in creation of rpmdb
temporary directory. The "rpmdb-more-verbose-error-logging" patch is
still left in place, just for the case.

[YOCTO #9416]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinsane.bbclass: fix package_qa_check_arch() for mips64-o32
Robert Yang [Fri, 14 Oct 2016 10:08:37 +0000 (03:08 -0700)]
insane.bbclass: fix package_qa_check_arch() for mips64-o32

Fixed:
MACHINE = "qemumips64"
DEFAULTTUNE = "mips64-o32"

$ bitbake linux-yocto
ERROR: linux-yocto-4.8+gitAUTOINC+03bf3dd731_674818dad5-r0 do_package_qa: QA Issue: Bit size did not match (32 to 64) linux-yocto on
    /work/qemumips64-poky-linux/linux-yocto/4.8+gitAUTOINC+03bf3dd731_674818dad5-r0/packages-split/kernel-module-parport/lib/modules/4.8.0-yocto-standard/kernel/drivers/parport/parport.ko [arch]

The mips64-n32 works since it would set ABIEXTENSION to "n32" so that
TARGET_OS is linux-gnun32, and it will skip the check, but "mips64-o32"
doesn't set ABIEXTENSION to "o32", "n32" or "32", so the error happend.

Skip the check if mips64.*32 matches DEFAULTTUNE can fix the problem.
Another way to fix the problem is define ABIEXTENSION to "o32" or "32"
for mips64-o32, but that may make things confused since "o32" is purely
32 bit.

[YOCTO #10305]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoarch-mips.inc: remove duplicates from PACKAGE_ARCHS
Robert Yang [Fri, 14 Oct 2016 10:08:36 +0000 (03:08 -0700)]
arch-mips.inc: remove duplicates from PACKAGE_ARCHS

Fixed:
MACHINE = "qemumips64"
DEFAULTTUNE = "mips64-o32"

$ bitbake linux-yocto
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, the PACKAGE_ARCHS variable contains duplicates. The following archs are listed more than once: mips64-o32

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoppp: fix building with linux-4.8
Jackie Huang [Fri, 14 Oct 2016 00:50:11 +0000 (08:50 +0800)]
ppp: fix building with linux-4.8

Fix a build error when using the linux-4.8 headers that results in:

In file included from pppoe.h:87:0,
                 from plugin.c:29:
../usr/include/netinet/in.h:211:8: note: originally defined here
 struct in6_addr
        ^~~~~~~~
In file included from ../usr/include/linux/if_pppol2tp.h:20:0,
                 from ../usr/include/linux/if_pppox.h:26,
                 from plugin.c:52:
../usr/include/linux/in6.h:49:8: error: redefinition of 'struct sockaddr_in6'
 struct sockaddr_in6 {
        ^~~~~~~~~~~~

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoRevert "linux-libc-headers: fix in/if.h includes"
Jackie Huang [Fri, 14 Oct 2016 00:50:10 +0000 (08:50 +0800)]
Revert "linux-libc-headers: fix in/if.h includes"

This issue is fixed in the ppp recipe.

This reverts commit 7c6b78ac8e2b176f77178c3dd12d8455be10845d.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopopulate_sdk_ext: explicitly set DL_DIR
Ross Burton [Fri, 14 Oct 2016 12:57:51 +0000 (13:57 +0100)]
populate_sdk_ext: explicitly set DL_DIR

The eSDK generation assumes that DL_DIR is downloads/ under the build directory,
and puts files such as a freshly buily uninative tarball in there expecting
bitbake will find it later.

Whilst ${TOPDIR}/downloads/ is in fact the default value for DL_DIR in
bitbake.conf, and any instances of DL_DIR are removed from the original
local.conf, there is still the possibility that other layers could contain a
site.conf that assigns DL_DIR.

If this happens the errors are quite mysterious as it fails to find the
uninative tarball and so the hashes all change, and eSDK building fails.

Ensure that this cannot happen by explicitly assigning the DL_DIR that we
require, instead of assuming that the default value will be used.

[ YOCTO #10439 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosqlite3: Revert ad601c7962 from 3.14.1 amalgamation package
Jianxun Zhang [Thu, 13 Oct 2016 20:16:34 +0000 (13:16 -0700)]
sqlite3: Revert ad601c7962 from 3.14.1 amalgamation package

It turns out this change between 3.12.2 and 3.13 introduces
a 2% increase of build time based on statistic data in
bz10367.

The added patch is forged by diffing the new sqlite3.c
generated from reverting the change in raw source of sqlite3
project, and then manually migrate the delta to a sqlite3.c
from the 3.14.1 tarball package because what recipes reference
is actually a generated C code (amalgamation) release package
and we cannot apply the real change to 3.14.1 cleanly due to
so many changes happened.

Fixes [YOCTO #10367]

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto.inc: ensure do_kernel_link_images runs before do_strip
Andre McCurdy [Thu, 13 Oct 2016 18:49:33 +0000 (11:49 -0700)]
linux-yocto.inc: ensure do_kernel_link_images runs before do_strip

If the do_kernel_link_images task is enabled, then it needs to run
before do_strip. The addtask statement for do_strip makes that
explicit. For consistency, make it explicit in the addtask statement
for do_kernel_link_images too.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobinutils: fix for MIPS "Can't find matching LO16 reloc" errors
Andre McCurdy [Thu, 13 Oct 2016 00:16:30 +0000 (17:16 -0700)]
binutils: fix for MIPS "Can't find matching LO16 reloc" errors

Patch taken from Binutils Bugzilla:

  https://sourceware.org/bugzilla/show_bug.cgi?id=20649

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibgpg-error: Make case generic for MIPS
Zubair Lutfullah Kakakhel [Wed, 12 Oct 2016 12:55:02 +0000 (13:55 +0100)]
libgpg-error: Make case generic for MIPS

The tuples for MIPS r6 onwards are
- mipsisa32r6el
- mipsisa32r6
- mipsisa64r6el
- mipsisa64r6

The default case passes it forward which isn't handled well and
causes a build error. Rework the case statement to make it generic.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolive-vm-common.bbclass: Allow to use different kernel image than KERNEL_IMAGETYPE...
Martin Jansa [Wed, 12 Oct 2016 12:06:12 +0000 (14:06 +0200)]
live-vm-common.bbclass: Allow to use different kernel image than KERNEL_IMAGETYPE for /vmlinuz

* syslinux config hardcodes kernel image as /vmlinuz add warning message
  when the selected image doesn't exist and allow to select different image
  with VM_DEFAULT_KERNEL variable (qemuboot.bbclass is using QB_DEFAULT_KERNEL)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage_types.bbclass: add dependency do_image_wic -> do_bootimg
Ed Bartosh [Wed, 12 Oct 2016 11:47:16 +0000 (14:47 +0300)]
image_types.bbclass: add dependency do_image_wic -> do_bootimg

To produce certain types of images wic uses do_bootimg results
to assemble final image. For example, it copies BOOT/EFI directory
produced by do_bootimg to boot partition for every EFI image.

The tricky part of this is that do_bootimg task is not always run,
so we can't always make do_image_wic depend on do_bootimg. We only
need to do it if do_bootimg present in task graph.

Thank to Cristopher Larson for this fix.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxcb: use python3 to build it
Robert Yang [Tue, 11 Oct 2016 10:16:40 +0000 (03:16 -0700)]
libxcb: use python3 to build it

Backport Fix-inconsistent-use-of-tabs-vs.-space.patch to make it can be
built by python3.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxcb-proto: fix for python3
Robert Yang [Wed, 12 Oct 2016 02:48:12 +0000 (19:48 -0700)]
xcb-proto: fix for python3

Backport two patches to make it py3 friendly.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxcb-proto: create .pyc files for python2
Robert Yang [Thu, 22 Sep 2016 09:36:55 +0000 (02:36 -0700)]
xcb-proto: create .pyc files for python2

Its Makefile's do_install creates .pyc files for python3, now also
create them for python2 so that they will be recorded by manifest, and
can be cleaned correctly.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage_tar: avoid chdir warnings and restore cwd after packaging
Robert Yang [Wed, 12 Oct 2016 09:19:05 +0000 (02:19 -0700)]
package_tar: avoid chdir warnings and restore cwd after packaging

Fixed:
WARNING: attr-2.4.47-r0 do_package_write_tar: Task do_package_tar changed cwd to /path/to/attr/2.4.47-r0/packages-split/attr-locale-sv

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosource-highlight: use with-boost-libdir
Robert Yang [Wed, 12 Oct 2016 06:31:29 +0000 (23:31 -0700)]
source-highlight: use with-boost-libdir

Without with-boost-libdir, it checks lib64 libx32 lib lib64 in
sysroot/usr/ and set it as boost lib path if it exist, this is
unreliable when build with multilib.

Fixed when switch baselib from lib64 to lib, for example, when we build
qemux86-64 + multilib setting, the baselib is lib64, and when disable
multilib, it would be lib, then we may see the error when
do_configure since lib64 may exist during build source-highlight:

configure: error: Could not find a version of the Boost::Regex library!

Steps to reproduce:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

$ bitbake world

Then:
MACHINE = "qemux86-64"
$ bitbake source-highlight

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinsane.bbclass: Additional "mips" and "mipsel" machine definitions
Juro Bystricky [Tue, 11 Oct 2016 16:56:24 +0000 (09:56 -0700)]
insane.bbclass: Additional "mips" and "mipsel" machine definitions

Add "mips" and "mipsel" to "machdata" table.
Although there is a way to add entries to the "machdata" table
from a BSP without modifying the insane.bbclass directly, MIPS is
already supported in poky and as such the relevant entries should be
present in insane.bbclass.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel-arch.bbclass: Add xtensa and arc into valid_archs table
Juro Bystricky [Tue, 11 Oct 2016 16:31:32 +0000 (09:31 -0700)]
kernel-arch.bbclass: Add xtensa and arc into valid_archs table

Both "arc" and "xtensa" are valid Linux architectures, add
them into valid_archs table.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxrender: remove spurious build dependency
Ross Burton [Tue, 11 Oct 2016 15:10:37 +0000 (16:10 +0100)]
libxrender: remove spurious build dependency

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxext: remove spurious dependencies
Ross Burton [Tue, 11 Oct 2016 15:06:41 +0000 (16:06 +0100)]
libxext: remove spurious dependencies

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxext: remove stale git recipe
Ross Burton [Tue, 11 Oct 2016 15:02:20 +0000 (16:02 +0100)]
libxext: remove stale git recipe

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocmake: improve CMAKE_SYSTEM_PROCESSOR assignment in nativesdk
Ross Burton [Tue, 11 Oct 2016 12:30:42 +0000 (13:30 +0100)]
cmake: improve CMAKE_SYSTEM_PROCESSOR assignment in nativesdk

The previous string manipulations would result in the wrong string being used
for machines such as intel-corei7-64 as the sysroot was split at the first
hyphen (so would result in corei7 instead of corei7-64).

Change the logic so that it looks for processor-distro-os and uses the whole of
the processor field.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocmake: also set CMAKE_FIND_ROOT_PATH_MODE_PACKAGE
Ross Burton [Mon, 10 Oct 2016 11:41:34 +0000 (12:41 +0100)]
cmake: also set CMAKE_FIND_ROOT_PATH_MODE_PACKAGE

The other CMAKE_FIND_ROOT_PATH_MODE_* variables were already set to ONLY, but
PACKAGE was left out.  Fix this so that cmake doesn't look on the host for cmake
modules when it should only be looking in the target sysroot.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobase-files: fix profile error under < /dev/null
Richard Tollerton [Wed, 12 Oct 2016 01:08:15 +0000 (20:08 -0500)]
base-files: fix profile error under < /dev/null

Previous attempts to constrain execution of `resize` to only TTYs did
not properly handle situations when `tty` would return the string "not a
tty". The symptom is "/etc/profile: line 34: test: too many arguments".
Fix this by utilizing the exit code of `tty`. Also use `case` instead of
`cut` to eliminate a subshell.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agox86-base: Update version to 4.8
Saul Wold [Wed, 12 Oct 2016 17:06:51 +0000 (10:06 -0700)]
x86-base: Update version to 4.8

This update will avoid confusion with other parts of OE-Core that
set the kernel version to 4.8 for qemux86* and genericx86*.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopixbufcache: handle gdk-pixbuf not being present
Ross Burton [Thu, 13 Oct 2016 19:36:35 +0000 (20:36 +0100)]
pixbufcache: handle gdk-pixbuf not being present

It's possible - albeit unlikely - that gdk-pixbuf isn't present in the sysroot
when a recipe inheriting this class is and the sysroot is finalised.

One example would be if the sstate archive has librsvg but not gdk-pixbuf:
librsvg will be extracted from the sstate but gdk-pixbuf will be built to "fill
in the gap".  In this situation the setscene completion hook installed by
pixbufcache.bbclass will attempt to execute gdk-pixbuf-query-loaders, but that
binary hasn't been installed by gdk-pixbuf yet.

Also add gdk-pixbuf-native to DEPENDS in native builds to ensure that the
binaries we expect will be present, as it's possible to build loaders without
linking to GdkPixbuf.

[ YOCTO #10420 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibrsvg: remove redundant assignment
Ross Burton [Thu, 13 Oct 2016 19:36:21 +0000 (20:36 +0100)]
librsvg: remove redundant assignment

PIXBUFCACHE_SYSROOT_DEPS was removed in oe-core b41108, so remove this
assignment to avoid confusing people reading the recipe.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoRemove RM_OLD_IMAGE, it's no longer useful
Joshua Lock [Wed, 12 Oct 2016 20:46:41 +0000 (21:46 +0100)]
Remove RM_OLD_IMAGE, it's no longer useful

Since the move to put image deployment under sstate control in
d54339d4b1a7e884de636f6325ca60409ebd95ff old images are automatically
removed before a new image is deployed (the default behaviour of the
sstate logic).

RM_OLD_IMAGE is therefore no longer required to provide this
behaviour, remove the variable and its users.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 11 Oct 2016 22:43:20 +0000 (23:43 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/externalsrc: re-run do_configure when configure files change
Paul Eggleton [Tue, 11 Oct 2016 21:33:47 +0000 (10:33 +1300)]
classes/externalsrc: re-run do_configure when configure files change

If the user modifies files such as CMakeLists.txt in the case of cmake,
we want do_configure to re-run so that those changes can take effect. In
order to accomplish that, have a variable CONFIGURE_FILES which
specifies a list of files that will be put into do_configure's checksum
(either full paths, or just filenames which will be searched for in the
entire source tree). CONFIGURE_FILES then just needs to be set
appropriately depending on what do_configure is doing; for now I've set
this for autotools and cmake which are the most common cases.

Fixes [YOCTO #7617].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosdk-installer: Fix unclear SDK installer message
Todor Minchev [Tue, 4 Oct 2016 15:47:11 +0000 (08:47 -0700)]
sdk-installer: Fix unclear SDK installer message

When the host and the SDK architectures are incompatible the SDK
installer outputs an incomplete error message "Error: Installation
machine not supported!". This commit adds a more verbose error
message e.g "Error: Incompatible SDK installer! Your host is i686
and this SDK was built for x86_64 hosts."

Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysklogd and busybox: ignore return code from init script stop
Markus Lehtonen [Tue, 11 Oct 2016 12:43:29 +0000 (15:43 +0300)]
sysklogd and busybox: ignore return code from init script stop

The init script will return '1' if we try to stop the service and it is
not currently running. The prerm scriptlet must not fail because of this
because it will cause package deinstallation of upgrade fail if opkg
package manager is used.

[YOCTO #10299]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoupdate-rc.d.bbclass: ignore init script return code
Markus Lehtonen [Tue, 11 Oct 2016 12:43:28 +0000 (15:43 +0300)]
update-rc.d.bbclass: ignore init script return code

We need to ignore the return code from the init script 'stop' command in
the preinst and prerm scriptlets. Otherwise package upgrade or
deinstallation (at least when opkg is used) is likely to fail if the
daemon is not running. That is because an init script possibly returns
'1' if you try to stop a service that is not running which, in turn,
causes the scriptlet to fail which, in turn, causes the package
(de-)installation to fail.

[YOCTO #10299]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinsane: display names instead of ELF machine numbers
Ross Burton [Tue, 11 Oct 2016 12:19:44 +0000 (13:19 +0100)]
insane: display names instead of ELF machine numbers

The 'arch' QA test currently simply outputs the ELF machine field as a number
which isn't helpful.  Display this as a human-readable name to make it clearer
to the user what the problem is.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/qa: add ELF machine to string function
Ross Burton [Tue, 11 Oct 2016 12:19:43 +0000 (13:19 +0100)]
lib/oe/qa: add ELF machine to string function

Add a function (and test suite) to turn the ELF machine field (e_machine) into a
string, so we can tell the user "x86-64" instead of 0x3E.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 11 Oct 2016 21:16:16 +0000 (22:16 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovte: Build without vala by default
Jussi Kukkonen [Tue, 11 Oct 2016 10:58:02 +0000 (13:58 +0300)]
vte: Build without vala by default

vala.bbclass DEPENDS on vala and vala-native: Drop the inherit so
that these dependencies can be added on-demand based on vte
PACKAGECONFIG. Add relevant items from vala class into the recipe.

Add copy of vapigen.m4 so building without vala actually succeeds.

Make building without vala the default PACKAGECONFIG.

Fixes [YOCTO #10386].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Tue, 11 Oct 2016 07:51:31 +0000 (08:51 +0100)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoarchiver: fix gcc-source handling
Saul Wold [Mon, 10 Oct 2016 18:32:05 +0000 (11:32 -0700)]
archiver: fix gcc-source handling

The source archiver was not handling the gcc-source target correctly, since it uses the
work-shared directory, we don't want to unpack and patch it twice, just as the comments
say, but the code was not there to check for the gcc-source target.

[YOCTO #10265]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonet-tools: fix building with linux-4.8
Jackie Huang [Sun, 9 Oct 2016 00:56:07 +0000 (08:56 +0800)]
net-tools: fix building with linux-4.8

Fix a build error when using the linux-4.8 headers that results in:

In file included from
.../sysroots/qemuarm64/usr/include/linux/if_tunnel.h:6:0,
                  from iptunnel.c:39:
.../qemuarm64/usr/include/linux/ip.h:85:8: error: redefinition of
'struct iphdr'
  struct iphdr {
         ^~~~~
In file included from iptunnel.c:29:0:
.../qemuarm64/usr/include/netinet/ip.h:44:8: note: originally defined here
  struct iphdr
         ^~~~~
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "linux-libc-headers: if_tunnel: remove include of if/ip/in6.h"
Jackie Huang [Sun, 9 Oct 2016 00:56:06 +0000 (08:56 +0800)]
Revert "linux-libc-headers: if_tunnel: remove include of if/ip/in6.h"

The issue is fixed in net-tools.

This reverts commit fb71f34d7379569c23cc00e18d134093147613f5.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocanned-wks: use GPT partition table
Ed Bartosh [Mon, 10 Oct 2016 07:50:41 +0000 (10:50 +0300)]
canned-wks: use GPT partition table

According to UEFI specification all EFI platforms must support
GUID Partition Table(GPT) disk layout. Here is a list of advantages
of using GPT disk layout over the legacy MBR partitioning:

 - Logical Block Addresses (LBAs) are 64 bits (rather than 32 bits).
 - Supports many partitions (rather than just four primary partitions).
 - Provides both a primary and backup partition table for redundancy.
 - Uses version number and size fields for future expansion.
 - Uses CRC32 fields for improved data integrity.
 - Defines a GUID for uniquely identifying each partition.
 - Uses a GUID and attributes to define partition content type.
 - Each partition contains a 36 character human readable name.

Used GPT partitioning in all EFI kickstart files.
Tested result images on NUC, MinnowBoard MAX and MinnowBoard Turbot.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd-bootdisk.wks: update kernel command line
Ed Bartosh [Mon, 10 Oct 2016 07:40:51 +0000 (10:40 +0300)]
systemd-bootdisk.wks: update kernel command line

Used ttyS0 console.
Removed usage of ttyPCH0 (FRI2 leftover)
Decreased bootloader timeout to 5 seconds
Removed 'vmalloc=256MB snd-hda-intel.enable_msi=0' as it's not
needed for any of reference BSPs.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoflex: Backport buffer overflow fix
Jussi Kukkonen [Mon, 10 Oct 2016 08:30:03 +0000 (11:30 +0300)]
flex: Backport buffer overflow fix

Fix a heap-based buffer overflow in yy_get_next_buffer()
(CVE-2016-6354).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoflex: Update upstream check uri
Jussi Kukkonen [Mon, 10 Oct 2016 08:30:02 +0000 (11:30 +0300)]
flex: Update upstream check uri

Flex has moved to github, update UPSTREAM_CHECK_URI.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognutls: Backport certificate check fix
Jussi Kukkonen [Mon, 10 Oct 2016 08:30:01 +0000 (11:30 +0300)]
gnutls: Backport certificate check fix

Previously the OCSP certificate check wouldn't verify the serial
length and could succeed in cases it shouldn't (CVE-2016-7444).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestimage: disable build tests for qemumips and qemumips64
Joshua Lock [Thu, 6 Oct 2016 10:06:54 +0000 (11:06 +0100)]
testimage: disable build tests for qemumips and qemumips64

It's not uncommon for qemumips[64] builds on the Yocto Project
autobuilder to fail during Sanity Tests after a very long timeout
period. This is due to the MIPS emulation in QEMU being slow and
some of the build tests taking a very long time on MIPS machines.

This patch works around this slowness by disabling the more
complex build tests for QEMU MIPS machines.

[YOCTO #10340]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkgummidisk.wks: update kernel command line
Ed Bartosh [Fri, 7 Oct 2016 06:30:09 +0000 (09:30 +0300)]
mkgummidisk.wks: update kernel command line

Used ttyS0 console.
Removed usage of ttyPCH0 (FRI2 leftover)
Decreased bootloader timeout to 5 seconds
Removed 'vmalloc=256MB snd-hda-intel.enable_msi=0' as it's not
needed for any of reference BSPs.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomklibs-native: update broken SRC_URI
Armin Kuster [Fri, 7 Oct 2016 16:13:29 +0000 (09:13 -0700)]
mklibs-native: update broken SRC_URI

fixes checkuri AB failure.

V2] change to snaphot instead of ubuntu

ERROR: mklibs-native-0.1.41-r0 do_checkuri: Fetcher failure for URL: 'http://ftp.de.debian.org/debian/pool/main/m/mklibs/mklibs_0.1.41.tar.xz'. URL http://ftp.de.debian.org/debian/pool/main/m/mklibs/mklibs_0.1.41.tar.xz doesn't work
ERROR: mklibs-native-0.1.41-r0 do_checkuri: Function failed: do_checkuri

[ Yocto #10391]

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-runtime.inc: Add CPP support for x86-64-x32 tune
Juro Bystricky [Sat, 8 Oct 2016 17:53:52 +0000 (10:53 -0700)]
gcc-runtime.inc: Add CPP support for x86-64-x32 tune

Using the following setup (as specified in yocto sample code):

MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:libx32"
DEFAULTTUNE_virtclass-multilib-libx32 = "x86-64-x32"

We fail to compile simple CPP programs because CPP cannot
find relevant header files, looking for them in a non-existing place.
To fix this, we create a symlink of the name CPP expects and point it to
the corresponding existing directory.

[YOCTO#10354]
[YOCTO#10380]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgcc-common.inc: Fix broken symlinks for multilib SDK
Juro Bystricky [Sat, 8 Oct 2016 17:53:53 +0000 (10:53 -0700)]
libgcc-common.inc: Fix broken symlinks for multilib SDK

This patch fixes broken "32" symlinks for multilib settings:

MACHINE = "qemuarm64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7a"

and

MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:libx32"
DEFAULTTUNE_virtclass-multilib-libx32 = "x86-64-x32"

[YOCTO#8642]
[YOCTO#10380]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.8: Enable R8169 driver since its needed by supported platforms
Bruce Ashfield [Fri, 7 Oct 2016 21:27:44 +0000 (17:27 -0400)]
linux-yocto/4.8: Enable R8169 driver since its needed by supported platforms

    The Realtek 8169 driver is needed by the Minnowboard MAX, one of the
    boards we currently support, since some of our images do not contain
    modules by default, the network isnt working on genericx86, genericx86-64
    and intel-core2-32 (meta-intel) when no modules are installed.

    This patch fixes network on images not containing modules when
    using the previously mentioned MACHINES for this board.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoupdate-rc.d.bbclass: check that init script is executable before running it
Markus Lehtonen [Thu, 6 Oct 2016 13:37:04 +0000 (16:37 +0300)]
update-rc.d.bbclass: check that init script is executable before running it

Check that the init script that is going to be called in the prerm()
script really exists and is executable. There might be a packaging bug
or the script might've been removed already earlier in prerm().

[YOCTO #10299]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/populate_sdk_ext: add symlinks and unfsd to support Eclipse plugin
Paul Eggleton [Thu, 6 Oct 2016 21:43:04 +0000 (10:43 +1300)]
classes/populate_sdk_ext: add symlinks and unfsd to support Eclipse plugin

The Yocto Project Eclipse plugin requires that runqemu and unfsd are
accessible within the SDK, and indeed the standard SDK has these. This
turns out to be fairly easy to do - we just need to add unfsd and symlink
it, runqemu and a few other scripts into the SDK's bin directory.

Fixes [YOCTO #10214].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/sshcontrol: Handle interrupted system call error
Richard Purdie [Mon, 3 Oct 2016 14:56:13 +0000 (15:56 +0100)]
oeqa/sshcontrol: Handle interrupted system call error

Deal with an interrupted system call gracefully:

|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-systemd/build/meta/lib/oeqa/utils/sshcontrol.py", line 55, in _run
|     if select.select([self.process.stdout], [], [], 5)[0] != []:
| InterruptedError: [Errno 4] Interrupted system call

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agou-boot: Add support to use uboot-extlinux-config class
Fabio Berton [Tue, 4 Oct 2016 13:54:11 +0000 (10:54 -0300)]
u-boot: Add support to use uboot-extlinux-config class

Use uboot-extlinux-config class to create extlinux.conf file and then
install inside /boot/extlinux directory and also put file to deploy
dir. This file will be only create if UBOOT_EXTLINUX is set to 1.

You can use DEPLOYDIR/extlinux.conf file to install into final image
using wic setting:

IMAGE_BOOT_FILES_append = " extlinux.conf;extlinux/extlinux.conf"

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/uboot-extlinux-config: Add class
Fabio Berton [Tue, 4 Oct 2016 13:54:10 +0000 (10:54 -0300)]
classes/uboot-extlinux-config: Add class

This class allow the extlinux.conf generation for U-Boot use.
The U-Boot support for it is given to allow the Generic Distribution
Configuration specification use by OpenEmbedded-based products.

This class can be inherited by u-boot recipes to create extlinux.conf
and boot using menu options.

U-boot with extlinux support is machine dependent, so to use this class
you need to set UBOOT_EXTLINUX to 1 in machine configuration file and
also set root= kernel cmdline UBOOT_EXTLINUX_ROOT. This variable is used
to pass root kernel cmdline, e.g:

UBOOT_EXTLINUX_ROOT = "root=/dev/mmcblk2p2"

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: selftest: add test for sdimage-bootpart
Ed Bartosh [Thu, 6 Oct 2016 11:53:17 +0000 (14:53 +0300)]
wic: selftest: add test for sdimage-bootpart

Test creation of sdimage-bootpart image

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: selftest: add test for systemd-bootdisk
Ed Bartosh [Thu, 6 Oct 2016 11:53:16 +0000 (14:53 +0300)]
wic: selftest: add test for systemd-bootdisk

Test creation of systemd-bootdisk image.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosecurity_flags: Diable PIE for mesa-gl
Khem Raj [Thu, 6 Oct 2016 15:35:24 +0000 (08:35 -0700)]
security_flags: Diable PIE for mesa-gl

This creeped in along with rest of the changes in
c999b3d88dfcffbe0fb66406fb0bff1fb66f34bc
even after it was reported a build failure in mesa-gl
This is also showing up on arm architecture now

| /usr/src/debug/glibc/2.24-r0/git/csu/elf-init.c:87: undefined reference to `__init_array_end'
| /usr/src/debug/glibc/2.24-r0/git/csu/elf-init.c:87: undefined reference to `__init_array_start'
| /a/builder/mnt/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/6.2.0/ld: .libs/mesa_dri_drivers.so: hidden symbol `__init_array_end' isn't defined

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkefidisk.wks: update kernel command line
Ed Bartosh [Thu, 6 Oct 2016 15:57:53 +0000 (18:57 +0300)]
mkefidisk.wks: update kernel command line

Used ttyS0 console.
Removed usage of ttyPCH0 (FRI2 leftover)
Decreased bootloader timeout to 5 seconds
Removed 'vmalloc=256MB snd-hda-intel.enable_msi=0' as it's not needed
for any of reference BSPs.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkefidisk.wks: use MSDOS partition table
Ed Bartosh [Thu, 6 Oct 2016 10:33:38 +0000 (13:33 +0300)]
mkefidisk.wks: use MSDOS partition table

Stopped using GPT partition table in mkefidisk.wks as it's not
supported by all reference hardware.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: rewrite MBR disk identifier
Ed Bartosh [Thu, 6 Oct 2016 10:33:37 +0000 (13:33 +0300)]
wic: rewrite MBR disk identifier

Disk identifier created by parted doesn't match the one we generated
and used in bootloader config. We need to rewrite it to make our image
bootable.

Modified involved API and data structures to access previously
generated disk identifiers after MBR is initialized. Written disk
identifiers to MBR.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: generate PARTUUID for MDOS partitions
Ed Bartosh [Thu, 6 Oct 2016 10:33:36 +0000 (13:33 +0300)]
wic: generate PARTUUID for MDOS partitions

Added generation of partition UUIDs for MSDOS partitions.
UUID for MSDOS partitions is <disk identifier>-<partition number>,
where disk identifier is a random 4 bytes long number. It's usually
generated when MBR/partition table is initialized.

As UUID is used to point to the root partition in bootloader config
we need to generate it before the MBR is initialized.
After MBR is created we need to rewrite system identifier to match
it with what is used in bootloader config. This will be implemented
in the next commit.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: set PARTUUID only for gpt partition table
Ed Bartosh [Thu, 6 Oct 2016 10:33:35 +0000 (13:33 +0300)]
wic: set PARTUUID only for gpt partition table

sgdisk fails to set PARTUUID for msdos partitions as it's only
supported for GPT partitions.

Checked partition table format to run sgdisk --partition-guid
only for GPT partitions.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinuxloader.bbclass: Adjust mips to cover all mips/mips64
Mark Hatle [Thu, 6 Oct 2016 16:59:38 +0000 (11:59 -0500)]
linuxloader.bbclass: Adjust mips to cover all mips/mips64

[YOCTO #10389]

Use a glob (*) to match all mips (not previously matched).  This will ensure
that the linuxloader is properly returned for mips, mipsel, mips64,
mips64el and their n32 variants.

See: https://sourceware.org/glibc/wiki/ABIList#mips for the official list
of loaders.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoarch-mips: Add mipsisa{32, 64}r6{el, } tunes
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:21 +0000 (12:31 +0100)]
arch-mips: Add mipsisa{32, 64}r6{el, } tunes

Add support for MIPS Release 6 ISA and the various tune
configurations.

This patch adds the tunes for 32r6 and 64r6 n64 and not the n32
variants at the moment.

Release 6 onwards, the tuples are now
 - mipsisa32r6-linux-gnu
 - mipsisa32r6el-linux-gnu
 - mipsisa64r6-linux-gnuabi64
 - mipsisa64r6el-linux-gnuabi64
 - mipsisa64r6-linux-gnuabin32
 - mipsisa64r6el-linux-gnuabin32

For more details, check https://wiki.debian.org/Multiarch/Tuples

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-configure: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:20 +0000 (12:31 +0100)]
gcc-configure: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:19 +0000 (12:31 +0100)]
glibc: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

The loader is located at a new place for multiarch.
For more details, check https://wiki.debian.org/Multiarch
and https://sourceware.org/glibc/wiki/ABIList#mips

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:18 +0000 (12:31 +0100)]
bitbake.conf: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agositeinfo.bbclass: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:17 +0000 (12:31 +0100)]
siteinfo.bbclass: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinuxloader.bbclass: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:16 +0000 (12:31 +0100)]
linuxloader.bbclass: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA. The loader is located at a
new place for multiarch.

For more details, check https://wiki.debian.org/Multiarch
and https://sourceware.org/glibc/wiki/ABIList#mips

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibc-package.bbclass: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:15 +0000 (12:31 +0100)]
libc-package.bbclass: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-arch.bbclass: Add mipsisa{32, 64}r6{el, } support
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:14 +0000 (12:31 +0100)]
kernel-arch.bbclass: Add mipsisa{32, 64}r6{el, } support

Add support for MIPS Release 6 ISA

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinsane.bbclass: Add mipsisa{32, 64}r6{el, }
Zubair Lutfullah Kakakhel [Tue, 4 Oct 2016 11:31:13 +0000 (12:31 +0100)]
insane.bbclass: Add mipsisa{32, 64}r6{el, }

Add support for MIPS release 6 of the ISA

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopseudo: backport a patch to fix renameat()
Joshua Lock [Thu, 6 Oct 2016 15:45:20 +0000 (16:45 +0100)]
pseudo: backport a patch to fix renameat()

renameat calls under pseudo were losing extended attributes.
Backport the fix for this from pseudo upstream.

[YOCTO '10349]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxmlto: Add libxslt to native DEPENDS
Saul Wold [Thu, 6 Oct 2016 18:38:59 +0000 (11:38 -0700)]
xmlto: Add libxslt to native DEPENDS

xmlto requires xsltproc to work correctly, it was being included
for the target, but may have been finding host contamination.

[YOCTO #10366]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutils.bbclass: add function to check for git config user
Stephano Cetola [Mon, 3 Oct 2016 23:32:45 +0000 (16:32 -0700)]
utils.bbclass: add function to check for git config user

If attempting to patch a git repo without a proper git config setup,
an error will occur saying user.name/user.email are needed by git
am/apply. After some code was removed from kernel-yocto, it was
simple enough to reproduce this error by creating a kernel patch and
using a container to build.

This patch abstracts out functionality that existed in buildhistory
for use in other classes. It also adds a call to this functionality
to the kernel-yocto class.

Fixes [YOCTO #10346]

introduced in OE-core revision
0f698dfd1c8bbc0d53ae7977e26685a7a3df52a3

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: Rename 'native' to 'oe-run-native'
Ulf Magnusson [Thu, 6 Oct 2016 03:18:23 +0000 (05:18 +0200)]
scripts: Rename 'native' to 'oe-run-native'

Makes it a bit more descriptive and potentially more discoverable. Most
people seemed to prefer an oe- prefix, so let's go with that.

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouninative: users can override download site
bavery [Thu, 6 Oct 2016 00:43:06 +0000 (17:43 -0700)]
uninative: users can override download site

The default download site for the uninative tarball is
http://downloads.yoctoproject.org/releases/uninative/<version>. There
are scenarios in which the user may need to force the download to be
somewhere else.  This patch allows the UNINATIVE_URL to be set in the
local.conf.

Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoicecc.bbclass: replace os.popen with subprocess.check_output
Martin Jansa [Wed, 5 Oct 2016 20:53:11 +0000 (22:53 +0200)]
icecc.bbclass: replace os.popen with subprocess.check_output

* otherwise there is a lot of warnings about missing close on file descriptor

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: modify command fails to ignore source files
Stephano Cetola [Wed, 5 Oct 2016 17:07:17 +0000 (10:07 -0700)]
devtool: modify command fails to ignore source files

With recent changes to recipeutils, the list of local files returned
by get_recipe_local_files could possibly include source files. This
only happens when the recipe contains a SRC_URI using subdir= to put
files in the source tree. These files should be ignored when
populating the list of local files for oe-local-files directory.

[YOCTO #10326]

introduced in
OE-Core revision 9069fef5dad5a873c8a8f720f7bcbc7625556309

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopopulate_sdk_base.bbclass: Make do_populate_sdk depend on PACKAGE_EXCLUDE_COMPLEMENTARY
Peter Kjellerstedt [Wed, 5 Oct 2016 15:30:48 +0000 (17:30 +0200)]
populate_sdk_base.bbclass: Make do_populate_sdk depend on PACKAGE_EXCLUDE_COMPLEMENTARY

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage.bbclass: Make do_rootfs depend on PACKAGE_EXCLUDE_COMPLEMENTARY
Peter Kjellerstedt [Wed, 5 Oct 2016 15:30:47 +0000 (17:30 +0200)]
image.bbclass: Make do_rootfs depend on PACKAGE_EXCLUDE_COMPLEMENTARY

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager.py: Allow multiple regexps in PACKAGE_EXCLUDE_COMPLEMENTARY
Peter Kjellerstedt [Wed, 5 Oct 2016 15:30:46 +0000 (17:30 +0200)]
package_manager.py: Allow multiple regexps in PACKAGE_EXCLUDE_COMPLEMENTARY

The PACKAGE_EXCLUDE_COMPLEMENTARY variable can currently only contain
one regular expression. This makes it hard to add to it from different
configuration files and recipes.

Allowing it to contain multiple, whitespace separated regular
expressions should be backwards compatible as it is assumed that
whitespace is not used in package names and thus is not used in any
existing instances of the variable.

After this change, the following three examples should be equivalent:

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo|bar"

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo bar"

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo"
  PACKAGE_EXCLUDE_COMPLEMENTARY += "bar"

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager.py: Allow a leading - in PACKAGE_EXCLUDE_COMPLEMENTARY
Peter Kjellerstedt [Wed, 5 Oct 2016 15:30:45 +0000 (17:30 +0200)]
package_manager.py: Allow a leading - in PACKAGE_EXCLUDE_COMPLEMENTARY

This allows a regular expression specified in
PACKAGE_EXCLUDE_COMPLEMENTARY to have a leading dash. Without this,
the dash was treated by oe-pkgdata-util as the beginning of a command
line argument. E.g., if PACKAGE_EXCLUDE_COMPLEMENTARY = "-foo$", it
resulted in an error like:

  ERROR: <imagename>-1.0-r0 do_populate_sdk: Could not compute
  complementary packages list. Command '<topdir>/scripts/oe-pkgdata-util -p
  <builddir>/tmp/sysroots/<machine>/pkgdata glob
  <workdir>/installed_pkgs.txt *-dev *-dbg -x -foo$' returned 2:
  ERROR: argument -x/--exclude: expected one argument
  usage: oe-pkgdata-util glob [-h] [-x EXCLUDE] pkglistfile glob [glob ...]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.buildperf: measure apparent size instead of real disk usage
Markus Lehtonen [Wed, 5 Oct 2016 13:29:49 +0000 (16:29 +0300)]
oeqa.buildperf: measure apparent size instead of real disk usage

This change aligns disk usage measurements of the eSDK test with the old
build-perf-test.sh script. And thus, also makes the results between the
old and the new script comparable.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk+3: Backport treeview focus fix
Jussi Kukkonen [Tue, 4 Oct 2016 13:16:42 +0000 (16:16 +0300)]
gtk+3: Backport treeview focus fix

Treeview did not grab focus properly on mouse click, leading to e.g.
multifile selection with click/shift-click not working in the
filechooser. Backport a fix.

Fixes [YOCTO #10273].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>