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.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

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>
mc: Fix musl build failure

The CTRL macro just needs to be defined.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
linux-yocto: intel-common: Enable Industrial IO

Updating the META branch SRCREV to import iio configuration settings.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

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>
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.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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".

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>
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.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>