diff options
Diffstat (limited to 'scripts/lib')
-rwxr-xr-x | scripts/lib/devtool/ide_sdk.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/scripts/lib/devtool/ide_sdk.py b/scripts/lib/devtool/ide_sdk.py index 4d33479e20..d9b54f7991 100755 --- a/scripts/lib/devtool/ide_sdk.py +++ b/scripts/lib/devtool/ide_sdk.py | |||
@@ -268,7 +268,7 @@ class RecipeNotModified: | |||
268 | 268 | ||
269 | class RecipeModified: | 269 | class RecipeModified: |
270 | """Handling of recipes in the workspace created by devtool modify""" | 270 | """Handling of recipes in the workspace created by devtool modify""" |
271 | OE_INIT_BUILD_ENV = 'init-build-env' | 271 | OE_INIT_BUILD_ENV = 'oe-init-build-env' |
272 | 272 | ||
273 | VALID_BASH_ENV_NAME_CHARS = re.compile(r"^[a-zA-Z0-9_]*$") | 273 | VALID_BASH_ENV_NAME_CHARS = re.compile(r"^[a-zA-Z0-9_]*$") |
274 | 274 | ||
@@ -286,6 +286,7 @@ class RecipeModified: | |||
286 | self.b = None | 286 | self.b = None |
287 | self.base_libdir = None | 287 | self.base_libdir = None |
288 | self.bblayers = None | 288 | self.bblayers = None |
289 | self.bitbakepath = None | ||
289 | self.bpn = None | 290 | self.bpn = None |
290 | self.d = None | 291 | self.d = None |
291 | self.debug_build = None | 292 | self.debug_build = None |
@@ -297,6 +298,7 @@ class RecipeModified: | |||
297 | self.package_debug_split_style = None | 298 | self.package_debug_split_style = None |
298 | self.path = None | 299 | self.path = None |
299 | self.pn = None | 300 | self.pn = None |
301 | self.recipe_id = None | ||
300 | self.recipe_sysroot = None | 302 | self.recipe_sysroot = None |
301 | self.recipe_sysroot_native = None | 303 | self.recipe_sysroot_native = None |
302 | self.staging_incdir = None | 304 | self.staging_incdir = None |
@@ -305,7 +307,6 @@ class RecipeModified: | |||
305 | self.target_dbgsrc_dir = None | 307 | self.target_dbgsrc_dir = None |
306 | self.topdir = None | 308 | self.topdir = None |
307 | self.workdir = None | 309 | self.workdir = None |
308 | self.recipe_id = None | ||
309 | # replicate bitbake build environment | 310 | # replicate bitbake build environment |
310 | self.exported_vars = None | 311 | self.exported_vars = None |
311 | self.cmd_compile = None | 312 | self.cmd_compile = None |
@@ -346,6 +347,7 @@ class RecipeModified: | |||
346 | self.b = recipe_d.getVar('B') | 347 | self.b = recipe_d.getVar('B') |
347 | self.base_libdir = recipe_d.getVar('base_libdir') | 348 | self.base_libdir = recipe_d.getVar('base_libdir') |
348 | self.bblayers = recipe_d.getVar('BBLAYERS').split() | 349 | self.bblayers = recipe_d.getVar('BBLAYERS').split() |
350 | self.bitbakepath = recipe_d.getVar('BITBAKEPATH') | ||
349 | self.bpn = recipe_d.getVar('BPN') | 351 | self.bpn = recipe_d.getVar('BPN') |
350 | self.cxx = recipe_d.getVar('CXX') | 352 | self.cxx = recipe_d.getVar('CXX') |
351 | self.d = recipe_d.getVar('D') | 353 | self.d = recipe_d.getVar('D') |
@@ -710,14 +712,15 @@ class RecipeModified: | |||
710 | 712 | ||
711 | def gen_install_deploy_script(self, args): | 713 | def gen_install_deploy_script(self, args): |
712 | """Generate a script which does install and deploy""" | 714 | """Generate a script which does install and deploy""" |
713 | cmd_lines = ['#!/bin/bash'] | 715 | cmd_lines = ['#!/bin/sh'] |
714 | 716 | ||
715 | # . oe-init-build-env $BUILDDIR | 717 | # . oe-init-build-env $BUILDDIR $BITBAKEDIR |
716 | # Note: Sourcing scripts with arguments requires bash | 718 | # Using 'set' to pass the build directory to oe-init-build-env in sh syntax |
717 | cmd_lines.append('cd "%s" || { echo "cd %s failed"; exit 1; }' % ( | 719 | cmd_lines.append('cd "%s" || { echo "cd %s failed"; exit 1; }' % ( |
718 | self.oe_init_dir, self.oe_init_dir)) | 720 | self.oe_init_dir, self.oe_init_dir)) |
719 | cmd_lines.append('. "%s" "%s" || { echo ". %s %s failed"; exit 1; }' % ( | 721 | cmd_lines.append('set %s %s' % (self.topdir, self.bitbakepath.rstrip('/bin'))) |
720 | self.oe_init_build_env, self.topdir, self.oe_init_build_env, self.topdir)) | 722 | cmd_lines.append('. "%s" || { echo ". %s %s failed"; exit 1; }' % ( |
723 | self.oe_init_build_env, self.oe_init_build_env, self.topdir)) | ||
721 | 724 | ||
722 | # bitbake -c install | 725 | # bitbake -c install |
723 | cmd_lines.append( | 726 | cmd_lines.append( |