diff mbox

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

Message ID 1438288117-22045-1-git-send-email-swarren@wwwdotorg.org
State Accepted, archived
Headers show

Commit Message

Stephen Warren July 30, 2015, 8:28 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

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>
---
 board-to-uboot.py | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Simon Glass July 30, 2015, 9:37 p.m. UTC | #1
On 30 July 2015 at 14:28, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> 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>
> ---
>  board-to-uboot.py | 9 +++++++++
>  1 file changed, 9 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Stephen Warren July 30, 2015, 9:42 p.m. UTC | #2
On 07/30/2015 03:37 PM, Simon Glass wrote:
> On 30 July 2015 at 14:28, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> 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.
>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Patch applied.

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

Patch

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='')