]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
yocto-kernel: don't list comments in config and patch listings
authorTom Zanussi <tom.zanussi@intel.com>
Thu, 13 Dec 2012 04:56:37 +0000 (22:56 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Dec 2012 16:53:30 +0000 (16:53 +0000)
After adding comments to the config and patch templates, I noticed
they were displayed as items, which they shouldn't be.  This prevents
them from being displayed.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/bsp/kernel.py

index 0b7e69bcb9607ed37d2a506887f9eacb7dabc6b2..272c3eb5a26edead0bf823053ca1e57835cbb810 100644 (file)
@@ -168,7 +168,7 @@ def read_config_items(scripts_path, machine):
     lines = f.readlines()
     for line in lines:
         s = line.strip()
-        if s:
+        if s and not s.startswith("#"):
             config_items.append(s)
     f.close()
 
@@ -399,7 +399,7 @@ def read_patch_items(scripts_path, machine):
     lines = f.readlines()
     for line in lines:
         s = line.strip()
-        if s:
+        if s and not s.startswith("#"):
             fields = s.split()
             if not fields[0] == "patch":
                 continue