diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2012-12-12 22:56:37 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-13 16:54:34 +0000 |
commit | 5fc9990ef66e844012bd026f89d060c36a48209f (patch) | |
tree | ca862fa22368469604340e37339c77fb48b166ba /scripts/lib | |
parent | be93447bef5569643d28eaac183bc7275d485847 (diff) | |
download | ast2050-yocto-poky-5fc9990ef66e844012bd026f89d060c36a48209f.zip ast2050-yocto-poky-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>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/bsp/kernel.py | 4 |
1 files 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 |