]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agolinux-yocto/4.9: bump to v4.9.13
Bruce Ashfield [Tue, 14 Mar 2017 13:31:12 +0000 (09:31 -0400)]
linux-yocto/4.9: bump to v4.9.13

Change summary is as follows:

  3737a5f72234 Linux 4.9.13
  d00400605597 xfs: clear delalloc and cache on buffered write failure
  57d759622aa7 rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down
  1cb3de83ab74 block: fix double-free in the failure path of cgwb_bdi_init()
  62c153f346fe ACPICA: Linuxize: Restore and fix Intel compiler build
  8f9872be6db9 netfilter: nf_ct_helper: warn when not applying default helper assignment
  e6bdd8d2fffc goldfish: Sanitize the broken interrupt handler
  2709c2a1b016 x86/platform/goldfish: Prevent unconditional loading
  fef3fdf2d83c USB: serial: console: fix uninitialised spinlock
  960a38eae80a USB: serial: ark3116: fix register-accessor error handling
  a2ce74e35d5f USB: serial: opticon: fix CTS retrieval at open
  a1fc6fb5f31e USB: serial: spcp8x5: fix modem-status handling
  26805681a45d USB: serial: ftdi_sio: fix line-status over-reporting
  a1510a8c0ded USB: serial: ftdi_sio: fix extreme low-latency setting
  f3d56f7a586e USB: serial: ftdi_sio: fix modem-status error handling
  4420e0f8fddf USB: serial: cp210x: add new IDs for GE Bx50v3 boards
  308a96c857cc USB: serial: mos7840: fix another NULL-deref at open
  9ab870e7425c tty: serial: msm: Fix module autoload
  1a0e2594ef76 net: socket: fix recvmmsg not returning error from sock_error
  481aedf869fb ip: fix IP_CHECKSUM handling
  7c56012e92b5 ptr_ring: fix race conditions when resizing
  c2219da51664 irda: Fix lockdep annotations in hashbin_delete().
  f23fd87e154f vxlan: fix oops in dev_fill_metadata_dst
  171d92a9d915 dccp: fix freeing skb too early for IPV6_RECVPKTINFO
  6c854afc5399 net: neigh: Fix netevent NETEVENT_DELAY_PROBE_TIME_UPDATE notification
  9206efc8a1f7 packet: Do not call fanout_release from atomic contexts
  722737f27774 packet: fix races in fanout_add()
  e0cb28247882 net: ethernet: ti: cpsw: fix cpsw assignment in resume
  42b52783a59c net/llc: avoid BUG_ON() in skb_orphan()
  859900c24bff net/mlx5e: Disable preemption when doing TC statistics upcall
  90aa7993d5c7 kcm: fix a null pointer dereference in kcm_sendmsg()
  1409935400aa kcm: fix 0-length case for kcm_sendmsg()
  ae7d43192ff2 Linux 4.9.12
  7b0712345376 videodev2.h: go back to limited range Y'CbCr for SRGB and, ADOBERGB
  8629aed2387c bcache: Make gc wakeup sane, remove set_task_state()
  68214ad3926c ntb_transport: Pick an unused queue
  f42026015094 ntb: ntb_perf missing dmaengine_unmap_put
  43325382fc7a NTB: ntb_transport: fix debugfs_remove_recursive
  215d4d62ccfd timekeeping: Use deferred printk() in debug code
  7ee210365adf printk: use rcuidle console tracepoint
  5c3765bbc1db PCI/PME: Restore pcie_pme_driver.remove
  48a415827882 Revert "i2c: designware: detect when dynamic tar update is possible"
  17c443421458 ARM: 8658/1: uaccess: fix zeroing of 64-bit get_user()
  808de347ebd4 futex: Move futex_init() to core_initcall
  dfe8f5757ec4 drm/dp/mst: fix kernel oops when turning off secondary monitor
  7499da90c0cc drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor
  19d2d869d00e Input: elan_i2c - add ELAN0605 to the ACPI table
  a975e8e81e55 Fix missing sanity check in /dev/sg
  a026c97e8824 scsi: don't BUG_ON() empty DMA transfers
  920b60aa3cc2 powerpc/64: Disable use of radix under a hypervisor
  ef746a305de3 mmc: core: fix multi-bit bus width without high-speed mode
  80a0477665d0 fuse: fix uninitialized flags in pipe_buffer
  7283448f8273 fuse: fix use after free issue in fuse_dev_do_read()
  6cf921be8fb9 siano: make it work again with CONFIG_VMAP_STACK
  166a2464cdcf vfs: fix uninitialized flags in splice_to_pipe()
  eee1550b3e89 Linux 4.9.11
  724aedaa5ca6 x86/fpu/xstate: Fix xcomp_bv in XSAVES header
  0d4c19ee68c9 tcp: don't annotate mark on control socket from tcp_v6_send_response()
  0e0751cdfa46 net/mlx5: Don't unlock fte while still using it
  7c4c32a2976e tcp: fix mark propagation with fwmark_reflect enabled
  16a3fbe5239a igmp, mld: Fix memory leak in igmpv3/mld_del_delrec()
  53a76d633b86 mld: do not remove mld souce list info when set link down
  5b1bb4cbd7ec l2tp: do not use udp_ioctl()
  12758a282435 net: dsa: Do not destroy invalid network devices
  a700cf26a3be ping: fix a null pointer dereference
  82849541895f packet: round up linear to header len
  6ebde312a8ed net: introduce device min_header_len
  4cd0362114c8 sit: fix a double free on error path
  2b7f50d67f5d lwtunnel: valid encap attr check should return 0 when lwtunnel is disabled
  00eff2ebbd22 sctp: avoid BUG_ON on sctp_wait_for_sndbuf
  4400acce6881 mlx4: Invoke softirqs after napi_reschedule
  970390fd5d53 catc: Use heap buffer for memory size test
  61bf9f381c38 catc: Combine failure cleanup code in catc_probe()
  e898f6f008aa rtl8150: Use heap buffers for all register access
  878b015bcc72 pegasus: Use heap buffers for all register access
  b90cb484c068 macvtap: read vnet_hdr_size once
  26989c9d9904 tun: read vnet_hdr_sz once
  0f895f51a831 tcp: avoid infinite loop in tcp_splice_read()
  1e340bb22af3 ipv6: tcp: add a missing tcp_v6_restore_cb()
  ae1768bbbc46 ip6_gre: fix ip6gre_err() invalid reads
  66cdd4347573 netlabel: out of bound access in cipso_v4_validate()
  f5b54446630a ipv4: keep skb->dst around in presence of IP options
  d5b6fd77519d net: use a work queue to defer net_disable_timestamp() work
  455a457780b6 stmmac: Discard masked flags in interrupt status register
  ca876dff1e8c tcp: fix 0 divide in __tcp_select_window()
  e6fbace87c7b ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim()
  a7fe4e5d0633 ipv6: fix ip6_tnl_parse_tlv_enc_lim()
  6c8556f6e114 net/sched: matchall: Fix configuration race
  64cc7ef5cf1d net/mlx5e: Fix update of hash function/key via ethtool
  adf86d59bb9b can: Fix kernel panic at security_sock_rcv_skb

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage: Fix various rpmdeps relocation issues
Richard Purdie [Mon, 13 Mar 2017 22:46:18 +0000 (22:46 +0000)]
package: Fix various rpmdeps relocation issues

