[poky] [PATCH 08/12] yocto-kernel: don't list comments in config and patch listings
tom.zanussi at intel.com
tom.zanussi at intel.com
Wed Dec 12 20:56:37 PST 2012
From: Tom Zanussi <tom.zanussi at intel.com>
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 at intel.com>
---
scripts/lib/bsp/kernel.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py
index 0b7e69b..272c3eb 100644
--- a/scripts/lib/bsp/kernel.py
+++ b/scripts/lib/bsp/kernel.py
@@ -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
--
1.7.11.4
More information about the poky
mailing list