Commit Graph

30946 Commits

Author SHA1 Message Date
Richard Purdie c919acf345 poky-floating-revisions: SRCREV never worksin PREFERRED_VERSION, remove bad example
(From meta-yocto rev: 42e89dca7916e033c278d5bd71cd283b9dd7d1da)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:59:06 +01:00
Robert P. J. Day 6d08e5bb09 bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional.
(Bitbake rev: 587b144ee409d444494d8d7f2d1c53ede8f7c953)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:45 +01:00
Olof Johansson 91083de4cb bitbake: depexp: don't use undefined variable 'logging'
This fixes an issue when trying to use depexp without specifying a
recipe. Before change:

  $ bitbake -g -udepexp
  Traceback (most recent call last):
    File ".../bitbake/bin/bitbake", line 382, in <module>
      ret = main()
    File ".../bitbake/bin/bitbake", line 370, in main
      return ui_module.main(server_connection.connection, server_connection.events, configParams)
    File ".../bitbake/lib/bb/ui/depexp.py", line 201, in main
      logger.error(cmdline['msg'])
  NameError: global name 'logger' is not defined

After change:

  $ bitbake -g -udepexp
  Please specify a package name for dependency graph generation.

(Bitbake rev: 984ad90b2f1e29634dc79803a4a0404ab0534039)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:45 +01:00
Richard Purdie 6962cd8394 bitbake.conf: Drop unused MKTEMP* variables
(From OE-Core rev: 2bfe071d141117ddf41eade5404a0d27c349bbe8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:45 +01:00
Richard Purdie 1a76648ec9 package: Disable runtime mapping of RPROVIDES/RCONFLICTS/RREPLACES
It doesn't really make sense to run the remapping code on these
variables. If specific renaming is needed, it should be applied
manually. This means that the debian RPROVIDES of the original package
name can be preserved. There was also a bug report about this on the
OE-Core mailing list recently where someone else ran into this problem
too.

(From OE-Core rev: a0cd18ff5405b63b8296b8ef1fc2a488b906f576)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:45 +01:00
Richard Purdie ff6ab056c7 package: Don't remap names in packagegroup recipes
For package groups, use the original package names and don't use the
remapped (e.g. debian) naming.

(From OE-Core rev: afde71e8784144f05cebb0bdeeff6b3184819362)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:44 +01:00
Richard Purdie 3694f05ef0 debian: Set RPROVIDES to include the original packagename when renaming
Currently its hard for a packagegroup recipe to depend on something who's name
can change unpredictably. We therefore add in RPROVIDES for the original
package name so that these are also available to use as dependencies.

(From OE-Core rev: 3409c4379559afbb1d1d29045582995147a33bbc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:44 +01:00
Richard Purdie c490ba0a93 sstatesig: Only squash dependencies for allarch packagegroups
The idea of squashing packagegroup dependencies was to avoid allarch
packages rebuilding upon tune/arch changes. Now that the allarch class
inclusion is conditional, we can narrow down the packagegroup squashing
to be specifically applied to allarch recipes.

(From OE-Core rev: bd8018792155ae842952432900c8431feeaffe30)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:44 +01:00
Richard Purdie 9e213ddea2 packagegroup: Move inherit packagegroup to after PACKAGE_ARCH
This means these classes now avoid the allarch inherit entirely.

(From OE-Core rev: a56aed2e6e1b73bffd2bf82145fe48b82fde9292)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:44 +01:00
Richard Purdie 9541ec7b55 allarch: Add warning about packagegroup
Since we want to start including this class conditionally, detect cases
where packagegroup files use the old ordering and inform the user they
need to update this.

(From OE-Core rev: 30aaada4b79fc1acad5fdaba98071b63c52b9e05)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:44 +01:00
Richard Purdie 4f3f34deaf packagegroup: Make allarch inherit conditional
Make the allarch inherit conditional on PACKAGE_ARCH being left as
all. The one downside to this approach is that recipes need to set
PACKAGE_ARCH *before* inheriting the class in order to avoid the inherit.

The advantage is that we could start to detect the use of the
allarch inherit in the sstatesig code for improved task checksums.

(From OE-Core rev: 9c826962ec8fa45c2b035427442b90a41517144e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25 08:57:44 +01:00
Armin Kuster be8a7abb19 nettle: add nettle to tracking
add note on regarding nettle upgrade

V2: add missing '_pn'
  : more description.
Nettle version 3.0.0 breaks gnutls build do
to api changes. Updating to nettle 3.0 is on
gnutls roadmap
https://www.gitorious.org/gnutls/pages/Plan3_4

(From meta-yocto rev: 3cf0833b08329c734da9ea4330eedea9b3431299)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:02:00 +01:00
Bernhard Reutner-Fischer 21f41f6c43 bitbake: cooker: tweak CookerCollectFiles::find_bbfiles
since python-2.5 string.endswith() takes a tuple

(Bitbake rev: 86a67a1fd4244da9343dbf14deed1ad0d3003f32)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:02:00 +01:00
Hongxu Jia cf385a5587 guile: workaround ice ssa corruption while DEBUG_BUILD
Add:
MACHINE = "qemux86-64"
DEBUG_BUILD = "1"
to local.conf and there was a ssa corruption to build guile:
..
Unable to coalesce ssa_names 48 and 3476 which are marked as MUST COALESCE.
sp_48(ab) and  sp_3476(ab)
guile-2.0.11/libguile/vm-engine.c: In function 'vm_debug_engine':
guile-2.0.11/libguile/vm.c:673:19: internal compiler error: SSA corruption
 #define VM_NAME   vm_debug_engine
                   ^
guile-2.0.11/libguile/vm-engine.c:39:1: note: in expansion of macro 'VM_NAME'
 VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
...

Tweak libguile/vm-i-system.c to check the value of nshuf to workaround it.
The tweak didn't change previous logic.

[YOCTO #6411]

(From OE-Core rev: 3470bbf4ae178479bd090d7191d6f0469f154b0d)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:02:00 +01:00
Hongxu Jia ffb4933475 puzzles: fix do_compile failed when DEBUG_BUILD
There were compiling failure with option -g -O
...
././gtk.c: In function 'configure_area':
././gtk.c:397:2: error: 'cr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  cairo_set_source_rgb(cr,
  ^
././gtk.c:384:14: note: 'cr' was declared here
     cairo_t *cr;
              ^
././gtk.c: In function 'main':
././gtk.c:2911:6: error: 'error' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      fprintf(stderr, "%s: %s\n", pname, error);
      ^
cc1: all warnings being treated as errors
...

Initialized the pointers 'cr' and 'error' with NULL

[YOCTO #6410]

(From OE-Core rev: 2281180499cf3bec5c7e75cb596725dab190f72c)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:02:00 +01:00
Richard Purdie 28e3f8ca6f fixup
(From OE-Core rev: 20992e8a00c585ab6b0611ca23ccd57e2b86b727)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Hongxu Jia f026b7a211 busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)
Build busybox on mips with -g -O, there is a ice failure:
...
shell/ash.c:8758:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:21264
...
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
{standard input}: Assembler messages:
{standard input}: Warning: missing .end at end of assembly
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
...

The following line caused the ice failure on mips:
...
void evaltreenr(union node *, int) __attribute__ ((alias("evaltree"),__noreturn__));
...
So remove evaltreenr which was a alias of evaltree, and use evaltree
to instead.

[YOCTO #6625]

(From OE-Core rev: e9e2884a29e95703c5b1a2fffe5e6febfa77b5cd)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Paul Barker de963051ee opkg: Add runtime dep on gnupg if 'gpg' is in PACAKGECONFIG
The 'opkg-key' utility requires gpg to manage the list of trusted keys. The
ability to verify package signatures is not much use without the ability to add
keys to the trusted list...

(From OE-Core rev: ebd7dce320dfdbac449b60e23cfe41125b658319)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Paul Barker 26b2233ebd gpgme: Add pkg-config file
A basic gpgme.pc file is installed with gpgme which should allow the library to
be found and used using pkg-config rather than gpgme-config.

(From OE-Core rev: 066eb8fbfd90f1a5af01a8f63adbe0cd2ae8cb5c)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Hongxu Jia 94c9b0285a bind: refer ubuntu/redhat to add bind user/group
We refer what ubuntu/redhat did, gave bind a user/group

Here is the example in ubuntu 14.04:

$ ps -eo user,group,cmd | grep "named"
...
bind     bind     /usr/sbin/named -u bind
...

$vim bind9_1%3a9.9.5.dfsg-3_amd64.deb/postinst
...
    # lets give them a bind user/group in all cases.
    getent group bind >/dev/null 2>&1 || addgroup --system bind
    getent passwd bind >/dev/null 2>&1 ||
    adduser --system --home /var/cache/bind --no-create-home \
        --disabled-password --ingroup bind bind
...

(From OE-Core rev: e37841faf746895f41627130623196c0bebe0740)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Laszlo Papp 7361876845 ptest-runner: return 1 instead of zero if any test fails
It is better to know this information from the exit code rather than parsing
test specific outputs.

(From OE-Core rev: d6b1c9e7e29aaa8d71ccb485b7a88863a117a8b1)

Signed-off-by: Laszlo Papp <lpapp@kde.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Richard Tollerton fd0aa6af62 udev-cache: parametrize sysconf file paths
The udev-cache facility uses files that represent system states, to
ensure that the cache tarball is valid to apply. These paths were
hardcoded in several places; collect them into SYSCONF_CACHED and
SYSCONF_TMP.

(From OE-Core rev: f4fcb237da0d1013005e9a0bb2381cfeb4c5316c)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Richard Tollerton 7c56a5e728 udev-cache: Don't ignore error messages from cache extract
Previous changes should obviate all known spurious errors coming out of
tar. Since real extraction failures can and will occur, stop redirecting
stdout/stderr to /dev/null.

Take this opportunity to also remove an unnecessary subshell.

(From OE-Core rev: 09089962be353280201ba3899fd5ef9cc3c0ba32)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Richard Tollerton ab5c95ffbf udev-cache: omit sockets and filesystems mounted under /dev
Archiving sockets causes tar to report an error and return a nonzero
exit status. Archiving a mounted filesystem is harmless, but may greatly
bloat the size of the cache tarball, and wastes time on boot.

To fix these issues, use `find` to only include the files we want, which
are the file types that udev will create (block/char devices and
symlinks) that are on the same filesystem as /dev.

While we're at it, remove a subshell by archiving /dev as an absolute
path. However, `tar` will complain about stripping the leading slash on
stderr. To inhibit this, `cut` out the leading slash.

An alternative solution is to use `tar --exclude`, but that is modestly
more brittle, since we'd need to explicitly list every socket and
filesystem to exclude. Note that `tar --one-file-system` is
GNU-specific, and tar implementations generally have nothing equivalent
to `find -type`.

If using busybox `find`, this change requires CONFIG_FEATURE_FIND_TYPE=y
and CONFIG_FEATURE_FIND_XDEV=y. If using busybox `tar`, this change
requires CONFIG_FEATURE_TAR_FROM=y.

(From OE-Core rev: e89df123e2ec516ae61763eab3c9e78e067e28d5)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Richard Tollerton 79f5a3bc58 udev-cache: strip timestamps on extract
Under normal udev operation, device nodes are obviously timestamped
based on the system time at current boot. However, when using
udev-cache, they are timestamped from a previous boot.

The existence of machines lacking RTCs makes this more than a cosmetic
issue: if the current time is set further on in the boot, so that the
system time is still 1970 by the time the cache is extracted, tar will
print a timestamp warning for every extracted file (potentially hundreds
of them).

To fix, use -m on extract.

If using busybox `tar`, this commit requires
CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y.

(From OE-Core rev: b31f8f1f053cdfa9428e3f667c05e7e2c600061e)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:59 +01:00
Richard Tollerton 4f597a81f3 busybox: enable `tar -m`
CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y is needed for the commit
"udev-cache: strip timestamps on extract". Enabling this flag increases
the size of busybox by 0 bytes on x86.

(From OE-Core rev: 11a772b3297ef36f3ebc4b67c9477022352d1c55)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Richard Tollerton bcab1f832f udev-cache: choose a more descriptive cache filename
"/etc/dev.tar.gz" doesn't adequately imply that udev-cache maintains it.
Instead, call it "/etc/udev-cache.tar.gz".

(From OE-Core rev: b33c678e2a5d42138a15b69802c5ddd109cb3b55)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Richard Tollerton 8c423bf995 udev-cache: Compress the cache
$DEVCACHE is observed to be 100k uncompressed; compressing it reduces
its size to ~5k. But compress it outside of `tar` so that archival
operation takes as little time as possible, to minimize the risk of
devices being created/removed during execution.

(From OE-Core rev: 571df6ddba1caa6805f7c96cd592eea399c2aee2)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Richard Tollerton bd7fb7c3ca udev-cache: Update cache tarball atomically
Overwriting the tarball in-place could cause a partial write, if the
system stops at an inopportune time. This is mitigated by first writing
to a temporary file, then moving that file on top of the final location.

(From OE-Core rev: 5dbf43fe32a1cf259f9379a7d2c008260eabf3ac)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Bruce Ashfield 8d59fca331 linux-yocto/3.14: feature merges and configuration updates
As part of LTSI efforts, the 3.14 kernel is receiving feature backports
from newer kernels.

With this change, we update the 3.14 SRCREVs to make the following
changes available:

 - full nohz backports (v3.16)
 - loopback NFS (v3.16)
 - numa updates (v3.16)
 - cgroups: vm_cgroup: basic infrastructure
 - cgroups: Resource controller for open files

And the following configuration change:

 - meta: features/ieee802154: add configuration fragment for IEEE 802.15.4
 - meta: features/bluetooth: add configuration fragment for Bluetooth support
 - meta: intel-common-standard: add ericson-3g to intel-common-standard.scc
 - cgroups: enable virtual memory resource controller
 - full nohz: Enable full dynticks system for nohz

(From OE-Core rev: fe2f51571f97e2cceae974f6a18782025e080c32)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Bruce Ashfield 29f428d726 linux-yocto/3.14: cgroups and hugetlb updates
Update SRCREVs for the following feature ports:

    d61940e2aaee fs/hugetlbfs/inode.c: remove null test before kfree
    01a9d1b96a67 fs/hugetlbfs/inode.c: use static const for dentry_operations
    b58086c38038 fs/hugetlbfs/inode.c: add static to hugetlbfs_i_mmap_mutex_key
    182a45b35b74 fs/hugetlbfs/inode.c: complete conversion to pr_foo()
    a3c4b02bbb05 mm: hugetlb: fix copy_hugetlb_page_range()
    3757fbab4c89 hugetlb: rename hugepage_migration_support() to ..._supported()
    4d91ab2d26a0 mm, hugetlb: move the error handle logic out of normal code path
    49ea68f6eb8b hugetlb: add support for gigantic page allocation at runtime
    78dcff916fdf hugetlb: move helpers up in the file
    07b911e0a765 hugetlb: update_and_free_page(): don't clear PG_reserved bit
    d38ffe086659 hugetlb: add hstate_is_gigantic()
    46b2dd4acbaa hugetlb: prep_compound_gigantic_page(): drop __init marker
    8b4da9338c22 hugetlb: ensure hugepage access is denied if hugepages are not supported
    450e7d23d98c mm/hugetlb.c: add NULL check of return value of huge_pte_offset
    370cd4423fc4 mm, hugetlb: mark some bootstrap functions as __init
    31f0f8869bc9 mm, hugetlb: improve page-fault scalability
    f57f488c939b mm, hugetlb: use vma_resv_map() map types
    3263ee955d10 mm, hugetlb: remove resv_map_put
    92067ee5ebfd mm, hugetlb: fix race in region tracking
    30e1ab0b7502 mm, hugetlb: improve, cleanup resv_map parameters
    2d5919397a7b mm, hugetlb: unify region structure handling
    a36af1327d41 Fix [RFC] cgroups: Resource controller for open files.
    7dc531576e41 cgroups: Resource controller for open files.

(From OE-Core rev: 37fb3b84f701b88e95d6a3e2efccc46e8c01c1cf)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Bruce Ashfield 2cc9643ac2 linux-yocto/3.14: fix common clock framework support in PCI glue layer
The initial version of "spi/pxa2xx: Add common clock framework support in PCI glue layer"
enables the baytrail series of processors, but breaks some existing users of
the framework.

There's a new version of the patch out for review, so we revert the broken one and
udpate to the latest.

(From OE-Core rev: beae066d5af96e78d3bbaa52884922cb39bb48fd)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Bruce Ashfield 4045d61468 linux-yocto/3.14: KASLR and VDSO backports
Updating the 3.14 linux-yocto SRCREVs for feature backports:

   6cfe9c448741 x86, kaslr: boot-time selectable with hibernation
   881a5f5812fd x86, kaslr: fix module lock ordering problem
   121ec40d905d x86, kaslr: randomize module base load address
   6efd2d21273c x86, vdso: Add 32 bit VDSO time support for 64 bit kernel
   642441e17072 x86, vdso: Add 32 bit VDSO time support for 32 bit kernel
   1d8dd2e617d4 x86, vdso: Patch alternatives in the 32-bit VDSO
   353f3eadb16d x86, vdso: Introduce VVAR marco for vdso32
   5e6e6ec6eb5c x86, vdso: Cleanup __vdso_gettimeofday()
   91efa61ed6c2 x86, vdso: Replace VVAR(vsyscall_gtod_data) by gtod macro
   f9c259ee1b2f x86, vdso: __vdso_clock_gettime() cleanup
   63d9b1c4ec72 x86, vdso: Revamp vclock_gettime.c
   e3a8ed44c964 mm: Add new func _install_special_mapping() to mmap.c
   02a67e32e58d x86, vdso: Make vsyscall_gtod_data handling x86 generic
   d076cfb68504 x86, vdso, xen: Remove stray reference to FIX_VDSO
   949153696c99 x86_32, mm: Remove user bit from identity map PDE
   e5cf7dfec74d x86, vdso: Remove compat vdso support

(From OE-Core rev: 00dcb084682b7599f2a3e69dcb4978cbb38f5c58)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Bruce Ashfield d4fbc5402a linux-yocto/3.14: update to v3.14.13
Updating from 3.14.5 -> 3.14.13 to pick up the latest series of korg
stable updates.

(From OE-Core rev: bb1b6b7e580d5dfebf8aa424bff83f9ccadfba19)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Bruce Ashfield 321cb592ef linux-yocto/3.14: add ARM kprobes support
Adding the following commits to the 3.14 tree for ARM kprobe support:

   c1750e55eb75 ARM: add uprobes support
   33e8a1334afe ARM: Make arch_specific_insn a define for new arch_probes_insn structure
   b1d3feead083 ARM: Add an emulate flag to the kprobes/uprobes instruction decode functions
   84b5b70a01a2 ARM: Change the remaining shared kprobes/uprobes symbols to something generic
   624e5e9aab5a ARM: Rename the shared kprobes/uprobe return value enum
   7741eac39c2e ARM: Change more ARM kprobes symbol names to something more generic
   47f51bac6a2d ARM: Make the kprobes condition_check symbol names more generic
   3af2f454bb8e ARM: Remove use of struct kprobe from generic probes code
   a31964d3143a ARM: use a function table for determining instruction interpreter action
   6de77767abfc ARM: move generic thumb instruction parsing code to new files for use by other feature
   eb2db188b856 ARM: Move generic arm instruction parsing code to new files for sharing between features
   bbc0a43ff46e ARM: move shared uprobe/kprobe definitions into new include file
   f5f2896020e6 uprobes: allow ignoring of probe hits
   cb133db6bd60 ARM: Fix missing includes in kprobes sources

(From OE-Core rev: 835bb10d07d1a64119379e9837dd853dacfe79bc)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:58 +01:00
Bruce Ashfield 2ffbc2729a linux-yocto: intel-common: Enable Industrial IO
Updating the META branch SRCREV to import iio configuration settings.

(From OE-Core rev: bb8cada68e70b1246a76046a37ba57a3ca7aedde)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:57 +01:00
Robert Yang 0ae7b58060 sanity.bbclass: check the format of MIRRORS
Check the format of MIRRORS, PREMIRRORS and SSTATE_MIRRORS:
* Each mirror shoudl contain two memebers.
* The local "file://" url must use absolute path (file:///).
* The protocol must in protocols list.

(From OE-Core rev: c8c213bb25b137cf70ba8ce9a45e60065d926735)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:57 +01:00
Robert Yang eb34d6650b sanity.bbclass/kernel.bbclass: minor fixes
Fixed:
- Remove an unused line
- Remove unneeded code after d.getVar(), we don't need the "or ''" after
  d.getVar() unless we need a string.
- typo: PREMIRROS -> PREMIRRORS.

(From OE-Core rev: 7849e50107a27b0ff2aaac47480ac1a0a79533dc)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:57 +01:00
Armin Kuster dfb55758d2 gmp: ppc64 build issue
tmp-gcd_1.s: Assembler messages:
| tmp-gcd_1.s:94: Error: unsupported relocation against BMOD_1_TO_MOD_1_THRESHOLD
| make[2]: *** [gcd_1.lo] Error 1

V2: fixed PN name

(From OE-Core rev: add84a15023d6c277340d6ab4810c605fab01e00)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:57 +01:00
Paul Barker c8910783b5 mc: Fix musl build failure
The CTRL macro just needs to be defined.

(From OE-Core rev: 27b63e39413b1bc5209270ffcd4888e9a4795ad1)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:57 +01:00
Peter Seebach 65fa712ae9 libc-common.bbclass: rename ALL the packages
The DEBIAN_NAMES feature renames some of the libc packages to
"libc6*" names --but only some. A previous patch added the -dbg
package. However, this doesn't cover other packages (such as
the -doc package), and it didn't take multilibs into account.

(From OE-Core rev: 64362a8f7ad7534515a9448445606581f3c572f6)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:57 +01:00
Chong Lu c448f2d0d1 expect: fix shared object file cannot be opened
When we require Expect package in tcl script, we will get following error:

couldn't load file "/usr/lib/expect5.45/libexpect5.45.so": /usr/lib/expect5.45/libexpect5.45.so: cannot open shared object file: No such file or directory
    while executing
"load /usr/lib/expect5.45/libexpect5.45.so"
    ("package ifneeded Expect 5.45" script)
    invoked from within
"package require Expect"
    (file "hello.tcl" line 3)

This patch fixes this issue.

(From OE-Core rev: 43813ddfa8cade9ea1c5de24dcd4e275b1486cff)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:57 +01:00
Chen Qi 2bdd294283 sudo: remove volatile configuration file
The new version of sudo has fixed the problem and will create the
directory if it doesn't exist. So the configuration file is no longer
needed.

(From OE-Core rev: 7c962ca5d01ae4b9f511bb2b3b7700f970051727)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 23:01:57 +01:00
Richard Purdie 5a3a7e0f74 bitbake: siggen: Fix a subtle bug in hash calculation for shared work tasks
With a shared work task like gcc, the task can be run from a variety of
different recipes which may have different virtual extensions in place.

Depending on whether gcc-runtime or nativesdk-gcc-runtime's do_preconfigure
task is called for example will change the sorting of the task hashes due
to the way clean_basename currently works.

The correct thing to do here is sort on the base filename first, then any
extension when ordering the hashes. This means we do account for things
like recipes with both a native and non-native dependency but we also fix
the shared work case where we don't care whether it was a virtual version
or not.

(Bitbake rev: 2e80b5d10a5037ed6f0bc227a1f9b42529c87086)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 09:31:42 +01:00
Richard Purdie d33cc89e53 bitbake: process: Further improve robustness against server shutdown
Currently, if an exception occurs in an event handler, the server shuts
down but the UI simply hangs. This happens in two places, firstly waiting
for events and secondly, sending events to a server which no longer exists.

The latter does time out, the former does not. These patches improve
both code sections to check if the main server process is alive and if not,
trigger things to shut down gracefully. This avoids the timeout in the
command sending case too.

This resolves various cases where the UI would simply hang indefintely.

(Bitbake rev: ac418e1112ff5f9c3157569316902f7a27fba4b4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 09:31:42 +01:00
Richard Purdie 8683c244c1 bitbake: utils: Add workaround for multiprocessing bug
Our usage of multitprocessing is problematic. In particular, there is a bug
in python 2.7 multiprocessing where signals are not handled until command
completion instead of immediately.

This adds a workaround into our wrapper function to deal with the issue.

(Bitbake rev: a16185e602b39b71475aa7e9ee80ad2b1f28d0f7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 09:31:42 +01:00
Richard Purdie ecf72a7132 bitbake: command: Trigger updateCache to shut down any active parser threads
If we trigger a shutdown whilst parsing for whatever reason, in some
cases we were not closing down the parser threads. This change
ensures we do so. The function names are not entirely intuitive
but the behaviour is more correct (and commented). The previous bug
with the stdout failure would trigger this one, if there was a cold
cache and parsing was required (but not otherwise).

(Bitbake rev: 25bfa2478f1c3a8eb695e1e5760e06db5be8f2fc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 09:31:42 +01:00
Richard Purdie c501492132 bitbake: bitbake-worker: Improve sigterm handler
When processes terminate, we really want all of the child processes to
terminate too. This was not happening for worker processes which spawned their
own multiprocessing pools, leading to build hangs. This change ensures any
sigterm gets passed to the whole process group. In local tests, this resolved
some hanging process workloads I could generate. It does rely on signals
being delivered in a timely fashion and there is a multiprocessing bug we have
to work around there.

(Bitbake rev: 96f8ea07ace1379380fab2d78eb592fa40c867d4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 09:31:42 +01:00
Richard Purdie a4f077b1fe bitbake: knotty: Improve exception handling
Currently, IOErrors are just passed over due to the broken Exception
clause. A command like "bitbake X | <invalid command>" would break stdout
triggering a traceback. With these changes we print the exceptions, shut down
the server gracefully and exit which is a much nicer behaviour and is less
confusion to the user.

(Bitbake rev: 9544108f7b413038d871ce6ca88232de2f2434d9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 09:31:42 +01:00
Richard Purdie db50630948 bitbake: process: Deal with infinite looping of the server
Currently if an exception occurs, we just run the idle handler again and
again, usually looping indefintely. Chances are the exception that occurred
will keep occuring and this is not a good place to be.

This was breaking the autobuilders with gigabytes of logs.

At least improve things so the cooker shuts down gracefully when this happens.
Some trace of the original problem may still be present on the console too!

(Bitbake rev: 1f28d8d3311262427938180435b68f0a35c2b330)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23 09:31:42 +01:00