base.bbclass: fix PACKAGECONFIG handling code

PACKAGECONFIG flag code only handles that when it has 3 or 4 items in flag,
it may have a stale data if some flags doesn't need DEPENDS and RDEPENDS.

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
kernel.bbclass: Preserve generated headers

asm/unistd.h includes asm/unistd_64.h on x86_64
and asm/unistd_32.h on i386 but these files are
generated files in 3.4 and when we do 'make clean' they get
deleted and it shows up as an error when building
external modules. May be its a 3.4 kernel bug may be not
but make clean should have left the tree in
a shape to build modules but it does not.

Probably we should run make modules_prepare after having
run make clean.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
linux-yocto: bump version to 3.4.7

The v3.4.7 -stable update has been released, updating all in-tree
BSPs to this new baseline.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
linux-yocto/3.4: BSP, uprobes, config and cleanups

Updating the linux-yocto 3.4 recipe with consolidated fixes, BSPs
and cleanups.

From the kernel meta branch:

  28bcd46 meta: move emgd features to staging
  6c01949 meta: Crystal Forest Machine Created.
  3c19c4d meta/qemuppc: remove redundant profiling options
  a5da4d5 meta: kgdb: update configuration for out of box functionality
  1d13e00 meta: update status/series and patches for v3.4
  b96c408 fsl-mpc8315e-rdb: replace leading dot with hash in cfg file
  7c9a3b0 usb: fix scc and cfg filename collision with ktypes/base/
  aa0e1f6 kconfig: make CONFIG_BLOCK=y part of base config
  3d1a2f2 kconfig: add tty/serial file to hardware listing
  60b600f routerstationpro: specify chosen filesystems in audit input.
  8b5c8c7 routerstationpro: add config data for audit purposes
  d7ae8fa meta: add ath79 Kconfig to hardware listing.

And from the standard branch:

  c77666c powerpc: uprobes: removed external declaration of uprobe_get_swbp_addr.
  c262f3e powerpc: Uprobes port to powerpc
  d40e73d powerpc: Add trap_nr to thread_struct
  6a64190 Revert "This is the port of uprobes to powerpc. Usage is similar to x86."
  e422119 Revert "powerpc: uprobes: removed external declaration of uprobe_get_swbp_addr."
  d4ef82f keys: kill task_struct->replacement_session_keyring
  1cc141e keys: kill the dummy key_replace_session_keyring()
  090ca45 keys: change keyctl_session_to_parent() to use task_work_add()
  61bc7a8 genirq: reimplement exit_irq_thread() hook via task_work_add()
  5ee34dd task_work_add: generic process-context callbacks
  70754de move key_repace_session_keyring() into tracehook_notify_resume()
  6f70bc1 powerpc: uprobes: removed external declaration of uprobe_get_swbp_addr.
  e5f6a4c This is the port of uprobes to powerpc. Usage is similar to x86.
  2bc4597 On RISC architectures like powerpc, instructions are fixed size. Instruction analysis on such pl
  8893371 perf probe: Detect probe target when m/x options are absent
  544d531a perf probe: Provide perf interface for uprobes
  103b503 tracing: Fix kconfig warning due to a typo
  9bb012e tracing: Provide trace events interface for uprobes
  b9b7281 tracing: Extract out common code for kprobes/uprobes trace events
  91f0360 tracing: Modify is_delete, is_return from int to bool
  a8600f2 uprobes/core: Decrement uprobe count before the pages are unmapped
  a252056 uprobes/core: Make background page replacement logic account for rss_stat counters
  3efc15b uprobes/core: Optimize probe hits with the help of a counter
  20f3d76 uprobes/core: Allocate XOL slots for uprobes use
  77bfad8 uprobes/core: Handle breakpoint and singlestep exceptions
  7196d9a uprobes/core: Rename bkpt to swbp
  c99bc18 uprobes/core: Make order of function parameters consistent across functions
  7e9be99 uprobes/core: Make macro names consistent
  c4247f2 uprobes: Update copyright notices
  f066ff9 uprobes/core: Move insn to arch specific structure
  e91cf65 uprobes/core: Remove uprobe_opcode_sz
  942b91c uprobes/core: Make instruction tables volatile
  56c1e99 uprobes: Move to kernel/events/
  0a7ad1c uprobes/core: Clean up, refactor and improve the code
  3760d62 uprobes, mm, x86: Add the ability to install and remove uprobes breakpoints

Two BSP updates:

  - Crystal Forest Machine has been added
  - routerstationpro configuration updates for 3.4

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
linux-yocto: make KBRANCH the exception and not the rule