There are several issues with rpmdeps after the rpm v5 -> v4 transition:
 * _rpmfc_magic_path  is an invalid option for rpm4
 * --rpmpopt is an invalid option for rpm4
 * we need to use the path to rpmrc since otherwise it poitns at the
   original build path
 * we need to set MAGIC in the environment so libmagic can find its
   files.

This patch addresses those and ensures rpmdeps works in relocated builds
from sstate (or with rm_work).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Add nc to HOSTTOOLS_NONFATAL
Richard Purdie [Tue, 14 Mar 2017 14:15:05 +0000 (14:15 +0000)]
bitbake.conf: Add nc to HOSTTOOLS_NONFATAL

This is used by some of our proxy scripts but isn't required for all
builds so add to HOSTTOOLS_NONFATAL.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotestimage: Don't use systemd.log_level=debug logging
Richard Purdie [Tue, 14 Mar 2017 07:20:38 +0000 (07:20 +0000)]
testimage: Don't use systemd.log_level=debug logging

This causes MBs of log messages which overload the standard 200kb syslog limit
used by busybox syslog by default. This means some tests which rely on messages
being detected in syslog, e.g.
rpm.RpmInstallRemoveTest.test_check_rpm_install_removal_log_file_size
fail (AssertionError: 54 not greater than or equal to 80 : Cound not find sufficient
amount of rpm entries in /var/log/messages, found 54 entries).

We enabled this to aid debugging of some systemd race issues, those are
now resolved so we can disable this. Leave the log level parameter as a
comment to save others having to look it up if they need debugging.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agou-boot: Update patch to match upstream
Richard Purdie [Mon, 13 Mar 2017 07:29:23 +0000 (07:29 +0000)]
u-boot: Update patch to match upstream

After discussions with upstream this version of the patch was proposed
and is being submitted to upstream u-boot. Update to that version
(which is better than my workaround).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosecurity_flags.inc: update to reflect smart->dnf transition
Alexander Kanavin [Mon, 20 Feb 2017 21:20:49 +0000 (23:20 +0200)]
security_flags.inc: update to reflect smart->dnf transition

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage.bbclass: don't exclude package groups from runtime mapping
Alexander Kanavin [Wed, 8 Mar 2017 11:56:04 +0000 (13:56 +0200)]
package.bbclass: don't exclude package groups from runtime mapping

This ensures that remapping happens correctly, particularly
when package groups list noarch packages, and multilib is in use. Previously
this was masked by rpm doing *another* layer of remapping on top of this.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_rpm.bbclass: do not strip multilib prefixes from package names, do not add...
Alexander Kanavin [Mon, 27 Feb 2017 15:46:18 +0000 (17:46 +0200)]
package_rpm.bbclass: do not strip multilib prefixes from package names, do not add multilib prefix to package arch

This is done for reasons I cannot establish, and greatly complicates the code
that installs packages into rootfs.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agonspr: do not use shared library symbol resolution with musl
Alexander Kanavin [Mon, 27 Feb 2017 14:25:05 +0000 (16:25 +0200)]
nspr: do not use shared library symbol resolution with musl

It breaks rpm 4.x because musl is printing an error message
when the symbol is not found, and rpm takes it as an actual error.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_rpm.bbclass: do not set the OS dynamically when building rpms
Alexander Kanavin [Mon, 27 Feb 2017 09:29:38 +0000 (11:29 +0200)]
package_rpm.bbclass: do not set the OS dynamically when building rpms

Packages need to contain just one value for the os field, otherwise
rpm will refuse to install them if they don't match what is in
/etc/rpm/platform.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_rpm.bbclass: add a /bin/sh Provides for nativesdk- packages
Alexander Kanavin [Mon, 20 Feb 2017 10:23:20 +0000 (12:23 +0200)]
package_rpm.bbclass: add a /bin/sh Provides for nativesdk- packages

nativesdk-* rpm packages all require /bin/sh because postinst scriptlets
are run with it. We can either teach rpm4 and dnf to ignore that dependency
(a lot of non-upstreamable work), or add auto-satisfy the dependency
in each package. I've chosen to do the latter.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agorun-postinsts: simplify the logic of whether to install it to images
Alexander Kanavin [Fri, 17 Feb 2017 16:47:22 +0000 (18:47 +0200)]
run-postinsts: simplify the logic of whether to install it to images

The logic is scattered all over the place, but amounts to
"install, unless the rootfs is read only". Let's express that directly.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agooe-selftest: no need to parse gpg output to determine the name of the signing key
Alexander Kanavin [Thu, 16 Feb 2017 14:36:35 +0000 (16:36 +0200)]
oe-selftest: no need to parse gpg output to determine the name of the signing key

The parsing fails on my machine, and we use a key with a hardcoded name,
and so can provide it directly.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogpg_sign.py: fix signing of rpm files using gpg
Alexander Kanavin [Tue, 14 Feb 2017 15:10:04 +0000 (17:10 +0200)]
gpg_sign.py: fix signing of rpm files using gpg

This means
a) calling rpmkeys and rpmsign instead of rpm
b) instructing gpg to run non-interactively; otherwise on my machine
it pops up windows requesting a key passphrase

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoselftest: update output checks in incremental image test to match what dnf prints
Alexander Kanavin [Fri, 17 Feb 2017 16:53:10 +0000 (18:53 +0200)]
selftest: update output checks in incremental image test to match what dnf prints

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoselftest: do not perform a full build in test_continue
Alexander Kanavin [Thu, 2 Feb 2017 13:22:46 +0000 (15:22 +0200)]
selftest: do not perform a full build in test_continue

This was fetching and building the toolchain and everything else
against empty download dir and sstate cache, and so was enormously slow.
The test does not need that, it only checks that one fetch task fails and
another succeeds when using bitbake's -k option.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_rpm.bbclass: instruct rpm to not remove the buildroot directory
Alexander Kanavin [Thu, 2 Feb 2017 13:20:41 +0000 (15:20 +0200)]
package_rpm.bbclass: instruct rpm to not remove the buildroot directory

This is the ${W}/package directory which may be reused in subsequent builds.

Also clean up various default directories rpm 4 creates.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agotestimage.bbclass: fix runtime test for rpm, port smart tests to dnf
Alexander Kanavin [Mon, 30 Jan 2017 18:03:53 +0000 (20:03 +0200)]
testimage.bbclass: fix runtime test for rpm, port smart tests to dnf

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_rpm.bbclass: no need to specify the magic file location
Alexander Kanavin [Fri, 27 Jan 2017 15:36:34 +0000 (17:36 +0200)]
package_rpm.bbclass: no need to specify the magic file location

It's handled by the rpm wrapper command, created in rpm recipe.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_rpm.bbclass: replace createrepo reference with createrepo_c
Alexander Kanavin [Thu, 26 Jan 2017 16:28:11 +0000 (18:28 +0200)]
package_rpm.bbclass: replace createrepo reference with createrepo_c

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoscripts/oe-setup-rpmrepo: replace createrepo with createrepo_c
Alexander Kanavin [Thu, 26 Jan 2017 16:07:10 +0000 (18:07 +0200)]
scripts/oe-setup-rpmrepo: replace createrepo with createrepo_c

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoscripts/rpm2cpio.sh: replace 5.x version with 4.x version
Alexander Kanavin [Thu, 26 Jan 2017 16:04:31 +0000 (18:04 +0200)]
scripts/rpm2cpio.sh: replace 5.x version with 4.x version

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agorootfs_rpm.bbclass: migrate image creation to dnf
Alexander Kanavin [Mon, 13 Feb 2017 14:44:48 +0000 (16:44 +0200)]
rootfs_rpm.bbclass: migrate image creation to dnf

To properly look at this patch, you probably need a side-by-side diff viewing tool.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agonativesdk-packagegroup-sdk-host: replace smartpm with dnf
Alexander Kanavin [Thu, 26 Jan 2017 15:42:36 +0000 (17:42 +0200)]
nativesdk-packagegroup-sdk-host: replace smartpm with dnf

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_rpm.bbclass: correctly map RRECOMMENDS and RSUGGESTS to rpm tags
Alexander Kanavin [Thu, 19 Jan 2017 17:24:37 +0000 (19:24 +0200)]
package_rpm.bbclass: correctly map RRECOMMENDS and RSUGGESTS to rpm tags

Previously they were swapped, not sure why. Their meaning, as far as rpm
world goes, is different:

- Recommends is a soft dependency and will be installed by default; there is
an option not to do that.

- Suggests is a suggestion to be picked up and presented to end user by
package management tools; it has no special meaning otherwise.

OE packages use RRECOMMENDS, which should be mapped to Recommends rpm tag,
so that the packages will be picked up as dependencies.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_manager.py: improve the API for insert_feed_uris()
Alexander Kanavin [Wed, 18 Jan 2017 13:40:33 +0000 (15:40 +0200)]
package_manager.py: improve the API for insert_feed_uris()

No need to store the configuration as class members,
just pass it directly into the method.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage_rpm.bbclass: make architecture-independent .rpm packages "noarch" instead...
Alexander Kanavin [Mon, 9 Jan 2017 14:37:28 +0000 (16:37 +0200)]
package_rpm.bbclass: make architecture-independent .rpm packages "noarch" instead of "all"

Too many places in dnf/rpm4 stack make that assumption; let's not fight against it.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agodb: remove the 6.x recipe
Alexander Kanavin [Mon, 2 Jan 2017 13:15:55 +0000 (15:15 +0200)]
db: remove the 6.x recipe

Version 6.x of Berkeley DB has been rejected by open source community due to its hostile
AGPLv3 license; both Fedora and Debian are sticking with db 5.x - and by extension,
all the open source projects are still developed and tested with db 5.x

In oe-core the only thing that was requiring db 6.x was rpm 5.x, and so there's no reason
to continue carrying db 6.x in oe-core. If someone needs API features that are only available in
db 6.x, it can be re-added to meta-oe.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopython-smartpm: remove the recipe
Alexander Kanavin [Mon, 2 Jan 2017 13:14:41 +0000 (15:14 +0200)]
python-smartpm: remove the recipe

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agodnf: add a recipe
Alexander Kanavin [Fri, 30 Dec 2016 17:01:40 +0000 (19:01 +0200)]
dnf: add a recipe

This is replacing Smart package manager, which is unsupported upstream, and has a growing
amount of issues (lack of python 3.x support in particular). We identified dnf as
the only feasible replacement.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibdnf: add a recipe
Alexander Kanavin [Fri, 30 Dec 2016 16:57:22 +0000 (18:57 +0200)]
libdnf: add a recipe

libdnf is required by dnf.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agorpm: remove 5.x recipe
Alexander Kanavin [Fri, 30 Dec 2016 16:38:51 +0000 (18:38 +0200)]
rpm: remove 5.x recipe

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agorpm: add a 4.x recipe
Alexander Kanavin [Fri, 30 Dec 2016 16:38:11 +0000 (18:38 +0200)]
rpm: add a 4.x recipe

The dnf stack is written and tested against rpm 4.x. So if we want to use dnf for packaging,
we should also use rpm 4 - there's simply too much work involved in making rpm 5 work with it due
to significant API differences, and supporting that going forward.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agocreaterepo: remove the recipe
Alexander Kanavin [Fri, 30 Dec 2016 16:35:18 +0000 (18:35 +0200)]
createrepo: remove the recipe

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agocreaterepo-c: add a recipe
Alexander Kanavin [Fri, 30 Dec 2016 16:34:07 +0000 (18:34 +0200)]
createrepo-c: add a recipe

This is the current C reimplementation/replacement of the original createrepo.
https://github.com/rpm-software-management/createrepo_c/wiki

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agorpmresolve: remove the recipe
Alexander Kanavin [Fri, 30 Dec 2016 15:59:36 +0000 (17:59 +0200)]
rpmresolve: remove the recipe

The source code is incompatible with rpm4 API - let's use rpm
binary itself for now.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibsolv: enable rpm support
Alexander Kanavin [Fri, 30 Dec 2016 15:59:17 +0000 (17:59 +0200)]
libsolv: enable rpm support

This is required by libdnf.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopackage.bbclass: fix locations of debugedit and rpmdeps utilities
Alexander Kanavin [Fri, 30 Dec 2016 15:56:17 +0000 (17:56 +0200)]
package.bbclass: fix locations of debugedit and rpmdeps utilities

rpm4 installs them in different locations than rpm5. This also replaces
our custom rpmdeps-oecore with standard rpmdeps; I'm not seeing a
significant performance penalty.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agou-boot: add option to specify FDT argument in extlinux.conf
Jack Mitchell [Sat, 11 Mar 2017 14:16:03 +0000 (14:16 +0000)]
u-boot: add option to specify FDT argument in extlinux.conf

Also fixes a use before defined bug with localdata.

Signed-off-by: Jack Mitchell <jack@embed.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agou-boot: fix extlinux creation race
Jack Mitchell [Sat, 11 Mar 2017 14:16:02 +0000 (14:16 +0000)]
u-boot: fix extlinux creation race

There was a race condition in the uboot-extlinux bbclass where
only a half written extlinux.conf would be put in the deploy
directory. Fix this by adding the deploy task after the do_install
rather than after the do_compile.

Signed-off-by: Jack Mitchell <jack@embed.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoterminal: Use original PATH for terminals
Richard Purdie [Mon, 13 Mar 2017 09:26:54 +0000 (09:26 +0000)]
terminal: Use original PATH for terminals

Now that we filter out PATH to only the utilities we rely upon, the devshel
terminal was broken since it can no longer find the terminals. Even if
we fix that, the user couldn't access any of their commands within
devshell which somewhat defeats its purpose.

Add the original PATH back to the environment to restore that behaviour
since this is more in line with user expectations and it wouldn't be possible
(or desireable) to whitelist all the commands a user might want to use from
the shell.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibcomps: add a recipe
Alexander Kanavin [Fri, 10 Mar 2017 11:23:51 +0000 (13:23 +0200)]
libcomps: add a recipe

libcomps is required by dnf.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibrepo: add a recipe
Alexander Kanavin [Fri, 10 Mar 2017 11:23:50 +0000 (13:23 +0200)]
librepo: add a recipe

librepo is needed by dnf and libdnf.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-backports-lzma: add a recipe
Alexander Kanavin [Fri, 10 Mar 2017 11:23:49 +0000 (13:23 +0200)]
python-backports-lzma: add a recipe

It is needed by dnf, and only when using Python 2.x, so can
be dropped after moving dnf/rpm4 stack to Python 3.x.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-iniparse: add a recipe
Alexander Kanavin [Fri, 10 Mar 2017 11:23:48 +0000 (13:23 +0200)]
python-iniparse: add a recipe

python-iniparse is required by dnf.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-pygpgme: add a recipe
Alexander Kanavin [Fri, 10 Mar 2017 11:23:47 +0000 (13:23 +0200)]
python-pygpgme: add a recipe

python-pygpgme is required by dnf.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosecurity_flags.inc: Update for new python modules
Alexander Kanavin [Fri, 10 Mar 2017 11:24:14 +0000 (13:24 +0200)]
security_flags.inc: Update for new python modules

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouninative: remove unneeded call to sparse copy
Stephano Cetola [Fri, 10 Mar 2017 15:15:52 +0000 (07:15 -0800)]
uninative: remove unneeded call to sparse copy

As of this commit:

39f5a05152aa0c3503735e18dd3b4c066b284107

patchelf no longer inflates file sizes. Since the files are no longer
inflated by patchelf, we can skip using cp with the --sparse option.
More details as to how patchelf has changed are available in that
commit log.

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogpgme: fix python module build and installation
Alexander Kanavin [Fri, 10 Mar 2017 11:24:23 +0000 (13:24 +0200)]
gpgme: fix python module build and installation

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobase-files: do not write the current date into /etc/issue and /etc/issue.net
Alexander Kanavin [Fri, 10 Mar 2017 11:24:22 +0000 (13:24 +0200)]
base-files: do not write the current date into /etc/issue and /etc/issue.net

This is causing a problem in multilib where base-files and lib64/32-base-files
clash because they may have different dates. Also, if the package is coming
from sstate it has an incorrect date anyway.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodb: do the multilib_header processing for db.h
Alexander Kanavin [Fri, 10 Mar 2017 11:24:21 +0000 (13:24 +0200)]
db: do the multilib_header processing for db.h

As it varies from one machine to another.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobash: package bashbug separately
Alexander Kanavin [Fri, 10 Mar 2017 11:24:20 +0000 (13:24 +0200)]
bash: package bashbug separately

It's a machine-specific script, which is causing conflicts
when multiple versions of bash are installed in multilib setting,
and it also does not really make sense for embedded systems anyway.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: do the multilib_header magic also for bits/long-double.h
Alexander Kanavin [Fri, 10 Mar 2017 11:24:19 +0000 (13:24 +0200)]
glibc: do the multilib_header magic also for bits/long-double.h

Otherwise it will cause conflicts in mutlilib setting, as it
varies from one machine to another.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglib-2.0: improve determinism for GIO ptests
Ross Burton [Fri, 10 Mar 2017 14:43:45 +0000 (14:43 +0000)]
glib-2.0: improve determinism for GIO ptests

Previously the GIO tests would be built or not depending on whether the host had
a dbus-daemon binary available.  Fix this by seeding the AC_CHECK_PROGS check
with the right value, and adding a RDEPENDS for dbus-daemon on the target.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogrep: upgrade to 3.0
Fan Xin [Fri, 10 Mar 2017 10:11:59 +0000 (19:11 +0900)]
grep: upgrade to 3.0

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocurl: upgrade to 7.53.1
Fan Xin [Fri, 10 Mar 2017 09:54:47 +0000 (18:54 +0900)]
curl: upgrade to 7.53.1

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopkgconfig: specify --disable-indirect-deps to configure
Joe Slater [Fri, 10 Mar 2017 02:01:29 +0000 (18:01 -0800)]
pkgconfig: specify --disable-indirect-deps to configure

This preserves the current behaviour because the auto
test by configure will never return yes.  ./libtool is
needed by the test and it will never exist.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopkg-utils: bump revision
Chen Qi [Fri, 10 Mar 2017 01:57:00 +0000 (09:57 +0800)]
opkg-utils: bump revision

Bump to latest revision so that update-alternatives could detect priority
conflict.

Also, we could remove the following patch because opkg-utils has already
fixed the problem in another way.

  0001-Makefile-use-defined-bindir-and-mandir-as-installati.patch

[YOCTO #8314]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic/direct.py: Avoid exception if using multiple rawcopy/no-table entries.
Kristian Amlie [Thu, 9 Mar 2017 14:37:09 +0000 (15:37 +0100)]
wic/direct.py: Avoid exception if using multiple rawcopy/no-table entries.

If we are both having a bootloader and a U-Boot environment file, we
can end up with two entries using "--source rawcopy" and "--no-table",
and since they reuse the same file [1], their cleanup handlers will
try to delete the same file twice. So make sure we only do it once.

[1] Although they reuse the same file, the resulting output is
correct, so it appears the file is accessed in properly sequential
order.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobison: Remove unused bison-2.3_m4.patch
Martin Jansa [Thu, 9 Mar 2017 10:04:17 +0000 (11:04 +0100)]
bison: Remove unused bison-2.3_m4.patch

* it was used only by bison-2.3 which was moved to meta-gplv2 layer

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsolv: upgrade to 0.6.26
Alejandro del Castillo [Wed, 8 Mar 2017 22:01:50 +0000 (16:01 -0600)]
libsolv: upgrade to 0.6.26

Drop 0001-Split-libsolvext-into-it-s-own-pkg-config-file.patch

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopkg: enable libsolv backend by default
Alejandro del Castillo [Wed, 8 Mar 2017 21:40:14 +0000 (15:40 -0600)]
opkg: enable libsolv backend by default

The libsolv backend is vastly superior than the currently enabled
internal ad-hoc solver. While the switch does have a small impact on
disk and memory footprint, it make sense to change the default as for
most cases the disk/memory footprint hit should be acceptable.

========================
Disk Footprint Increase
========================
qemux86-64  523K
qemuarm    445K
qemux86    576K

====================================================
Command [1]           Libsolv      Internal Solver
====================================================
opkg update          26.21 MB      26.21 MB
opkg list            29.87 MB      29.87 MB
opkg install procps  30.99 MB      27.33 MB
opkg remove procps    1.69 MB       1.69 MB
opkg update      30.97 MB    27.75 MB

[1] Profile done via 'valgrind --tool=massif <command>' in a feed with
~18K packages.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses: add devupstream class
Ross Burton [Fri, 11 Nov 2016 17:51:17 +0000 (17:51 +0000)]
classes: add devupstream class

This class lets you use BBCLASSEXTEND to add a variant of the recipe that
fetches from an alternative URI (such as git:) instead of a tarball.

For example:

 BBCLASSEXTEND = "devupstream:target"
 SRC_URI_class-devupstream = "git://git.example.com/example"
 SRCREV_class-devupstream = "abcd1234"

This variant will have DEFAULT_PREFERENCE set to -1 so it needs to be selected
to be used, and any development-specific tweaks can be done with the
class-devupstream override, for example:

 DEPENDS_append_class-devupstream = " gperf-native"

 do_configure_prepend_class-devupstream() {
    touch ${S}/README
 }

It currently only supports creating a development variant of the target recipe,
not native or nativesdk.  The BBCLASSEXTEND syntax (devupstream:target) was
chosen so that support for native and nativesdk can be added at a later date.

Support for other version control systems such as subversion is limited, as
bitbake's automatic fetch dependencies on for example subversion-native are not
generated.

[ YOCTO #10215 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobase/bitbake.conf: Filter contents of PATH to only allow whitelisted tools
Richard Purdie [Thu, 9 Mar 2017 00:14:38 +0000 (00:14 +0000)]
base/bitbake.conf: Filter contents of PATH to only allow whitelisted tools

We currently have a determinism problem in that the host tools present
in PATH can influence the build. In particular, the presence of pkg-config
on the build host can mask missing pkgconfig class dependencies.

This adds in a new HOSTTOOLS variable and then uses it to set up a directory
of symlinks to the whitelisted host tools. This directory is placed as PATH
instead of the usual /usr/bin:/bin and so on.

This should improve determinism of builds and avoid the issues which have
been particularly obvious since the introduction of recipe specific sysroots.

If users find there is a tool missing, they can extend HOSTTOOLS from a global
class or global conf file.

Right now the settings should be enough to build everything in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyasm: Set CCLD_FOR_BUILD to ensure BUILD_CC is used
Richard Purdie [Sat, 11 Mar 2017 10:44:04 +0000 (10:44 +0000)]
yasm: Set CCLD_FOR_BUILD to ensure BUILD_CC is used

Otherwise cc may be used which isn't correct.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agou-boot-mkimage: Fix use of 'cc' instead of BUILD_CC
Richard Purdie [Sat, 11 Mar 2017 10:37:38 +0000 (10:37 +0000)]
u-boot-mkimage: Fix use of 'cc' instead of BUILD_CC

OE needs to be able to change the default compiler. If we pass in HOSTCC
through the make command, it overwrites not only this setting but also the
setting in tools/Makefile wrapped in ifneq ($(CROSS_BUILD_TOOLS),) which
breaks the build.

We therefore add a way of changing the default in the top level Makefile
without interfering with the other setting.

I've emailed this workaround to Masahiro Yamada for discussion.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo: Add recipes for golang compilers and tools
Khem Raj [Wed, 8 Mar 2017 06:40:22 +0000 (22:40 -0800)]
go: Add recipes for golang compilers and tools

* This is converging the recipes for go from
  meta-virtualization and oe-meta-go

* Add recipes for go 1.7

* go.bbclass is added to ease out writing
  recipes for go packages

* go-examples: Add an example, helloworld written in go
  This should serve as temlate for writing go recipes

* Disable for musl, at least for now

* Disable for x32/ppc32 which is not supported

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu-gen-tapdevs: Improve help text with an example
Richard Purdie [Fri, 10 Mar 2017 12:56:16 +0000 (12:56 +0000)]
runqemu-gen-tapdevs: Improve help text with an example

Figuring how the correct commandline isn't trivial, improve the help
text with RSS in mind.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoquilt: Avoid hardcoding paths into output
Richard Purdie [Fri, 10 Mar 2017 12:26:04 +0000 (12:26 +0000)]
quilt: Avoid hardcoding paths into output

Avoids:
 quilt-0.65-r0 do_package_qa: QA Issue: /usr/lib/quilt/ptest/quilt/scripts/edmail contained in package
 quilt-ptest requires /media/build1/poky/build/tmp/hosttools/perl, but no providers found in
 RDEPENDS_quilt-ptest? [file-rdeps]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocdrtools-native: Fix when cc is missing
Richard Purdie [Fri, 10 Mar 2017 10:23:35 +0000 (10:23 +0000)]
cdrtools-native: Fix when cc is missing

If cc isn't in PATH, the recipe fails. Set a variable to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoquilt: Don't add hardcoded links to utilities
Richard Purdie [Thu, 9 Mar 2017 13:23:58 +0000 (13:23 +0000)]
quilt: Don't add hardcoded links to utilities

This triggers warnings about absolute symlink paths with the PATH changes.
In reality we simply don't need/care about these so just remove/disable
them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibpng12: Use rm instead of unlink
Richard Purdie [Thu, 9 Mar 2017 10:15:32 +0000 (10:15 +0000)]
libpng12: Use rm instead of unlink

Everything else in the system manages fine with rm, use rm instead of unlink
here too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotzcode-native: Set cc to ${CC}
Richard Purdie [Thu, 9 Mar 2017 09:48:44 +0000 (09:48 +0000)]
tzcode-native: Set cc to ${CC}

Building on a system without "cc" showed this recipe doesn't respect
the $CC variable. Fix this by passing the right option to the makefile.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotoolchain-shar-extract.sh: Ensure sbin directories are in PATH in clean environment
Richard Purdie [Thu, 9 Mar 2017 22:13:36 +0000 (22:13 +0000)]
toolchain-shar-extract.sh: Ensure sbin directories are in PATH in clean environment

For the PATH host tool whitelisting to work, the sbin directories need to be
in PATH. In the cleaned SDK environment on some distros, this isn't the case
and the SDK would then fail to setup there. This adds code to add such paths
if they do happen to be missing, ugly, but unblocks the PATH whitelisting
which I believe to be important.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agochkconfig-alternatives-native: fix obey_variables
Joshua Lock [Wed, 8 Mar 2017 17:24:14 +0000 (17:24 +0000)]
chkconfig-alternatives-native: fix obey_variables

This postfunc assumes it's run from S, whereas that seems not to always
be the case in practice. Explicitly define the full path of the file
we wish to sed.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox: ifupdown:pass interface device name for ipv6 route command
Haiqing Bai [Wed, 8 Mar 2017 09:27:30 +0000 (17:27 +0800)]
busybox: ifupdown:pass interface device name for ipv6 route command

IPv6 routes need the device argument for link-local routes, or they
cannot be used at all. E.g. "gateway fe80::def" seems to be used in
some places, but kernel refuses to insert the route unless device
name is explicitly specified in the route addition.

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: do not append to BBCLASSEXTEND
Ming Liu [Wed, 8 Mar 2017 14:17:14 +0000 (15:17 +0100)]
meta: do not append to BBCLASSEXTEND

Replace some "+=/=+" with "=" when setting BBCLASSEXTEND, they are
redundant and inconsistent with the same setting in other recipes.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer: remove git recipes
Ross Burton [Wed, 8 Mar 2017 15:51:33 +0000 (15:51 +0000)]
gstreamer: remove git recipes

Yet again these were checking out 1.8.2 tags and then trying to apply 1.10.4
patches on top.

Clearly nobody is actually using them, so delete them so they can't go stale
again.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolicense: don't assume source files are UTF-8
Ross Burton [Wed, 8 Mar 2017 14:30:13 +0000 (14:30 +0000)]
license: don't assume source files are UTF-8

We can't assume that source files are entirely UTF-8, so when copying the
license blocks open the file as binary instead of text.

[ YOCTO #11135 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc-runtime: Enable libmpx for x86-64
Mikko Ylinen [Wed, 8 Mar 2017 12:57:40 +0000 (14:57 +0200)]
gcc-runtime: Enable libmpx for x86-64

Intel MPX was recently enabled on x86 (_append_x86) but that didn't
enable it on x86-64. Explicitly enable libmpx on x86-64 too.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoe2fsprogs: expand @mkdir_p@ during configuration
Joe Slater [Tue, 7 Mar 2017 22:53:19 +0000 (14:53 -0800)]
e2fsprogs: expand @mkdir_p@ during configuration

If we do not do this, locale data will not be put
into /usr/share/locale.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssl: Fix symlink creation
David Vincent [Mon, 23 Jan 2017 13:59:16 +0000 (14:59 +0100)]
openssl: Fix symlink creation

Symlinking the openssl configuration file at install time results in
errors when overriding it using an external package which also provides
openssl-conf. This should be done as a postinstall task for such
packages.

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: filemap: Fixed spared_copy skip
Daniel Schultz [Tue, 7 Mar 2017 13:41:56 +0000 (14:41 +0100)]
wic: filemap: Fixed spared_copy skip

This patches removes the empty space in front of the copied file which
was skipped. Without this reduction it's not possible to place a
partition with rawcopy and skip parameter on a desired alignment.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: plugins: rawcopy: Fixed wrong variable type
Daniel Schultz [Tue, 7 Mar 2017 13:41:55 +0000 (14:41 +0100)]
wic: plugins: rawcopy: Fixed wrong variable type

Without the int() function this variable will be a string. This will led
to a error in Filemap on line 545 due wrong types.

> [...]
>   File
> ".../poky/scripts/lib/wic/filemap.py", line 545, in sparse_copy
>     if start < skip < end:
> TypeError: unorderable types: int() < str()

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoshadow: use config 'attr' if distro has 'xattr'
José Bollo [Tue, 7 Mar 2017 12:52:42 +0000 (13:52 +0100)]
shadow: use config 'attr' if distro has 'xattr'

When DISTRO_FEATURES has 'xattr' the shadow package
now automatically activates its config 'attr'.

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoconf/machine/include: enable hardfloat by default for ARMv6 and above
Andre McCurdy [Mon, 6 Mar 2017 23:29:48 +0000 (15:29 -0800)]
conf/machine/include: enable hardfloat by default for ARMv6 and above

Defaulting to softfp probably isn't the best choice anymore,
especially as there are now ARM BSP layers which leave DEFAULTTUNE
entirely up to the distro:

  https://lists.yoctoproject.org/pipermail/yocto/2017-February/034637.html

Also add 't' to the ARMv7 default DEFAULTTUNEs, since there's no
clear reason to default to ignoring ARM_INSTRUCTION_SET for ARMv7.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodropbear: drop support for DSA host keys in dropbear init script
Andre McCurdy [Tue, 7 Mar 2017 01:42:25 +0000 (17:42 -0800)]
dropbear: drop support for DSA host keys in dropbear init script

Bring the dropbear init script into sync with the systemd service
file (dropbearkey.service supports RSA host keys only) and with
recent versions of openssh which deprecate DSA host keys.

  https://www.gentoo.org/support/news-items/2015-08-13-openssh-weak-keys.html

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosanity.bbclass: allow s3 protocol when sanity checking MIRRORS, etc
Andre McCurdy [Mon, 6 Mar 2017 22:34:06 +0000 (14:34 -0800)]
sanity.bbclass: allow s3 protocol when sanity checking MIRRORS, etc

Bitbake now supports an Amazon AWS S3 fetcher:

  http://git.openembedded.org/bitbake/commit/?id=6fe07ed25457dd7952b60f4b2153d56b15d5eea6

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agovulkan: Add recipe for Vulkan common loader
Jussi Kukkonen [Wed, 8 Mar 2017 13:21:52 +0000 (15:21 +0200)]
vulkan: Add recipe for Vulkan common loader

Add a recipe for vulkan loader library and the vulkaninfo binary.

Vulkan can be built to support X11 or wayland or both. There is
currently no support for building tests, validation layers or even
the demos as that would require a bunch of otherwise unnecessary
dependencies.

Fix the build on musl by defaulting to getenv() if secure_getenv()
is not available.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomesa: Enable vulkan driver for intel
Jussi Kukkonen [Tue, 28 Feb 2017 09:26:57 +0000 (11:26 +0200)]
mesa: Enable vulkan driver for intel

PACKAGECONFIG "vulkan" enables building libvulkan_intel.so.
The radeon driver can be added to recipe as well but it requires
llvm so recent that I couldn't test it.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosstate.bbclass: update .siginfo atime
Ed Bartosh [Mon, 6 Mar 2017 15:31:00 +0000 (17:31 +0200)]
sstate.bbclass: update .siginfo atime

.siginfo files are not being accessed from local or NFS-mounted
sstate mirrors when sstate package is installed, so their atime
is not updated. If sstate mirror is cleaned based on access time,
they get deleted, even though they are still being used.

Updated atime of .siginfo symlinks with 'touch -a'. This command
dereferences symlinks pointing to the local mirror and updates
atime of the .siginfo file on the mirror.

[YOCTO #10857]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oeqa/selftest/bbtests: update test_non_gplv3 to use selftest-ed
Joshua Lock [Wed, 8 Mar 2017 17:24:17 +0000 (17:24 +0000)]
lib/oeqa/selftest/bbtests: update test_non_gplv3 to use selftest-ed

GPLv2 recipes have been moved to a new layer (meta-gplv2), instead of
readline perform this test on the selftest-ed recipe in meta-selftest
which has gplv2 and gplv3 variants.

Tested with oe-selftest -r bbtests.BitbakeTests.test_non_gplv3

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oeqa/selftest/oescripts: make test_cleanup_workdir use selftest-ed
Joshua Lock [Wed, 8 Mar 2017 17:24:16 +0000 (17:24 +0000)]
lib/oeqa/selftest/oescripts: make test_cleanup_workdir use selftest-ed

Use a recipe which is bundled in the meta-selftest layer for this test,
rather than relying on OE-Core remaining static (or updating the tests
when OE-Core changes recipes).

Tested with oe-selftest -r oescripts.TestScripts.test_cleanup_workdir

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa-selftest: add selftest-ed recipes
Joshua Lock [Wed, 8 Mar 2017 17:24:15 +0000 (17:24 +0000)]
meta-selftest: add selftest-ed recipes

The oe-selftest oescripts.TestScripts.test_cleanup_workdir was using
gzip and the GPLv2 variant to test cleanup of the workdir. This broke
with the removal of GPLv2 recipes from OE-Core.

Instead of relying on recipes in OE-Core remaining static we should
ensure that meta-selftest provides recipes required for the tests to pass.
To that end we take a copy of the current GPLv2 and GPLv3 variants of ed
and include them in meta-selftest as new recipes.
We chose ed over gzip as gzip has dependencies which would require
additional GPLv2 recipes to be included in meta-selftest.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc-runtime: Fix QA issue
Martin Jansa [Wed, 8 Mar 2017 10:03:15 +0000 (11:03 +0100)]
gcc-runtime: Fix QA issue

ERROR: gcc-runtime-6.3.0-r0 do_package: QA Issue: gcc-runtime: Files/directories were installed but not shipped in any package:
  /usr/lib/libmpxwrappers.la
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
gcc-runtime: 1 installed and not shipped files. [installed-vs-shipped]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agozlib: Upgrade 1.2.8 -> 1.2.11
Peter Marko [Mon, 27 Feb 2017 19:26:37 +0000 (20:26 +0100)]
zlib: Upgrade 1.2.8 -> 1.2.11

Licence updated by removing its first line which was containing
copyright notice including year, which could change quite often.
Additional empty line was deleted, too.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd.bbclass: drop obsolete code
Maxin B. John [Tue, 28 Feb 2017 09:41:15 +0000 (11:41 +0200)]
useradd.bbclass: drop obsolete code

Cleanup useradd class by removing the code made obsolete by
the introduction of Recipe Specific Sysroot.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-arch: Lock the toolchain to use gcc compiler
Khem Raj [Thu, 2 Mar 2017 16:54:16 +0000 (08:54 -0800)]
kernel-arch: Lock the toolchain to use gcc compiler

kernel and external modules are still using gcc to build

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorelocate_sdk.py: skip debug files from relocation
Nikunj Kela [Tue, 14 Feb 2017 18:15:28 +0000 (18:15 +0000)]
relocate_sdk.py: skip debug files from relocation

Debug files only have debug symbols hence don't need
to be relocated. Relocation script throws errors when
run on the debug files. This change skips these files
that have zero size.

(From OE-Core rev: 132e8bfd499c713eb63075fd6380317b60f0bd27)

Signed-off-by: Nikunj Kela <nkela@cisco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemu: display: CVE-2016-9912
Sona Sarmadi [Fri, 3 Mar 2017 11:51:42 +0000 (12:51 +0100)]
qemu: display: CVE-2016-9912

virtio-gpu: memory leakage when destroying gpu resource

Reference:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-9912

Reference to upstream patch:
http://git.qemu-project.org/?p=qemu.git;a=patch;h=b8e23926c568f2e963af39028b71c472e3023793

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>