summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-30 16:44:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-08 23:47:30 +0100
commit6fef2a1c2ca8a4450c8a4b49e6eb5e01f80ef97b (patch)
treede06312fc0062604a21584c7dbca4a8f1e42062a /meta/conf/bitbake.conf
parent7721fa8185be43c042e08eb212b7cd97d5df012b (diff)
downloadpoky-6fef2a1c2ca8a4450c8a4b49e6eb5e01f80ef97b.tar.gz
sdk: Decouple default install path from built in path
Add SDKPATHINSTALL which is used as the default install location of the SDK instead of SDKPATH. This means the default install path isn't encoded into every SDK binary, meaning if a date is used there the entire SDK doesn't have to rebuild. Most distros can switch to only customise SDKPATHINSTALL meaning more sstate reuse too. [YOCTO #14100] (From OE-Core rev: 33a5714592bf41a26fcd7e8ff595b45538082431) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit bc4ee5453560dcefc4a4ecc5657df5cc1666e153) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 0141919021..f442a6593a 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -421,8 +421,10 @@ PKGDATA_DIR = "${TMPDIR}/pkgdata/${MACHINE}"
421 421
422SDK_NAME_PREFIX ?= "oecore" 422SDK_NAME_PREFIX ?= "oecore"
423SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_ARCH}-${TUNE_PKGARCH}" 423SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_ARCH}-${TUNE_PKGARCH}"
424SDKPATH = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}" 424SDKPATH = "/usr/local/oe-sdk-hardcoded-buildpath"
425SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}" 425SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}"
426# The path to default to installing the SDK to
427SDKPATHINSTALL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}"
426 428
427################################################################## 429##################################################################
428# Kernel info. 430# Kernel info.