From 5fc9990ef66e844012bd026f89d060c36a48209f Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Wed, 12 Dec 2012 22:56:37 -0600 Subject: 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 Signed-off-by: Richard Purdie --- scripts/lib/bsp/kernel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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): 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 -- cgit v1.2.3-54-g00ecf