From 7c2198c42290c0c30ec75e905b6e0386ca6bfe19 Mon Sep 17 00:00:00 2001 From: Huihuang Shi Date: Thu, 20 Dec 2018 10:15:54 +0800 Subject: [PATCH] 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. Tracked-On: #861 Signed-off-by: Huihuang Shi Acked-by: Anthony Xu --- scripts/kconfig/generate_header.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/generate_header.py b/scripts/kconfig/generate_header.py index 5f297a588..2239c4489 100644 --- a/scripts/kconfig/generate_header.py +++ b/scripts/kconfig/generate_header.py @@ -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__":