Merge branch 'bugfix/confgen_depr_header_non_vis_v4.4' into 'release/v4.4'

kconfig: fixed non-visible deprecated configs missing from sdkconfig.h (v4.4)

See merge request espressif/esp-idf!20948
This commit is contained in:
Marius Vikhammer 2022-11-09 17:34:35 +08:00
commit 9f6b0d1531

View File

@ -170,9 +170,13 @@ class DeprecatedOptions(object):
def append_header(self, config, path_output):
def _opt_defined(opt):
if not opt.visibility:
return False
return not (opt.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) and opt.str_value == 'n')
if opt.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) and opt.str_value != 'n':
opt_defined = True
elif opt.orig_type in (kconfiglib.INT, kconfiglib.STRING, kconfiglib.HEX) and opt.str_value != '':
opt_defined = True
else:
opt_defined = False
return opt_defined
if len(self.r_dic) > 0:
with open(path_output, 'a') as f_o: