diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-09 21:21:10 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-07 14:56:54 +0000 |
| commit | af4284d39d8922ef1fcd884fe099aff52c7999f2 (patch) | |
| tree | 610b31172e55085d9d45d59e2267f85a062461f7 /meta/classes-recipe/python3targetconfig.bbclass | |
| parent | 990af746c250dcb1b7b46e0c887e2ccf67f67d26 (diff) | |
| download | poky-af4284d39d8922ef1fcd884fe099aff52c7999f2.tar.gz | |
python3targetconfig.bbclass: use PYTHONPATH to point to the target config
There is no need to patch native python so that it looks in the target
sysroot; the same can be achieved with just an environment variable.
(From OE-Core rev: c9617c03bceee54dc540318cada392799b137bd5)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/python3targetconfig.bbclass')
| -rw-r--r-- | meta/classes-recipe/python3targetconfig.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/python3targetconfig.bbclass b/meta/classes-recipe/python3targetconfig.bbclass index 02fdb0c03f..22305fe176 100644 --- a/meta/classes-recipe/python3targetconfig.bbclass +++ b/meta/classes-recipe/python3targetconfig.bbclass | |||
| @@ -12,6 +12,7 @@ DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}" | |||
| 12 | 12 | ||
| 13 | setup_target_config() { | 13 | setup_target_config() { |
| 14 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" | 14 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" |
| 15 | export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata | ||
| 15 | export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH | 16 | export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH |
| 16 | } | 17 | } |
| 17 | 18 | ||
