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 <huihuang.shi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
e22b35e332
commit
7c2198c422
|
@ -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__":
|
||||
|
|
Loading…
Reference in New Issue