summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/package_manager/ipk/sdk.py
diff options
context:
space:
mode:
authorEilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>2023-09-14 14:39:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-17 19:37:19 +0100
commit9ccde59c5303abb04e9bb8e2c987ff4b8f44bb43 (patch)
treeb3b1a76e3958e731f891b669960c9d279e481e67 /meta/lib/oe/package_manager/ipk/sdk.py
parentde863bc1fa44b5ed7ad2b00abfcdd45db1f51fe2 (diff)
downloadpoky-9ccde59c5303abb04e9bb8e2c987ff4b8f44bb43.tar.gz
lib/oe/package_managegment: Add nativesdk-intercept PATH
[YOCTO #15023] This patch adds (and removes after function execution) the nativesdk-intercept/chown|chgrp PATH before target_pm.run_intercepts calls during populate_sdk builds. This has been tested with cleanall builds and testsdk and fails on deb due to an issue where $D${localstatedir}/cache/man/ does not exist for some reason. I've a work around for that in the next patch in this series. (From OE-Core rev: e7afdfe9da150209ab2676d09eae040de2155c6d) Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package_manager/ipk/sdk.py')
-rw-r--r--meta/lib/oe/package_manager/ipk/sdk.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager/ipk/sdk.py b/meta/lib/oe/package_manager/ipk/sdk.py
index 6a1f167fb7..cc7a7ede54 100644
--- a/meta/lib/oe/package_manager/ipk/sdk.py
+++ b/meta/lib/oe/package_manager/ipk/sdk.py
@@ -63,7 +63,12 @@ class PkgSdk(Sdk):
63 63
64 self.target_pm.install_complementary(self.d.getVar('SDKIMAGE_INSTALL_COMPLEMENTARY')) 64 self.target_pm.install_complementary(self.d.getVar('SDKIMAGE_INSTALL_COMPLEMENTARY'))
65 65
66 env_bkp = os.environ.copy()
67 os.environ['PATH'] = self.d.expand("${COREBASE}/scripts/nativesdk-intercept") + \
68 os.pathsep + os.environ["PATH"]
69
66 self.target_pm.run_intercepts(populate_sdk='target') 70 self.target_pm.run_intercepts(populate_sdk='target')
71 os.environ.update(env_bkp)
67 72
68 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_TARGET_COMMAND")) 73 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_TARGET_COMMAND"))
69 74