hv: config.h fix "Nested comment found."
The config.h generated by kconfiglib,the header contain "https://"
which will cause the static scan tool report "Nested comment found."
Remove it.
Acked-by: Anthony Xu
@@ -76,6 +76,7 @@ def main():
usage()
sys.exit(1)
+ header = "/* Generated by Kconfiglib */\n"
kconfig_path = sys.argv[1]
if not os.path.isfile(kconfig_path):
sys.stderr.write("Cannot find file %s\n" % kconfig_path)
@@ -88,7 +89,7 @@ def main():
kconfig = Acrn_config(kconfig_path)
kconfig.load_config(config_path)
- kconfig.write_autoconf(sys.argv[3])
+ kconfig.write_autoconf(sys.argv[3],header)
sys.stdout.write("Configuration header written to %s.\n" % sys.argv[3])
if __name__ == "__main__":
