package_namager.py/image.py add a copy from poky

add a copy of package_namager.py and image.py from poky to meta-mentor-staging
to keep stage changes for split-debug fs implementation

poky commit id: aec1194c120e5eae12cee18741d368ac3bb11722

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
image.bbclass: add pristine copy

move image.bbclass from poky commit d14090ab7309936b0b84f7056094a1df40064d9e to
our staging area to stage changes related to split-debug feature

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
image.bbclass: introduce complementary globs for debug-fs

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
rootfs.py/package_manager.py: add split-debug fs support

split-debug-fs is a feature that would allow user to create a complementary
file sysem containing debug symbols, and other additional packages
required for on-target debugging. This file system would be mounted on an
external storage whenever on target debugging is required.

user can enable split-debug file-system by adding the following lines to
the <build-folder>/local.conf file

IMAGE_FEATURES_DEBUG += "dbg-pkgs"
SPLIT_DEBUG_FS = "True"
EXTRA_DEBUG_PACKAGES = "<package1> <package2> ..."

http://jira.alm.mentorg.com:8080/browse/SB-1952

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
local.conf.sample: add information to enable split-debug-fs

User can enable split-debug file-system by setting SPLIT_DEBUG_FS = "True".
Extra user-specified packages can be added to split-debug fs based on the value
of EXTRA_DEBUG_PACKAGES in local.conf

http://jira.alm.mentorg.com:8080/browse/SB-1954

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
image.bbclass: create archive & links for split-debug fs

Temporarily add do_capture_debug function to image.bbclass to create tarball and
symlinks for split-debug file system. A better approach would be to modify the
image.create function in image.py that now hadles the creation of various images

Jira: http://jira.alm.mentorg.com:8080/browse/SB-1952

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
image.bbclass: Add EXTRA_DEBUG_PACKAGES to RDEPENDS

Add EXTRA_DEBUG_PACKAGES to RDEPENDS so that they get built and we can install
them when debug file-system is created

Jira: http://jira.alm.mentorg.com:8080/browse/SB-1952

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
image: set defaults for debug fs variables

Signed-off-by: Christopher Larson <kergoth@gmail.com>
image, oe: don't hardcode SPLIT_DEBUG_FS == 'True'

Signed-off-by: Christopher Larson <kergoth@gmail.com>
linux-qoriq-sdk: enable missing config options for systemd

Signed-off-by: Fahad Arslan <fahad_arslan@mentor.com>
Merge pull request #121 from fahadarslan/sb-2519

Enable missing kernel config options for systemd
busybox: Use CCLD

Use the CCLD variable to ensure proper tuning parameters.
Notably when building on a x86-64 host with an i686 toolchain
there is an error building built-in.o because it is trying to
link 32-bit and 64-bit object files:

     i686-pc-linux-gnu-ld --sysroot=/work/dmoseley/Mentor/amd-2014.05/build.genericx86-64-external/tmp/sysroots/genericx86-64     -r -o applets/built-in.o applets/ap
     i686-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (applets/applets.o) to format elf32-i386 (applets/built-in.o) is not support
     make[1]: *** [applets/built-in.o] Error 1

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
busybox: Specify '-nostdlib' when linking to a .o file.

Ensure that linking to the built-in.a file uses the 'nostlib'
option.  Submitted to busybox mailing list here:

    http://lists.busybox.net/pipermail/busybox/2014-March/080730.html

This has been accepted into upstream busybox so it will not be needed
for future versions.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>