cmake: add a comment header to zephyr_settings.txt
I saw a user wondering what this is for and and where it comes from.
Provide a comment header with some explanation and a pointer to where
to find out more.
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
diff --git a/scripts/zephyr_module.py b/scripts/zephyr_module.py
index 19fae00..9d100ed 100755
--- a/scripts/zephyr_module.py
+++ b/scripts/zephyr_module.py
@@ -375,6 +375,16 @@
if args.settings_out:
with open(args.settings_out, 'w', encoding="utf-8") as fp:
+ fp.write('''\
+# WARNING. THIS FILE IS AUTO-GENERATED. DO NOT MODIFY!
+#
+# This file contains build system settings derived from your modules.
+#
+# Modules may be set via ZEPHYR_MODULES, ZEPHYR_EXTRA_MODULES,
+# and/or the west manifest file.
+#
+# See the Modules guide for more information.
+''')
fp.write(settings)
if args.twister_out: