diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-04-11 17:26:16 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-13 16:04:12 +0100 |
commit | 5d41ccd2ca7cb3a9a8be9d6fafb62b5d4666c185 (patch) | |
tree | f92fdc0929da967aef06fbaae35c718725748840 /meta/recipes-core | |
parent | 132b12b26e4319911f4e22e5f10468a58803016d (diff) | |
download | poky-5d41ccd2ca7cb3a9a8be9d6fafb62b5d4666c185.tar.gz |
package-index: Force NATIVE python to use modules from STAGING_DIR_NATIVE
Export PYTHONHOME to ${STAGING_DIR_NATIVE}/usr. In this way python will search
for modules in native sysroot.
[YOCTO #2134]
(From OE-Core rev: 230b235329bcaca1a95afd89801d28768aff483b)
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/meta/package-index.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/package-index.bb b/meta/recipes-core/meta/package-index.bb index bf3922f6d1..96d54e3664 100644 --- a/meta/recipes-core/meta/package-index.bb +++ b/meta/recipes-core/meta/package-index.bb | |||
@@ -21,6 +21,9 @@ do_populate_sysroot[noexec] = "1" | |||
21 | do_package_index[nostamp] = "1" | 21 | do_package_index[nostamp] = "1" |
22 | do_package_index[depends] += "${PACKAGEINDEXDEPS}" | 22 | do_package_index[depends] += "${PACKAGEINDEXDEPS}" |
23 | 23 | ||
24 | # Force NATIVE python to use modules from STAGING_DIR_NATIVE | ||
25 | export PYTHONHOME = "${STAGING_DIR_NATIVE}/usr" | ||
26 | |||
24 | do_package_index() { | 27 | do_package_index() { |
25 | set -ex | 28 | set -ex |
26 | ${PACKAGEINDEXES} | 29 | ${PACKAGEINDEXES} |