summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rootfs.py
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2018-09-25 09:43:20 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-25 23:15:49 +0100
commit364c4c7d3fc049f2b734a6a235758a75af364ce0 (patch)
tree65ea4625584032750be19238bef121a193abf8be /meta/lib/oe/rootfs.py
parentf0c59c8876986f04ca6a9bbb5ef0bf48591882ed (diff)
downloadpoky-364c4c7d3fc049f2b734a6a235758a75af364ce0.tar.gz
rootfs.py: Install -src packages when PACKAGE_DEBUG_SPLIT_STYLE is "debug-with-srcpkg"
When the source packages are created, they need to be included in the debug image created when IMAGE_GEN_DEBUGFS = "1" for it to be usable for debugging. [YOCTO #12930] (From OE-Core rev: 5fc7fbc10bbd3a54df16db275ecd6080bc58f19e) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r--meta/lib/oe/rootfs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 67ae281e47..ddda552263 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -144,6 +144,10 @@ class Rootfs(object, metaclass=ABCMeta):
144 bb.note(" Install complementary '*-dbg' packages...") 144 bb.note(" Install complementary '*-dbg' packages...")
145 self.pm.install_complementary('*-dbg') 145 self.pm.install_complementary('*-dbg')
146 146
147 if self.d.getVar('PACKAGE_DEBUG_SPLIT_STYLE') == 'debug-with-srcpkg':
148 bb.note(" Install complementary '*-src' packages...")
149 self.pm.install_complementary('*-src')
150
147 bb.note(" Rename debug rootfs...") 151 bb.note(" Rename debug rootfs...")
148 try: 152 try:
149 shutil.rmtree(self.image_rootfs + '-dbg') 153 shutil.rmtree(self.image_rootfs + '-dbg')