summaryrefslogtreecommitdiffstats
path: root/meta/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-09 10:19:42 +0100
commit2fc81e048f18e106dab5f8243cfee086e0a597b9 (patch)
treeb0cc795f8415be7f628a64c2a3b5b3b6b2e24fb4 /meta/conf
parentc3e58483bc357f879b2ed79a806c22512a4b0faa (diff)
downloadpoky-2fc81e048f18e106dab5f8243cfee086e0a597b9.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: 1b4309ee196c45661ddb79d8529517a8777a8d53) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit bc4ee5453560dcefc4a4ecc5657df5cc1666e153) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/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 5b52e9307e..d0b92a996a 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -422,8 +422,10 @@ PKGDATA_DIR = "${TMPDIR}/pkgdata/${MACHINE}"
422 422
423SDK_NAME_PREFIX ?= "oecore" 423SDK_NAME_PREFIX ?= "oecore"
424SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_ARCH}-${TUNE_PKGARCH}" 424SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_ARCH}-${TUNE_PKGARCH}"
425SDKPATH = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}" 425SDKPATH = "/usr/local/oe-sdk-hardcoded-buildpath"
426SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}" 426SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}"
427# The path to default to installing the SDK to
428SDKPATHINSTALL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}"
427 429
428################################################################## 430##################################################################
429# Kernel info. 431# Kernel info.