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>