summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2012-12-12 22:56:37 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-13 16:54:34 +0000
commit5fc9990ef66e844012bd026f89d060c36a48209f (patch)
treeca862fa22368469604340e37339c77fb48b166ba
parentbe93447bef5569643d28eaac183bc7275d485847 (diff)
downloadpoky-5fc9990ef66e844012bd026f89d060c36a48209f.tar.gz
yocto-kernel: don't list comments in config and patch listings
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. (From meta-yocto rev: 4cd0bde48cd17468923bba80b88d187014cda1a3) Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/bsp/kernel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py
index 0b7e69bcb9..272c3eb5a2 100644
--- a/scripts/lib/bsp/kernel.py
+++ b/scripts/lib/bsp/kernel.py
@@ -168,7 +168,7 @@ def read_config_items(scripts_path, machine):
168 lines = f.readlines() 168 lines = f.readlines()
169 for line in lines: 169 for line in lines:
170 s = line.strip() 170 s = line.strip()
171 if s: 171 if s and not s.startswith("#"):
172 config_items.append(s) 172 config_items.append(s)
173 f.close() 173 f.close()
174 174
@@ -399,7 +399,7 @@ def read_patch_items(scripts_path, machine):
399 lines = f.readlines() 399 lines = f.readlines()
400 for line in lines: 400 for line in lines:
401 s = line.strip() 401 s = line.strip()
402 if s: 402 if s and not s.startswith("#"):
403 fields = s.split() 403 fields = s.split()
404 if not fields[0] == "patch": 404 if not fields[0] == "patch":
405 continue 405 continue