]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_ext: Add variable to indicate running in eSDK
authorSaul Wold <sgw@linux.intel.com>
Mon, 17 Jul 2017 16:20:14 +0000 (09:20 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 21:45:19 +0000 (22:45 +0100)
This allows for other scripts to know that they are being executed in
the context of the eSDK in order to provide different behaviour as
needed.

[YOCTO #11155]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/populate_sdk_ext.bbclass

index e31ee3722b60be434f6b3729ea45422a62a2d3b2..08973a264c129937c182c846c7bbe86dd64f3d21 100644 (file)
@@ -351,6 +351,9 @@ python copy_buildsystem () {
             # Hide the config information from bitbake output (since it's fixed within the SDK)
             f.write('BUILDCFG_HEADER = ""\n\n')
 
+            f.write('# Provide a flag to indicate we are in the EXT_SDK Context\n')
+            f.write('WITHIN_EXT_SDK = "1"\n\n')
+
             # Map gcc-dependent uninative sstate cache for installer usage
             f.write('SSTATE_MIRRORS += " file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n\n')