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>
This commit is contained in:
parent
be93447bef
commit
5fc9990ef6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue