Docs: Omit kconfig configurations not available for the target

This commit is contained in:
Roland Dobai
2019-12-12 16:02:36 +01:00
parent 86034ad049
commit 5454c268f7
17 changed files with 439 additions and 33 deletions

View File

@@ -95,11 +95,6 @@ kconfigs = find_component_files("../../components", "Kconfig")
kconfig_projbuilds = find_component_files("../../components", "Kconfig.projbuild")
sdkconfig_renames = find_component_files("../../components", "sdkconfig.rename")
# trim the esp32s2 component, until we have proper multi-target support
kconfigs = [k for k in kconfigs if "esp32s2" not in k]
kconfig_projbuilds = [k for k in kconfig_projbuilds if "esp32s2" not in k]
sdkconfig_renames = [r for r in sdkconfig_renames if "esp32s2" not in r]
kconfigs_source_path = '{}/inc/kconfigs_source.in'.format(builddir)
kconfig_projbuilds_source_path = '{}/inc/kconfig_projbuilds_source.in'.format(builddir)
@@ -123,6 +118,7 @@ confgen_args = [sys.executable,
"--env", "COMPONENT_KCONFIGS_SOURCE_FILE={}".format(kconfigs_source_path),
"--env", "COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE={}".format(kconfig_projbuilds_source_path),
"--env", "IDF_PATH={}".format(idf_path),
"--env", "IDF_TARGET={}".format(os.environ.get('IDF_TARGET', 'esp32')),
"--output", "docs", kconfig_inc_path + '.in'
]
subprocess.check_call(confgen_args)