diff options
Diffstat (limited to 'meta/lib/oe/sdk.py')
-rw-r--r-- | meta/lib/oe/sdk.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index 37b59afd1a..3dc3672210 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # | 1 | # |
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | 4 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 5 | # |
4 | 6 | ||
@@ -68,7 +70,7 @@ class Sdk(object, metaclass=ABCMeta): | |||
68 | #FIXME: using umbrella exc catching because bb.utils method raises it | 70 | #FIXME: using umbrella exc catching because bb.utils method raises it |
69 | except Exception as e: | 71 | except Exception as e: |
70 | bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc()) | 72 | bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc()) |
71 | bb.error("unable to place %s in final SDK location" % sourcefile) | 73 | bb.fatal("unable to place %s in final SDK location" % sourcefile) |
72 | 74 | ||
73 | def mkdirhier(self, dirpath): | 75 | def mkdirhier(self, dirpath): |
74 | try: | 76 | try: |
@@ -115,6 +117,10 @@ def sdk_list_installed_packages(d, target, rootfs_dir=None): | |||
115 | 117 | ||
116 | rootfs_dir = [sdk_output, os.path.join(sdk_output, target_path)][target is True] | 118 | rootfs_dir = [sdk_output, os.path.join(sdk_output, target_path)][target is True] |
117 | 119 | ||
120 | if target is False: | ||
121 | ipkgconf_sdk_target = d.getVar("IPKGCONF_SDK") | ||
122 | d.setVar("IPKGCONF_TARGET", ipkgconf_sdk_target) | ||
123 | |||
118 | img_type = d.getVar('IMAGE_PKGTYPE') | 124 | img_type = d.getVar('IMAGE_PKGTYPE') |
119 | import importlib | 125 | import importlib |
120 | cls = importlib.import_module('oe.package_manager.' + img_type) | 126 | cls = importlib.import_module('oe.package_manager.' + img_type) |