[oe-commits] [openembedded-core] 30/32: populate_sdk_ext: Only write LCONF_VERSION to bblayers if it is set

git at git.openembedded.org git at git.openembedded.org
Wed Mar 2 22:40:31 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 914b0a99997d8c69eafcb34dd982f46540eed882
Author: Randy Witt <randy.e.witt at linux.intel.com>
AuthorDate: Mon Feb 29 14:22:36 2016 -0800

    populate_sdk_ext: Only write LCONF_VERSION to bblayers if it is set
    
    It is possible that LCONF_VERSION won't be set, such as if meta-poky is
    used. Without this change, bblayers.conf would have LCONF_VERSION =
    "None" if LCONF_VERSION wasn't set, which would cause a sanity check
    failure.
    
    Signed-off-by: Randy Witt <randy.e.witt at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/populate_sdk_ext.bbclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 1f06214..6079166 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -143,7 +143,12 @@ python copy_buildsystem () {
         f.write('# this configuration provides, it is strongly suggested that you set\n')
         f.write('# up a proper instance of the full build system and use that instead.\n\n')
 
-        f.write('LCONF_VERSION = "%s"\n\n' % d.getVar('LCONF_VERSION', False))
+        # LCONF_VERSION may not be set, for example when using meta-poky
+        # so don't error if it isn't found
+        lconf_version = d.getVar('LCONF_VERSION', False)
+        if lconf_version is not None:
+            f.write('LCONF_VERSION = "%s"\n\n' % lconf_version)
+
         f.write('BBPATH = "$' + '{TOPDIR}"\n')
         f.write('SDKBASEMETAPATH = "$' + '{TOPDIR}"\n')
         f.write('BBLAYERS := " \\\n')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list