[U-Boot] [PATCH 1/1] tools/file2include: create Linux style SPDX header

file2include is used to convert a binary file to a C include. With the patch the SPDX header is written to the first line as expected by scripts/checkpatch.pl.
Cf. https://www.kernel.org/doc/html/v4.16/process/license-rules.html
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de --- tools/file2include.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/file2include.c b/tools/file2include.c index 7ca45c8339a..e602f937f15 100644 --- a/tools/file2include.c +++ b/tools/file2include.c @@ -62,12 +62,11 @@ int main(int argc, char *argv[]) count = fread(buf, 1, count, file);
/* Generate output */ + printf("/* SPDX-License-Identifier: GPL-2.0+ */\n"); printf("/*\n"); printf(" * Non-zero %u byte strings of a disk image\n", BLOCK_SIZE); printf(" *\n"); printf(" * Generated with tools/file2include\n"); - printf(" *\n"); - printf(" * SPDX-License-Identifier: GPL-2.0+\n"); printf(" */\n\n"); printf("#define EFI_ST_DISK_IMG { 0x%08zx, { \\n", count);

On Mon, May 7, 2018 at 3:38 PM, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
file2include is used to convert a binary file to a C include. With the patch the SPDX header is written to the first line as expected by scripts/checkpatch.pl.
Cf. https://www.kernel.org/doc/html/v4.16/process/license-rules.html
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
Reviewed-by: Fabio Estevam fabio.estevam@nxp.com

On Mon, May 07, 2018 at 08:38:24PM +0200, Heinrich Schuchardt wrote:
file2include is used to convert a binary file to a C include. With the patch the SPDX header is written to the first line as expected by scripts/checkpatch.pl.
Cf. https://www.kernel.org/doc/html/v4.16/process/license-rules.html
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
Reviewed-by: Tom Rini trini@konsulko.com
And I'll drop this hunk from my follow-up patch, thanks!

On Mon, May 07, 2018 at 08:38:24PM +0200, Heinrich Schuchardt wrote:
file2include is used to convert a binary file to a C include. With the patch the SPDX header is written to the first line as expected by scripts/checkpatch.pl.
Cf. https://www.kernel.org/doc/html/v4.16/process/license-rules.html
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de Reviewed-by: Fabio Estevam fabio.estevam@nxp.com Reviewed-by: Tom Rini trini@konsulko.com
Applied to u-boot/master, thanks!
participants (3)
-
Fabio Estevam
-
Heinrich Schuchardt
-
Tom Rini