diff options
| -rw-r--r-- | meta/recipes-core/meta/build-sysroots.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/build-sysroots.bb b/meta/recipes-core/meta/build-sysroots.bb index 7a712e2f38..ad22a75eb2 100644 --- a/meta/recipes-core/meta/build-sysroots.bb +++ b/meta/recipes-core/meta/build-sysroots.bb | |||
| @@ -20,6 +20,8 @@ deltask populate_sysroot | |||
| 20 | python do_build_native_sysroot () { | 20 | python do_build_native_sysroot () { |
| 21 | targetsysroot = d.getVar("STANDALONE_SYSROOT") | 21 | targetsysroot = d.getVar("STANDALONE_SYSROOT") |
| 22 | nativesysroot = d.getVar("STANDALONE_SYSROOT_NATIVE") | 22 | nativesysroot = d.getVar("STANDALONE_SYSROOT_NATIVE") |
| 23 | import os | ||
| 24 | os.environ['PATH'] = "%s/bin:%s/usr/bin:%s" % (nativesysroot, nativesysroot, os.environ['PATH']) | ||
| 23 | staging_populate_sysroot_dir(targetsysroot, nativesysroot, True, d) | 25 | staging_populate_sysroot_dir(targetsysroot, nativesysroot, True, d) |
| 24 | } | 26 | } |
| 25 | do_build_native_sysroot[cleandirs] = "${STANDALONE_SYSROOT_NATIVE}" | 27 | do_build_native_sysroot[cleandirs] = "${STANDALONE_SYSROOT_NATIVE}" |
| @@ -29,6 +31,8 @@ addtask do_build_native_sysroot before do_build | |||
| 29 | python do_build_target_sysroot () { | 31 | python do_build_target_sysroot () { |
| 30 | targetsysroot = d.getVar("STANDALONE_SYSROOT") | 32 | targetsysroot = d.getVar("STANDALONE_SYSROOT") |
| 31 | nativesysroot = d.getVar("STANDALONE_SYSROOT_NATIVE") | 33 | nativesysroot = d.getVar("STANDALONE_SYSROOT_NATIVE") |
| 34 | import os | ||
| 35 | os.environ['PATH'] = "%s/bin:%s/usr/bin:%s" % (nativesysroot, nativesysroot, os.environ['PATH']) | ||
| 32 | staging_populate_sysroot_dir(targetsysroot, nativesysroot, False, d) | 36 | staging_populate_sysroot_dir(targetsysroot, nativesysroot, False, d) |
| 33 | } | 37 | } |
| 34 | do_build_target_sysroot[cleandirs] = "${STANDALONE_SYSROOT}" | 38 | do_build_target_sysroot[cleandirs] = "${STANDALONE_SYSROOT}" |