The kernel branch is no longer required by the yocto-kern-tools
to locate BSP feature descriptions (it is the MACHINE:KTYPE
descriptor), so we no longer require that the BSP branch be
explicitly set.

If a kernel branch is explicitly set, it is now used to trigger
a checks to ensure that the branch really is being built.
Otherwise the branch that the machine description creates will
be built (just as it always was).

This further simplies the use and configuration of a linux-yocto
based kernel recipe.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
linux-yocto/3.4: remove explicit KBRANCH designations

A BSP specific KBRANCH assignment is no longer a required
element to locate and build a yocto kernel. As such we can
set the default kbranch, and remove all other explicit
assignments.

KBRANCH is still used, and if it is changed from the
default, that branch will be built.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
linux-yocto: explicitly export KMETA to scripts

The kern-tools scripts can support a meta branch and directory of a name that
isn't "meta", but they need the name passed through the environment variable
KMETA. ensuring that KMETA is exported in the shell environment sets the stage
to support flexible meta branch name.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
kern-tools: fixes (branching,buildall) + cleanups (checkpoint,cleaner)

Updating the kern-tools SRCREV to pickup a collection of bug fixes
and cleanups:

  75e71c3 kgit-config-cleaner: add -k <keep option>
  02be3b5 buildall: switch back to scc driven processing
  c7101db kern-tools: support flexible branching
  e2d06bd kern-tools: Remove superfluous references to "defconfig" from the "createme" script.
  e693754 kgit-checkpoint: fix verify_branch variable name typo
  ee67a7b kgit-config-cleaner: fix redefintion processing

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
ncurses: fix file names for update -alternatives

Signed-off-by: Saul Wold <sgw@linux.intel.com>
mesa: Add a mesa-dri-glsl-native_git recipe

If you have both a fixed version of mesa and a git version of mesa, you
also need the mesa-dri-glsl-native recipe for each versions. The code
generation that happens natively has to be done with the tool extracted
from the version you are compiling.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
mesa: enable GLES v1 and v2

Patch originally by Damien Lespiau <damien.lespiau@intel.com>.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
core: Prefer mesa-dri as virtual/libopengles1/2 provider

Wihtout it, you have both mesa-dri and mesa-xlib as providers. Let's
prefer the accelerated version.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
mesa-demos: fix GLES2 build

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
mesa: respect x11 DISTRO_FEATURE

Patch originally by Damien Lespiau <damien.lespiau@intel.com>.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
mesa: enable EGL, with DRM and X11 platforms

Patch originally by Damien Lespiau <damien.lespiau@intel.com>.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
perf_3.4.bb: update to build against older kernels

Removes a make install-python_ext when not present since
older versions of perf lack this install rule

This also fixes a library issue on older kernels building with
a newer toolchain where libaries that would previously be pulled
in are no longer. So we add them manually.

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
gst-fluendo-mp3: upgrade to 0.10.19

Only the copyright year has changed in the license file.

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
gst-fluendo-mpegdemux: upgrade to 0.10.71

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
connman: upgrade to 1.4

The removed patch is included in connman 1.4.

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
cross-localedef-native_2.16.bb: fix for CentOS 5.X

| gcc -isystem/home/mattsm/git/poky/build-master/tmp/sysroots/x86_64-linux/usr/include -isystem/home/mattsm/git/poky/build-master/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -DNOT_IN_libc=1 -DNO_SYSCONF -DNO_UNCOMPRESS -DLOCALE_PATH='"/usr/local/lib/locale:/usr/local/share/i18n"' -DLOCALEDIR='"/usr/local/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/local/share/locale"' -DCHARMAP_PATH='"/usr/local/share/i18n/charmaps"' -DREPERTOIREMAP_PATH='"/usr/local/share/i18n/repertoiremaps"' -DLOCSRCDIR='"/usr/local/share/i18n/locales"' -DNOT_IN_libc -DIN_GLIBC_LOCALEDEF -Iglibc/locale/programs -I./include -Iglibc/locale -I. -I. -include ./include/always.h -Wall -Wno-format -c -o ld-address.o glibc/locale/programs/ld-address.c
| In file included from glibc/locale/programs/localedef.h:24,
|                  from glibc/locale/programs/ld-address.c:30:
| ./include/locale.h:6: error: conflicting types for 'locale_t'
| glibc/locale/xlocale.h:42: error: previous declaration of 'locale_t' was here
| make: *** [ld-address.o] Error 1
| ERROR: oe_runmake failed

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>