From 5d1c535fc85654f334938619d35212196f029912 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 10 Feb 2021 21:58:33 -0500 Subject: [PATCH] license: add missing SPDX headers Add SPDX header to files with existing license. Signed-off-by: Anas Nashif --- arch/xtensa/core/startup/memctl_default.S | 2 ++ arch/xtensa/core/startup/memerror-vector.S | 1 + doc/extensions/lexer/DtsLexer.py | 1 + doc/extensions/local_util.py | 1 + doc/extensions/zephyr/html_redirects.py | 2 ++ drivers/ethernet/eth_smsc911x_priv.h | 1 + include/arch/nios2/nios2.h | 2 ++ include/bluetooth/a2dp-codec.h | 2 +- include/net/http_parser.h | 2 ++ include/net/http_parser_state.h | 3 +++ include/net/http_parser_url.h | 2 ++ include/usb/class/usb_dfu.h | 2 ++ include/usb/usb_common.h | 2 ++ include/usb/usb_device.h | 2 ++ include/usb/usbstruct.h | 2 ++ lib/fnmatch/fnmatch.c | 2 ++ lib/fnmatch/fnmatch.h | 2 ++ lib/libc/minimal/source/stdlib/atoi.c | 2 ++ lib/libc/minimal/source/stdlib/strtol.c | 1 + lib/libc/minimal/source/stdlib/strtoul.c | 2 ++ lib/libc/minimal/source/string/strstr.c | 2 ++ subsys/net/lib/http/http_parser.c | 2 ++ subsys/net/lib/http/http_parser_url.c | 2 ++ 23 files changed, 41 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/core/startup/memctl_default.S b/arch/xtensa/core/startup/memctl_default.S index 164f2c2d2f5..2a75a8d05c6 100644 --- a/arch/xtensa/core/startup/memctl_default.S +++ b/arch/xtensa/core/startup/memctl_default.S @@ -1,5 +1,7 @@ // memctl_default.S - Default startup value for MEMCTL register. +// SPDX-License-Identifier: MIT + // Copyright (c) 1998-2015 Cadence Design Systems, Inc. // // Permission is hereby granted, free of charge, to any person obtaining diff --git a/arch/xtensa/core/startup/memerror-vector.S b/arch/xtensa/core/startup/memerror-vector.S index 9755aad341c..3a822c52625 100644 --- a/arch/xtensa/core/startup/memerror-vector.S +++ b/arch/xtensa/core/startup/memerror-vector.S @@ -1,4 +1,5 @@ /* memerror-vector.S -- Memory Error Exception Vector and Handler */ +/* SPDX-License-Identifier: MIT */ /* * Copyright (c) 2006-2013 Tensilica Inc. diff --git a/doc/extensions/lexer/DtsLexer.py b/doc/extensions/lexer/DtsLexer.py index ee422b26d3d..4fef4663c30 100644 --- a/doc/extensions/lexer/DtsLexer.py +++ b/doc/extensions/lexer/DtsLexer.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# SPDX-License-Identifier: BSD-2-Clause # # Contributors Listed Below - COPYRIGHT 2016 # [+] International Business Machines Corp. diff --git a/doc/extensions/local_util.py b/doc/extensions/local_util.py index 12d03a73a79..2eaedf48a9d 100644 --- a/doc/extensions/local_util.py +++ b/doc/extensions/local_util.py @@ -1,4 +1,5 @@ # Utility functions used in conf.py +# SPDX-License-Identifier: Apache-2.0 # # Copyright 2017 Espressif Systems (Shanghai) PTE LTD # diff --git a/doc/extensions/zephyr/html_redirects.py b/doc/extensions/zephyr/html_redirects.py index dc8c1d2b8fb..f43b00ce824 100644 --- a/doc/extensions/zephyr/html_redirects.py +++ b/doc/extensions/zephyr/html_redirects.py @@ -1,5 +1,7 @@ # Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD # +# SPDX-License-Identifier: Apache-2.0 + # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/drivers/ethernet/eth_smsc911x_priv.h b/drivers/ethernet/eth_smsc911x_priv.h index 89e6ffe73d5..78412d4ddff 100644 --- a/drivers/ethernet/eth_smsc911x_priv.h +++ b/drivers/ethernet/eth_smsc911x_priv.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: Apache-2.0 */ /* mbed Microcontroller Library * Copyright (c) 2017 ARM Limited * Copyright (c) 2018-2019 Linaro Limited diff --git a/include/arch/nios2/nios2.h b/include/arch/nios2/nios2.h index 02eb89756b8..6b4734e47f2 100644 --- a/include/arch/nios2/nios2.h +++ b/include/arch/nios2/nios2.h @@ -1,6 +1,8 @@ #ifndef ZEPHYR_INCLUDE_ARCH_NIOS2_NIOS2_H_ #define ZEPHYR_INCLUDE_ARCH_NIOS2_NIOS2_H_ +/* SPDX-License-Identifier: Xnet */ + /****************************************************************************** * * * License Agreement * diff --git a/include/bluetooth/a2dp-codec.h b/include/bluetooth/a2dp-codec.h index 0a1fa2382b8..3c8022d6140 100644 --- a/include/bluetooth/a2dp-codec.h +++ b/include/bluetooth/a2dp-codec.h @@ -1,8 +1,8 @@ /** @file * @brief Advance Audio Distribution Profile - SBC Codec header. */ - /* + * SPDX-License-Identifier: Apache-2.0 * Copyright (c) 2015-2016 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/include/net/http_parser.h b/include/net/http_parser.h index 534c6ea9f41..6f1bbd8f92a 100644 --- a/include/net/http_parser.h +++ b/include/net/http_parser.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: MIT */ + /* Copyright Joyent, Inc. and other Node contributors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/include/net/http_parser_state.h b/include/net/http_parser_state.h index 136eb188549..be233172b1d 100644 --- a/include/net/http_parser_state.h +++ b/include/net/http_parser_state.h @@ -1,3 +1,6 @@ + +/* SPDX-License-Identifier: MIT */ + /* Copyright Joyent, Inc. and other Node contributors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/include/net/http_parser_url.h b/include/net/http_parser_url.h index 9d736a7a3ad..8f8c7c15426 100644 --- a/include/net/http_parser_url.h +++ b/include/net/http_parser_url.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: MIT */ + /* Copyright Joyent, Inc. and other Node contributors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/include/usb/class/usb_dfu.h b/include/usb/class/usb_dfu.h index 9427a60a5a0..a08e88e7171 100644 --- a/include/usb/class/usb_dfu.h +++ b/include/usb/class/usb_dfu.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + /*************************************************************************** * * Copyright(c) 2015,2016 Intel Corporation. diff --git a/include/usb/usb_common.h b/include/usb/usb_common.h index d095279b3a7..0daf7c12e2e 100644 --- a/include/usb/usb_common.h +++ b/include/usb/usb_common.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + /*************************************************************************** * * diff --git a/include/usb/usb_device.h b/include/usb/usb_device.h index e4d27dcf5f3..ae35f68dd92 100644 --- a/include/usb/usb_device.h +++ b/include/usb/usb_device.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + /* * LPCUSB, an USB device driver for LPC microcontrollers * Copyright (C) 2006 Bertrik Sikken (bertrik@sikken.nl) diff --git a/include/usb/usbstruct.h b/include/usb/usbstruct.h index b7b4cb476e3..e6e414a32da 100644 --- a/include/usb/usbstruct.h +++ b/include/usb/usbstruct.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + /* * LPCUSB, an USB device driver for LPC microcontrollers * Copyright (C) 2006 Bertrik Sikken (bertrik@sikken.nl) diff --git a/lib/fnmatch/fnmatch.c b/lib/fnmatch/fnmatch.c index 1319509529b..ece8ff6e756 100644 --- a/lib/fnmatch/fnmatch.c +++ b/lib/fnmatch/fnmatch.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + /* $NetBSD: fnmatch.c,v 1.26 2014/10/12 22:32:33 christos Exp $ */ /* diff --git a/lib/fnmatch/fnmatch.h b/lib/fnmatch/fnmatch.h index 731b472948b..4e82940952f 100644 --- a/lib/fnmatch/fnmatch.h +++ b/lib/fnmatch/fnmatch.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + /* $NetBSD: fnmatch.h,v 1.12.50.1 2011/02/08 16:18:55 bouyer Exp $ */ /*- diff --git a/lib/libc/minimal/source/stdlib/atoi.c b/lib/libc/minimal/source/stdlib/atoi.c index 0fa2e3faf66..196a2e6736c 100644 --- a/lib/libc/minimal/source/stdlib/atoi.c +++ b/lib/libc/minimal/source/stdlib/atoi.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: MIT */ + /* * Copyright © 2005-2014 Rich Felker, et al. * diff --git a/lib/libc/minimal/source/stdlib/strtol.c b/lib/libc/minimal/source/stdlib/strtol.c index eceb3a88ef9..5a17e466404 100644 --- a/lib/libc/minimal/source/stdlib/strtol.c +++ b/lib/libc/minimal/source/stdlib/strtol.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: BSD-4-Clause-UC */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. diff --git a/lib/libc/minimal/source/stdlib/strtoul.c b/lib/libc/minimal/source/stdlib/strtoul.c index 188390e3765..2273e1e4743 100644 --- a/lib/libc/minimal/source/stdlib/strtoul.c +++ b/lib/libc/minimal/source/stdlib/strtoul.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-4-Clause-UC */ + /* * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. diff --git a/lib/libc/minimal/source/string/strstr.c b/lib/libc/minimal/source/string/strstr.c index 7de678f2623..b1abc763930 100644 --- a/lib/libc/minimal/source/string/strstr.c +++ b/lib/libc/minimal/source/string/strstr.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-4-Clause-UC */ + /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. diff --git a/subsys/net/lib/http/http_parser.c b/subsys/net/lib/http/http_parser.c index 42aa242db21..496fff22fbf 100644 --- a/subsys/net/lib/http/http_parser.c +++ b/subsys/net/lib/http/http_parser.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: MIT */ + /* Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev * * Additional changes are licensed under the same terms as NGINX and diff --git a/subsys/net/lib/http/http_parser_url.c b/subsys/net/lib/http/http_parser_url.c index 237068d3b58..817f5eceb17 100644 --- a/subsys/net/lib/http/http_parser_url.c +++ b/subsys/net/lib/http/http_parser_url.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: MIT */ + /* Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev * * Additional changes are licensed under the same terms as NGINX and