summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorAndrej Valek <andrej.valek@siemens.com>2018-10-17 15:24:35 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-18 10:56:55 +0100
commit5f30534c47571d199d8655b3da51f7b55fe20c04 (patch)
tree7303d2b9ae66be5ff5cf955004bb52fc9e9b4f0d /meta/lib/oe
parente95caf1ebdfa29c9e1bc9c28ad0c47672c49fe99 (diff)
downloadpoky-5f30534c47571d199d8655b3da51f7b55fe20c04.tar.gz
rootfs: possibility to add packages to debug rootfs
Static libraries are not included in rootfs, it means, that sources are not going into debug rootfs. This option enables to install additional packages even if the standard package is not installed. (From OE-Core rev: 708fe1df3d3e22dd693ae7bbfdd3e5af1a1b0bdc) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/rootfs.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index ddda552263..e5512d09ef 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -148,6 +148,16 @@ class Rootfs(object, metaclass=ABCMeta):
148 bb.note(" Install complementary '*-src' packages...") 148 bb.note(" Install complementary '*-src' packages...")
149 self.pm.install_complementary('*-src') 149 self.pm.install_complementary('*-src')
150 150
151 """
152 Install additional debug packages. Possibility to install additional packages,
153 which are not automatically installed as complementary package of
154 standard one, e.g. debug package of static libraries.
155 """
156 extra_debug_pkgs = self.d.getVar('IMAGE_INSTALL_DEBUGFS')
157 if extra_debug_pkgs:
158 bb.note(" Install extra debug packages...")
159 self.pm.install(extra_debug_pkgs.split(), True)
160
151 bb.note(" Rename debug rootfs...") 161 bb.note(" Rename debug rootfs...")
152 try: 162 try:
153 shutil.rmtree(self.image_rootfs + '-dbg') 163 shutil.rmtree(self.image_rootfs + '-dbg')