[pinmux scripts PATCH] board-to-uboot: add comment re: auto-generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Stephen Warren <swarren@xxxxxxxxxx>

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@xxxxxxxxxxxx>
Signed-off-by: Stephen Warren <swarren@xxxxxxxxxx>
---
 board-to-uboot.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/board-to-uboot.py b/board-to-uboot.py
index 7b20f23949bc..d5e2708c6695 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='')
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux