Commit Graph

38643 Commits

Author SHA1 Message Date
Saul Wold 6740dd5579 qemu.inc: Add rng-tools to qemu images
This patch adds rng-tools to MACHINE_EXTRA_RRECOMMENDS so that can be
used to provide the additional entropy to prevent hangs in getrandom()
for qemu images

[YOCTO #8681]
[YOCTO #8816]

(From OE-Core rev: cb512c0c189f5a1196da233042113a708243daa0)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-15 16:28:43 +00:00
Saul Wold ce3df21122 rng-tools: Import recipe from meta-openembedded
Adding this recipe to oe-core will allow it to be used by qemu to
provide a way to generate additional entropy needed to fix hangs
with getrandom().

Additional kernel config options have already been added to the
default qemu kernel configs.

[YOCTO #8681]
[YOCOT #8816]

(From OE-Core rev: 030bc0b2f9636f5cacef29c939b323569cd5673f)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-15 16:28:43 +00:00
Pascal Bach 36b43b233c lib/oe/terminal: set workdir for konsole terminal
It seems that if the --workdir option is not set konsole does open in the users
home directory. By setting --workdir . konsole opens in the recipes work
directory. This is the same behavior as observed for other consoles.
(Tested with Konsole 2.14.2 on Debian Jessie).

(From OE-Core rev: bd06944249c3de3f629c013e14f446464441c4da)

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:19 +00:00
Maxin B. John 03e1950f55 mmc-utils: upgrade to latest git version
Removed 0001-mmc.h-don-t-include-asm-generic-int-ll64.h.patch

Instead of that patch, define __SANE_USERSPACE_TYPES__ to avoid
compile errors due to conflicting types for '__u64' in MIPS64/PPC64

(From OE-Core rev: 819541253d63b14bb6a5fd4cafdd2b6fa16f4ca3)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:19 +00:00
Khem Raj b5b8003a0b ltp: Upgrade to 20160126 and fix build on musl
pass -D__SANE_USERSPACE_TYPES__ to CFLAGS

MIPS64/PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h
prevents 64-bit userland from seeing this definition, instead
defaulting to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__
to get int-ll64.h included.

(From OE-Core rev: d17984eda9635f98d4472019d4af83f661b4dfe7)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:19 +00:00
Jens Rehsack f6b39575fb initscripts: start urandom after populate-volatiles
In case of read-only rootfs, populoate-volatiles might be used to create
some links (or bind-mounts) required for having a writable /var/lib.

(From OE-Core rev: 1f07dcfcecbd42f947b83c6f75d1a66186bcad68)

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:19 +00:00
Jens Rehsack 85ac8eb473 initscripts: populate-volatiles.sh: add mount-bind feature
Add ability to run "mount --bind" to populate-volatiles. Since several
programs use realpath to determine several full qualified file names,
there is no symlink to be resolved. So when speccing /run/lock - that's
the location - not /var/run/lock because of the program is smarter
than the operator/distributor.

See https://github.com/rehsack/meta-jens/blob/jethro/recipes-core/initscripts/initscripts/volatiles
for an example how to use the "b" feature.

(From OE-Core rev: ab42fcaf1427a29c31ac2e93965e20849b1b1234)

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:19 +00:00
Ross Burton be5b72cf27 libdrm: don't detect components that have been disabled
We pass --disable-cairo-tests but if cairo is in the sysroot it is detected and
used, which causes problems in mass builds as cairo could be removed whilst
libdrm is being built.

(From OE-Core rev: 71882b061bad55f4ad62c7d235a4a629dd74dda8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:19 +00:00
Richard Purdie 5fc5996c23 buildhistory: Fix regex to handle versions without spaces
Its valid to have dependencies like XXX (=2.1) without spaces, as injected
by debian.bbclass. The code was breaking these into separate components
and destroying them so improve the regex to handle them.

(From OE-Core rev: 613e96b06202f31870be411ca45b44237ae55b1c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:19 +00:00
Richard Purdie 7c3d4c033e debian: Fix superfluous setting for RPROVIDES
PKG_ can be set to something like ${MLPREFIX}<name> and the lack of expansion here
means the case where MLPREFIX is empty leads to a bogus RPROVIDES.

Use expansion of the variable to avoid this.

(From OE-Core rev: 056339c32a9ff0735d39cae216663147cdbb275c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:19 +00:00
Richard Purdie 2eba066ccb autotools: Fix interaction with bitbake -b
If you run bitbake -b on something using autotools with dependencies on

m4 files, it currently fails as the TASKDEPDATA is incomplete for
bitbake -b
and this means the relevant macros aren't found.

Work around this by adding *all* m4 files for the -b case (and show a warning).

[YOCTO #8890]

(From OE-Core rev: 60207e0cf3a5bce9123d3631a10a9540c72a9034)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:18 +00:00
Richard Purdie 9c8fee9c62 autotools: Correct dependency search logic error
We go to the effort of finding the value of start, we should then use it
rather than relying on the value of dep being preserved from the previous
loop. Took me far too long to notice this issue when changing the code.

Also drop an unused variable.

(From OE-Core rev: c546cced50ce8b72fe55f9a7cfe7fdb23c51d1ad)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-14 11:42:18 +00:00
Maxin B. John 971fafba6a maintainers.inc: include libjpeg-turbo and mmc-utils
Include libjpeg-turbo and mmc-utils packages in the list.

(From meta-yocto rev: f89dbf8a83c557d1612c67bea5535e7b82f218f5)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-12 18:03:47 +00:00
Richard Purdie 4e0b33413f scripts/runqemu-internal: Work around qemux86 PAT bugs in linux 4.4.1
Since the upgrade of qemux86 to 4.4.1 we're seeing PAT issues when
starting the X server. We need to fix the problem but the failing
sanity tests mask out other issues and we need a workaround.

Merge this for now until we can figure out the full issue. This is
better than changing the kernel defconfig or reverting to old
kernel versions.

(From OE-Core rev: 2749ba318bf322cb5014689532372473004e92b9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-12 18:03:46 +00:00
Richard Purdie 283a302774 sanity: Bump minimum version to 1.29.0
This requires the python expansion changes and allow SRCPV
to work correctly without errors.

(From OE-Core rev: 40efff29ad458937222c3dbeba070c525103907c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-12 13:44:46 +00:00
Richard Purdie 1c2d632a02 bitbake: Bump version post release to 1.29.0
(Bitbake rev: da1107a2c2331b3335c7bd46821edcb1933a0ff8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-12 13:44:22 +00:00
Patrick Ohly a12dcc4a1d base.bbclass: fix support for gitsm://
Before the "Improve handling of SRCPV" change, gitsm SRC_URI entries
were merely missing a dependency on git for do_fetch. But after that
change, the special handling for "needsrcrev" was not applied, leading
to a fetcher error (older bitbake) or even a parse error (recent
bitbake).

(From OE-Core rev: 41d06f512504cb24bb727308d08490b8741f332d)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-12 08:57:35 +00:00
Alejandro Hernandez bc72f64eb4 linux-yocto: Update SRCREV for genericx86* for 4.4
Upgrades to stable LINUX_VERSION 4.4.1

(From meta-yocto rev: 2b2ddbbb313becd6db886e0d2136f6db2cf404e5)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:58:38 +00:00
Alejandro Hernandez be89a1d7e2 linux-yocto: Update SRCREV for genericx86* for 4.1
Upgrades to stable LINUX_VERSION 4.1.17

(From meta-yocto rev: f62c6fad03c91c6135a7d797efcc34f1c23e2da3)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:58:38 +00:00
Bruce Ashfield 4a8d20ae4d poky: update qemu* to prefer 4.4 kernel
4.4 is out and has had enough mileage to be the default for the
qemu machines. Tested with sato, minimal and kernel dev image
types.

(From meta-yocto rev: 99a698b1cc00ed1a4e2f2344c13db11da5f0d466)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:57:19 +00:00
Bruce Ashfield d255f4f72a linux-yocto/4.1: galileo backports and support
Updating the 4.1 branches with backported mainline support for the
galileo.

   a5327464dad9 iio: light: add support for ROHM BH1710/BH1715/BH1721/BH1750/BH1751 ambient light sensors
   7a868ce12675 pwm-pca9685: enable ACPI device found on Galileo Gen2
   9f169f0f6493 at24: enable ACPI device found on Galileo Gen2
   8b662e6343a1 gpio: pca953x: support ACPI devices found on Galileo Gen2
   a9939d26a6a0 gpio: pca953x: store driver_data for future use
   52355b7a7fee mfd: intel_quark_i2c_gpio: support devices behind i2c bus
   ba850c2a9965 mfd: intel_quark_i2c_gpio: load gpio driver first
   8b322e7df2bf mfd: core: redo ACPI matching of the children devices
   23c1fb4bc37d i2c / ACPI: Rework I2C device scanning
   f7eea071b03c gpio / ACPI: Return -EPROBE_DEFER if the gpiochip was not found
   bdc90004c8d5 GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use
   447db37b6df9 gpio / ACPI: Add support for retrieving GpioInt resources from a device
   edce965b0881 i2c: fix leaked device refcount on of_find_i2c_* error path
   f9b93689fdf5 i2c: core: only use set_scl for bus recovery after calling prepare_recovery
   a10a703575bd i2c: core: Reduce stack size of acpi_i2c_space_handler()
   ad91512127cd i2c: core: fix typo in comment
   b16ba95782f1 i2c: check for proper length of the reg property
   028a8d9209b7 i2c: slave: add error messages to slave core
   58551fe2320d i2c / ACPI: Assign IRQ for devices that have GpioInt automatically
   85153945ad9e i2c / ACPI: Use 0 to indicate that device does not have interrupt assigned

(From OE-Core rev: 2ff6c2ca2e22eaef37ccb4025bc0b78c42695eed)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:57:19 +00:00
Bruce Ashfield fdcb373de1 linux-yocto/4.1: update to v4.1.17
Updating to the -stable korg release with the following changes:

   2d5f6b041335 Linux 4.1.17
   d17367a77457 recordmcount: Fix endianness handling bug for nop_mcount
   1f6d936d33f4 arm64: restore bogomips information in /proc/cpuinfo
   705164dbe08f mn10300: Select CONFIG_HAVE_UID16 to fix build failure
   57b7d61c2d89 fix the regression from "direct-io: Fix negative return from dio read beyond eof"
   8885e7f3d76a direct-io: Fix negative return from dio read beyond eof
   b824d64b153a media/vivid-osd: fix info leak in ioctl
   3f0cf7dcf712 staging: lustre: echo_copy.._lsm() dereferences userland pointers directly
   b50a2b556d1e HID: core: Avoid uninitialized buffer access
   c777e9ab2a44 parisc iommu: fix panic due to trying to allocate too large region
   e479822e1e3a iommu/vt-d: Fix ATSR handling for Root-Complex integrated endpoints
   f21731a54a66 arm64: mm: ensure that the zero page is visible to the page table walker
   3e804c36399e arm64: Clear out any singlestep state on a ptrace detach operation
   426bfb6a7784 ARM/arm64: KVM: correct PTE uncachedness check
   3f0b20e1a2d8 arm64: fix building without CONFIG_UID16
   f94cf332a806 arm64: KVM: Fix AArch32 to AArch64 register mapping
   959cad3a68a7 ARM/arm64: KVM: test properly for a PTE's uncachedness
   75f1fde24b56 arm64: kernel: pause/unpause function graph tracer in cpu_suspend()
   f22c64cd0745 arm64: bpf: fix mod-by-zero case
   40c5dde6eb7e arm64: bpf: fix div-by-zero case
   8831ded35abd recordmcount: arm64: Replace the ignored mcount call into nop
   a33b8ff3d6cb powerpc/module: Handle R_PPC64_ENTRY relocations
   1e2c53f19cef scripts/recordmcount.pl: support data in text section on powerpc
   4126ac7cdcef powerpc: Make {cmp}xchg* and their atomic_ versions fully ordered
   af69fe1f70af powerpc: Make value-returning atomics fully ordered
   1e14dd5a3864 powerpc/powernv: pr_warn_once on unsupported OPAL_MSG type
   a54d3a423412 powerpc/tm: Check for already reclaimed tasks
   567a215dd158 powerpc/tm: Block signal return setting invalid MSR state
   eeca98948d8c xfrm: dst_entries_init() per-net dst_ops
   139bd872dc68 xen-netfront: update num_queues to real created
   a1edfa789d1a xen-netfront: respect user provided max_queues
   21edf40b5ccb xen-netback: respect user provided max_queues
   534e9016cd88 sctp: Prevent soft lockup when sctp_accept() is called during a timeout event
   490c963c1eb9 team: Replace rcu_read_lock with a mutex in team_vlan_rx_kill_vid
   95785b105fa2 batman-adv: Drop immediate orig_node free function
   ae3eb44e0e8b batman-adv: Drop immediate batadv_hard_iface free function
   924224c6e44a batman-adv: Drop immediate neigh_ifinfo free function
   620493a90c78 batman-adv: Drop immediate batadv_neigh_node free function
   9d188c6b672c batman-adv: Drop immediate batadv_orig_ifinfo free function
   34c5bf7c7bf4 batman-adv: Avoid recursive call_rcu for batadv_nc_node
   016cb1d02db9 batman-adv: Avoid recursive call_rcu for batadv_bla_claim
   a50a93cc9928 ppp, slip: Validate VJ compression slot parameters completely
   5984398539a2 isdn_ppp: Add checks for allocation failure in isdn_ppp_open()
   9ba3d77689a5 tcp/dccp: fix old style declarations
   479b539a3101 tcp/dccp: fix timewait races in timer handling
   332fb8799ed1 bridge: fix lockdep addr_list_lock false positive splat
   2980502b9f6d ipv6: update skb->csum when CE mark is propagated
   dc1cfcc26697 net: bpf: reject invalid shifts
   2a1e5e4ab662 phonet: properly unshare skbs in phonet_rcv()
   7d9fb947be67 bonding: Prevent IPv6 link local address on enslaved devices
   abefd1b4087b net: preserve IP control block during GSO segmentation
   4bb526bce19d udp: disallow UFO for sockets with SO_NO_CHECK option
   e7bbeacbafc1 tcp_yeah: don't set ssthresh below 2
   add92082e2d1 ipv6: tcp: add rcu locking in tcp_v6_send_synack()
   bcea43fb3164 net: sctp: prevent writes to cookie_hmac_alg from accessing invalid memory
   a33704eb6085 vxlan: fix test which detect duplicate vxlan iface
   8f5cd6eea811 net: possible use after free in dst_release
   02a1fef61d06 net: sched: fix missing free per cpu on qstats
   5596242a6263 net: filter: make JITs zero A for SKF_AD_ALU_XOR_X
   a6b1d2489380 bridge: Only call /sbin/bridge-stp for the initial network namespace
   dc6b0ec667f6 unix: properly account for FDs passed over unix sockets
   f45f0213b831 connector: bump skb->users before callback invocation
   c000d76ec0d8 sctp: sctp should release assoc when sctp_make_abort_user return NULL in sctp_close
   45d52b0b1f9f net: cdc_ncm: avoid changing RX/TX buffers on MTU changes
   6866b52c56db addrconf: always initialize sysctl table data
   8a39e24931d1 ipv6/addrlabel: fix ip6addrlbl_get()
   57d0c018b46e veth: don’t modify ip_summed; doing so treats packets with bad checksums as good.
   3fabd53542c8 xhci: refuse loading if nousb is used
   3f5e25aa380d USB: cp210x: add ID for ELV Marble Sound Board 1
   887c3cc2557b USB: ipaq.c: fix a timeout loop
   a7e83b16c8d8 USB: fix invalid memory access in hub_activate()
   5241134a79fa airspy: increase USB control message buffer size
   abcbfda367d4 usb: xhci: fix config fail of FS hub behind a HS hub with MTT
   1f6a2cc39913 ASoC: compress: Fix compress device direction check
   20091f9139bc ASoC: arizona: Fix bclk for sample rates that are multiple of 4kHz
   6ac84206a212 ASoC: davinci-mcasp: Fix XDATA check in mcasp_start_tx
   1fce19176555 ASoC: wm8974: set cache type for regmap
   5a1109e05e09 ASoC: es8328: Fix deemphasis values
   64fa05313b0a ASoC: wm8962: correct addresses for HPF_C_0/1
   1c98861e6467 ASoC: rsnd: fixup SCU_SYS_INT_EN1 address
   b309c8bf5a4a ALSA: timer: Handle disconnection more safely
   2b332719b8f0 ALSA: hda - Flush the pending probe work at remove
   a63fabd4ac6c ALSA: hda - Fix bass pin fixup for ASUS N550JX
   efcf073d7fa1 ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0
   965b1203f399 ALSA: hrtimer: Fix stall by hrtimer_cancel()
   281bedb8728f ALSA: pcm: Fix snd_pcm_hw_params struct copy in compat mode
   d1a55757feff ALSA: seq: Fix snd_seq_call_port_info_ioctl in compat mode
   dc5697eb3297 ALSA: timer: Fix double unlink of active_list
   ac905ca58370 ALSA: timer: Fix race among timer ioctls
   042b42c579b9 ALSA: hda - fix the headset mic detection problem for a Dell laptop
   466c99bd815a ALSA: timer: Harden slave timer list handling
   27b496cc9e8c ALSA: usb-audio: Fix mixer ctl regression of Native Instrument devices
   6aee1f8440bf ALSA: hda - Fix white noise on Dell Latitude E5550
   49c9eb3db864 ALSA: seq: Fix race at timer setup and close
   9a6003a362ac ALSA: seq: Fix missing NULL check at remove_events ioctl
   aa13585b6672 ALSA: usb: Add native DSD support for Oppo HA-1
   37191bd8b4dd ALSA: hda/realtek - Fix silent headphone output on MacPro 4,1 (v2)
   b40f630cfe4d ALSA: hda - Set SKL+ hda controller power at freeze() and thaw()
   73a5fdacba1f ALSA: usb-audio: Add sample rate inquiry quirk for AudioQuest DragonFly
   271126c7cbb6 ALSA: usb-audio: Add a more accurate volume quirk for AudioQuest DragonFly
   228a0e09d53a ALSA: hda - Set codec to D3 at reboot/shutdown on Thinkpads
   be7c9844eea1 ALSA: hda - Apply click noise workaround for Thinkpads generically
   dff55bf1b247 ALSA: hda - Add a fixup for Thinkpad X1 Carbon 2nd
   bc4d35b2c8c7 ALSA: hda - Fix noise problems on Thinkpad T440s
   c5e609dc5cab ALSA: hda - Add inverted dmic for Packard Bell DOTS
   af95ff49d83b ALSA: rme96: Fix unexpected volume reset after rate changes
   9bc3da2497b3 ALSA: hda - Fix noise on Gigabyte Z170X mobo
   842dd2467a24 ALSA: hda - Add fixup for Acer Aspire One Cloudbook 14
   5c7e814c1b3a ALSA: hda - Apply HP headphone fixups more generically
   c397bc975aa4 ALSA: fireworks/bebob/oxfw/dice: enable to make as built-in
   055fb07950be ALSA: hda - Apply pin fixup for HP ProBook 6550b
   29923678a8ef ALSA: hda - Add Intel Lewisburg device IDs Audio
   e702f5856baa ALSA: hda - Disable 64bit address for Creative HDA controllers
   69bed67bc32f ipmi: move timer init to before irq is setup
   8dfca273353b ipmi: Start the timer and thread on internal msgs
   c1a631b482a7 x86/mm: Improve switch_mm() barrier comments
   ae535caf02c7 x86/mm: Add barriers and document switch_mm()-vs-flush synchronization
   4b6c3a55305d x86/boot: Double BOOT_HEAP_SIZE to 64KB
   eec2baa86479 x86/reboot/quirks: Add iMac10,1 to pci_reboot_dmi_table[]
   17f33d468f4d KVM: x86: correctly print #AC in traces
   8a3185c54d65 KVM: x86: expose MSR_TSC_AUX to userspace
   e052d6eeedf1 KVM: PPC: Book3S HV: Prohibit setting illegal transaction state in MSR
   19eaffefc4b0 KVM: svm: unconditionally intercept #DB
   03e572f3dda7 KVM: VMX: fix SMEP and SMAP without EPT
   c12a3752a390 x86/xen: don't reset vcpu_info on a cancelled suspend
   702d87e2ff77 xen/gntdev: Grant maps should not be subject to NUMA balancing
   3ab6a090acfb x86/signal: Fix restart_syscall number for x32 tasks
   c24eedeca7b8 x86/mpx: Fix instruction decoder condition

(From OE-Core rev: 8dd87247c224877c2948364048b736abc8e633e7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:57:19 +00:00
Bruce Ashfield 5688cab6d4 linux-yocto/4.4: update to v4.4.1
Integrating the 4.4.1 stable korg update.

(From OE-Core rev: 1a6e4c4a4c6c4556580a08a2040baa54a64eb10e)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:57:18 +00:00
Ed Bartosh f9f93ae856 bitbake: cooker: gracefully shutdown parsers
CookerParser.shutdown code doesn't do all required work to shutdown
parser processes. As a result bitbake hangs if interrupted during
parsing. Putting None into the parser_quit queue should fix this issue
as it makes parsers to quit main loop.

(Bitbake rev: f67307977e8f089ce6d208d3e9de2a6a1768757e)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:34:19 +00:00
Elliot Smith 1f7f077466 bitbake: buildinfohelper: unset brbe variable when build finishes
The brbe variable is set on the bitbake server when the Toaster
UI starts. This enables Toaster to associate events with the
correct build and build environment.

However, the brbe variable is also used when a build starts to
identify whether a new build needs to be created, or an existing
one looked up. This causes a bug for command-line builds which
happen after a Toaster-triggered build: because the brbe variable
is never unset on the server or the buildinfohelper, the new
command-line build events are treated as originating from the
previous build.

Ensure the brbe variable is reset when the buildinfohelper "closes"
a build, so that each build then either sets the brbe variable
(Toaster-triggered builds) or leaves it blank (command-line builds).

Also modify the localhostbecontroller so that the brbe variable
is not set on the server and not looked up from the server. This
ensures that it is only set when the triggerBuild() method is
called, and that it remains as None for command-line builds.

[YOCTO #9021]

(Bitbake rev: 4a6a8d0074f62208d843b06344be31ae73d9b745)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:34:19 +00:00
Aníbal Limón 9a6cb10d4a nativesdk-buildtools-perl-dummy.bb: Fix variable expansion in python code
Since python expansion of bb data variables is disable in order to
provide a standard interface usage for expand variables this variables
aren't expanded now so change to call d.expand('${VAR}').

This API expansion change was causing to install perl in nativesdk.

(From OE-Core rev: cb7a3f997d7278eb6e31ea79ad933a7ab1717977)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:40 +00:00
Aníbal Limón 5e978d7ed8 classes/testsdk: do_testsdkext avoid STAGING_DIR/BASE_WORKDIR in PATH
The inclusion of STAGING_DIR/BASE_WORKDIR in PATH is contaminating
the environment, i.e. when try to sanity check perl (check_perl_modules)
it takes perl from STAGING_DIR causing eSDK install to fail.

(From OE-Core rev: 32611395e1da21f6f7f7916fb8077e35ee81bb23)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:40 +00:00
Andre McCurdy f56e9aa9a0 freetype: update 2.6.2 -> 2.6.3
Update LICENSE.TXT hash due to minor rewording to clarify licensing
of fthash.c and fthash.h files. No changes to overall licensing.

Other changes from the upstream changelog:

  I. IMPORTANT CHANGES

    - Khmer,  Myanmar, Bengali,  and Kannada  script support  has been
      added to the auto-hinter.

  II. MISCELLANEOUS

    - Better  support of  Indic  scripts like  Devanagari  by using  a
      top-to-bottom hinting flow.

    - All  FreeType macros  starting  with two  underscores have  been
      renamed to  avoid a violation of  both the C and  C++ standards.
      Example: Header  macros of the  form `__FOO_H__' are  now called
      `FOO_H_'.  In most cases,  this should be completely transparent
      to the user.   The exception to this  is `__FTERRORS_H__', which
      must be  sometimes undefined by  the user to get  FreeType error
      strings:  Both this  form and  the new  `FTERRORS_H_' macro  are
      accepted for backwards compatibility.

    - Minor improvements mainly to the Type 1 driver.

    - The  new CFF  engine now  supports all  Type 2  operators except
      `random'.

    - The macro `_STANDALONE_', used for  compiling the B/W and smooth
      rasterizers  as   stand-alone  modules,  has  been   renamed  to
      `STANDALONE_', since macro names starting with an underscore and
      followed by an uppercase letter are reserved in both C and C++.

    - Function  `FT_Library_SetLcdFilterWeights'  now  also  activates
      custom LCD filter weights (instead of just adjusting them).

    - Support for  `unpatented hinting'  has been  completely removed:
      Consequently,  the two  functions `FT_Face_CheckTrueTypePatents'
      and  `FT_Face_SetUnpatentedHinting'  now  return  always  false,
      doing nothing.

    - The `ftgamma' demo  program has been modernized;  the gamma grid
      display has been moved from `ftview' to this program.

    - It is now possible to  cycle through the available LCD fitlering
      modes.

(From OE-Core rev: 798aa553e46e0141c8998399820510812d5e51b7)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:40 +00:00
Andre McCurdy 1ba1aa33f5 freetype: minor formatting improvements
No functional changes.

(From OE-Core rev: 77c8871c165c36a70f77b76ff6bd4c2b8be63e96)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:40 +00:00
Ross Burton 0d5e611f37 piglit: upgrade SRCREV
Upgrade the SRVREV to a slightly more up-to-date revision, this time from
2015-02-19.  This commit in particular was chosen as it's the one before Piglit
gained a hard dependnecy on python-six, which isn't yet in oe-core.

(From OE-Core rev: 8ea17ed6337df4c7bb7b48a51f5e07b5ba6f3f71)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:40 +00:00
Armin Kuster 72c6b6257f libbsd: Security fix and update 0.8.2
This update includes:
CVE-2016-2090 Heap buffer overflow in fgetwln function of libbsd

libbsd 0.8.1 and earlier contains a buffer overflow in the function
fgetwln(). An if checks if it is necessary to reallocate memory in the
target buffer. However this check is off by one, therefore an out of
bounds write happens.

Upstream has released version 0.8.2 to fix this.

(From OE-Core rev: 29053ff82bf28da45eef9d7e85d6d3ce7060daf6)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:39 +00:00
Andre McCurdy 78be954e90 gstreamer1.0-plugins-bad_git: fix gst_structure_get() etc compiler warnings
| ../../../gst-plugins-bad-1.7.1/sys/decklink/gstdecklinkaudiosrc.cpp: In function 'gboolean gst_decklink_audio_src_set_caps(GstBaseSrc*, GstCaps*)':
 | ../../../gst-plugins-bad-1.7.1/sys/decklink/gstdecklinkaudiosrc.cpp:315:59: error: missing sentinel in function call [-Werror=format=]
 |	    g_object_get (videosrc, "connection", &vconn, NULL);
 |							      ^
 | cc1plus: all warnings being treated as errors

For GStreamer functions declared with G_GNUC_NULL_TERMINATED,
ie __attribute__((__sentinel__)), gcc will generate a warning if the
last parameter passed to the function is not NULL (where a valid NULL
in this context is defined as zero with any pointer type).

The C callers to such functions within gst-plugins-bad use the C NULL
definition (ie ((void*)0)), which is a valid sentinel.

However the C++ NULL definition (ie 0L), is not a valid sentinel
without an explicit cast to a pointer type.

(From OE-Core rev: 4ffc1c6ea67e65c21964fa119820b37725f5a5de)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:39 +00:00
Andre McCurdy fdd89795e2 gstreamer1.0-plugins-good_git: fix gst_structure_get() compiler warning
| ../../../gst-plugins-good-1.7.1/ext/taglib/gstid3v2mux.cc: In function 'void add_image_tag(TagLib::ID3v2::Tag*, const GstTagList*, const gchar*, guint, const gchar*)':
 | ../../../gst-plugins-good-1.7.1/ext/taglib/gstid3v2mux.cc:468:63: error: missing sentinel in function call [-Werror=format=]
 |			GST_TYPE_TAG_IMAGE_TYPE, &image_type, NULL)) {
 |								  ^
 | cc1plus: all warnings being treated as errors

gst_structure_get() is declared with G_GNUC_NULL_TERMINATED, ie
__attribute__((__sentinel__)), which means gcc will generate a
warning if the last parameter passed to the function is not NULL
(where a valid NULL in this context is defined as zero with any
pointer type).

The C code callers to gst_structure_get() within gst-plugins-good
use the C NULL definition (ie ((void*)0)), which is a valid sentinel.

However gstid3v2mux.cc uses the C++ NULL definition (ie 0L), which
is not a valid sentinel without an explicit cast to a pointer type.

(From OE-Core rev: 91c4b8278da274a8bc1213b7cd51a1a372f218d3)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:39 +00:00
Alejandro Hernandez a23a50ee01 python-setuptools: Add python-compile on RDEPENDS
When trying to install packages using python-setuptools, compilation
may fail complaining about the py_compile module not existing, this
presented itself when installing pyephem for example, this patch
adds python-compile to setuptools RDEPENDS to fix the issue.

[YOCTO 9009]

(From OE-Core rev: 1348fe26a182330475ca163e87205dc162fb3f6a)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:39 +00:00
Armin Kuster 914ff148fa qemu: Security fix CVE-2016-2198
CVE-2016-2198 Qemu: usb: ehci null pointer dereference in ehci_caps_write

(From OE-Core rev: 33b5c3b4822b6bbb06ad5fdf7a120acd520f665d)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:39 +00:00
Armin Kuster 093835335e qemu: Security fix CVE-2016-2197
CVE-2016-2197 Qemu: ide: ahci null pointer dereference when using FIS CLB engines

(From OE-Core rev: bbc41337d28cc54d115378d4cad32f7b1c6f6cd5)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:39 +00:00
Andre McCurdy 1f3e1d1e3f curl: add PACKAGECONFIG options for less common / legacy protocols
As a result of this commit, the following protocols will now be
disabled by default:

  DICT GOPHER IMAP IMAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP

Also add a PACKAGECONFIG option for libidn (previously disabled
unconditionally).

(From OE-Core rev: b26634900d487a22eef41e9e077d35fb347d4c29)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 22:33:39 +00:00
Mihail Stanciu 19045bab71 toaster: tests Remove symlinks from toasteruitest folder
Remove symlinks in the UI tests folder as they are causing
problems for bitbake upstream.

[YOCTO #8787]

Signed-off-by: Mihail Stanciu <stanciux.mihail@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 17:07:39 +00:00
Aníbal Limón 738a9b7cc3 classes/sanity: check_perl_modules provide output when fail
When check_perl_modules fail is a good idea to print perl
interpeter output for debug purposes.

(From OE-Core rev: 9e0ee11a59c545dba45947b7675f5bcef489a7c8)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:34:29 +00:00
Paul Eggleton e64ce73b7e oe-selftest: devtool: add another devtool add test
Add a test so we validate the following recently implemented/fixed
aspects of "devtool add":

* Adding from a local directory with no name specified
* Auto-detecting the name and version from autoconf files
* Setting SRC_URI and S from the local git repo
* Showing the recipe file path in "devtool status" if it has been
  created within the workspace

Incidentally also tests:

* LICENSE and LIC_FILES_CHKSUM detection (though just for this piece of
  software)
* Extracting a dependency from autoconf (though just for this narrow
  case since there's only one)

(From OE-Core rev: d991fe7f17861dc5c21f7eac30d8c912b4d5dbed)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:03 +00:00
Paul Eggleton a5095d146d recipetool: create: set S when we set SRC_URI from local git repo
If you specify a local directory which happens to be a git repository
with an origin remote (and it is in fact remote), we can use that for
SRC_URI as implemented by OE-Core revision
b143d414846854dc8b3e0a47358daf5646eded38, however we also need to set S
if the recipe is going to be of any use fetching from that SRC_URI
later.

(From OE-Core rev: 8bbbd2d63f1bc752f9a30054a089dc2caf5fd84c)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:03 +00:00
Paul Eggleton ca5a36cbd1 recipetool: create: convert http git URLs that don't end in .git but contain /git/
When recipetool create is given a URL that starts with http(s):// and
contains /git/, such as the URLs at git.yoctoproject.org, it's fairly safe
to assume it's a git repository and not something that should be fetched
with wget, so rewrite the URL.

(From OE-Core rev: 3ca04757a670e8b6f78799cc0454d75691809ac4)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:03 +00:00
Paul Eggleton 4c71afb378 recipetool: create: ensure URL parameters don't make it into the name
When auto-detecting the name for a recipe from the URL, strip off any
parameters (";name=value...") before parsing the URL, otherwise this
just ends up in the recipe name which is undesirable.

(From OE-Core rev: d3c46b5d0abd56bcadd4f2f1ef985f13d67f605b)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:03 +00:00
Paul Eggleton 86f3464b47 devtool: add: fix adding from a local source directory
Fix a regression introduced in in OE-Core revision
aedfc5a5db1c4b2b80a36147c9a13b31764d91dd where specifying a local source
tree without specifying a name resulted in a traceback.

Fixes [YOCTO #9086].

(From OE-Core rev: 67ea9d21f20a371a0ee443b46326018cb1527b62)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:03 +00:00
Paul Eggleton fa50153bc2 devtool: modify: make -x the default behaviour
It's going to be more common for users not to have the prepared source
tree for a recipe already, so the default behaviour ought to be to
extract it for them from the recipe. Change the default to extract
(effectively making the -x option a no-op) and add a --no-extract/-n
option to disable it. Later we can look at trying to be smart and
reusing an existing source tree instead of erroring out if it exists;
for now this is just the default reversal.

(From OE-Core rev: 80a44e52609a89d9ffe816181ae193af491c06ac)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:03 +00:00
Paul Eggleton f767757b3e recipetool: create: determine name/version from github/bitbucket URLs
Both BitBucket and GitHub provide "release" downloads that unfortunately
don't include the actual project name. For recipetool this means we have
to have special handling for these URLs or else the current code assumes
the name of the project is something like "v0.9.1". Borrow and adapt
some code from autospec to do this, and put it in its own function for
clarity.

(From OE-Core rev: e8435fde7f82c39cc0efe1d4bf043b29f63898e9)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:03 +00:00
Paul Eggleton d94c7e367c recipetool: create: support cmake find_library directive
CMake supports a find_library() directive to find named libraries, so
detect dependencies from this.

(From OE-Core rev: d0265bc67f797ee4b7760cf37335994133809abf)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:03 +00:00
Paul Eggleton ddfe74447b devtool: commit for extra tasks that modify source when extracting
When extracting source for a recipe, if there are additional custom
tasks run that make changes to the source, create a commit in the
generated git branch so they are contained. This is particularly
useful for tasks that come before do_patch since otherwise the changes
might get incorporated in the first applied patch, but otherwise it
helps avoid the tree being dirty at any point.

Fixes [YOCTO #7626].

(From OE-Core rev: 997a77d9b20af1778b804778e5d8c8a7424f7582)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:02 +00:00
Paul Eggleton e36cb6c718 classes/externalsrc: create symlinks for workdir and logs
Auto-create symlinks in the source directory to the work directory
(${WORKDIR}) and logs directory (${T}) so that they are easier for the
user to find. This is particularly useful within the extensible SDK
where the user is less likely to be familiar enough with the structure
of the build system to know where to find these things, but otherwise
they are a useful shortcut for anyone.

(From OE-Core rev: 58adb3904c18acefd0da319e32f66ebca72eeaac)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:02 +00:00
Paul Eggleton 20034c3f7a classes/externalsrc: disable rm_work when active
If you're using externalsrc, it's very likely that you're going to want
to examine the intermediate build results even if the recipe builds
successfully; therefore you won't want rm_work to delete those.

(From OE-Core rev: c0867a425166086624bcffa231a1497291f860cb)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-11 12:33:02 +00:00