tools/file2include: create Linux style SPDX header
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
--- tools/file2include.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tools/file2include.c +1 -2
@@ -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);
Signature · 1 line
2.17.0
PATCH 1/1 tools/file2include: create Linux style SPDX header
Quoted 7 lines · Heinrich Schuchardt
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 <[email protected]>
PATCH 1/1 tools/file2include: create Linux style SPDX header
In reply to Heinrich SchuchardtQuoted 7 lines · Heinrich Schuchardt
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 <[email protected]>
And I'll drop this hunk from my follow-up patch, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180507/2c4b00b7/attachment.sig>
PATCH 1/1 tools/file2include: create Linux style SPDX header
In reply to Heinrich SchuchardtQuoted 9 lines · Heinrich Schuchardt
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 <[email protected]>Reviewed-by Fabio Estevam <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180511/ec8dcbec/attachment.sig>