Ejemplo n.º 1
0
def write_docs(deprecated_options, config, filename):
    try:
        target = os.environ['IDF_TARGET']
    except KeyError:
        print('IDF_TARGET environment variable must be defined!')
        sys.exit(1)

    visibility = gen_kconfig_doc.ConfigTargetVisibility(config, target)
    gen_kconfig_doc.write_docs(config, visibility, filename)
    deprecated_options.append_doc(config, visibility, filename)
Ejemplo n.º 2
0
 def setUp(self):
     self.target = os.environ['IDF_TARGET']
     self.config = kconfiglib.Kconfig('Kconfig')
     self.v = gen_kconfig_doc.ConfigTargetVisibility(
         self.config, self.target)
Ejemplo n.º 3
0
 def setUpClass(cls):
     os.environ['IDF_TARGET'] = 'chipa'
     cls.target = os.environ['IDF_TARGET']
     cls.config = kconfiglib.Kconfig('Kconfig')
     cls.visibility = gen_kconfig_doc.ConfigTargetVisibility(
         cls.config, cls.target)