summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-07-30 14:25:15 -0600
committerStephen Warren <swarren@nvidia.com>2015-07-30 14:27:10 -0600
commit964684d96b7a637983d9a57a51765a7dfb624aaf (patch)
tree2c0fb935b078b075ab04bc15722de6168d66c15a
parent1682bc18271044541c7234e59368b448cc72b2b1 (diff)
downloadtegra-pinmux-scripts-964684d96b7a637983d9a57a51765a7dfb624aaf.tar.gz
board-to-uboot: add comment re: auto-generation
Add a comment block to the top of each generated U-Boot header file indicating that the file was auto-generated, should not be manually edited, and with a pointer to the tool and command used to generate it. Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rwxr-xr-xboard-to-uboot.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/board-to-uboot.py b/board-to-uboot.py
index 7b20f23..d5e2708 100755
--- a/board-to-uboot.py
+++ b/board-to-uboot.py
@@ -48,6 +48,14 @@ print('''\
* SPDX-License-Identifier: GPL-2.0+
*/
+/*
+ * THIS FILE IS AUTO-GENERATED - DO NOT EDIT!
+ *
+ * To generate this file, use the tegra-pinmux-scripts tool available from
+ * https://github.com/NVIDIA/tegra-pinmux-scripts
+ * Run "board-to-uboot.py %(board_name)s".
+ */
+
#ifndef _PINMUX_CONFIG_%(board_define)s_H_
#define _PINMUX_CONFIG_%(board_define)s_H_
@@ -60,6 +68,7 @@ print('''\
static const struct tegra_gpio_config %(board_varname)s_gpio_inits[] = {
''' % {
'copyright_year': copyright_year,
+ 'board_name': args.board,
'board_define': board.definename,
'board_varname': board.varname,
}, end='')