@@ -228,9 +228,10 @@ class ConfigTree(object):
out = ''
for l in open(os.path.join(self.bpid.target_dir, nf), 'r'):
m = sel_line.match(l)
+ bpauto_prefix = self.bpid.project_prefix + 'BPAUTO_'
if m and not m.group('sym') in syms:
- if 'BPAUTO_' + m.group('sym') in syms:
- out += m.group('spc') + "select BPAUTO_" + m.group('sym') + '\n'
+ if bpauto_prefix + m.group('sym') in syms:
+ out += m.group('spc') + "select " + bpauto_prefix + m.group('sym') + '\n'
else:
out += m.group('spc') + "depends on " + m.group('sym') + '\n'
else:
In integration mode, the bpid.project_prefix is nonzero and needs to be prepended to the expected symbol to get a match. Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com> --- lib/kconfig.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)