diff options
author | David B. Kinder <david.b.kinder@intel.com> | 2017-01-18 17:01:01 -0800 |
---|---|---|
committer | Kumar Gala <kumar.gala@linaro.org> | 2017-01-19 03:50:58 +0000 |
commit | ac74d8b652f602198fbcc9425029fd09caf73052 (patch) | |
tree | b4116314ec004c89307974e781ed8ae65db5757a /lib | |
parent | 811b3710ba493f018c29af1280b3d877c05483c4 (diff) |
license: Replace Apache boilerplate with SPDX tag
Replace the existing Apache 2.0 boilerplate header with an SPDX tag
throughout the zephyr code tree. This patch was generated via a
script run over the master branch.
Also updated doc/porting/application.rst that had a dependency on
line numbers in a literal include.
Manually updated subsys/logging/sys_log.c that had a malformed
header in the original file. Also cleanup several cases that already
had a SPDX tag and we either got a duplicate or missed updating.
Jira: ZEP-1457
Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig | 12 | ||||
-rw-r--r-- | lib/libc/Kconfig | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/assert.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/bits/restrict.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/ctype.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/errno.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/inttypes.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/limits.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/stdbool.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/stdint.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/stdio.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/stdlib.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/string.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/strings.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/include/sys/types.h | 12 | ||||
-rw-r--r-- | lib/libc/minimal/source/stdout/fprintf.c | 12 | ||||
-rw-r--r-- | lib/libc/minimal/source/stdout/prf.c | 12 | ||||
-rw-r--r-- | lib/libc/minimal/source/stdout/sprintf.c | 12 | ||||
-rw-r--r-- | lib/libc/minimal/source/stdout/stdout_console.c | 12 | ||||
-rw-r--r-- | lib/libc/minimal/source/string/string.c | 12 | ||||
-rw-r--r-- | lib/libc/newlib/libc-hooks.c | 12 |
21 files changed, 21 insertions, 231 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 7f63b91e9..9352f1b5d 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -1,17 +1,7 @@ # # Copyright (c) 2016 Intel Corporation # -# 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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 # diff --git a/lib/libc/Kconfig b/lib/libc/Kconfig index 1cbf78260..91fbec22d 100644 --- a/lib/libc/Kconfig +++ b/lib/libc/Kconfig @@ -3,17 +3,7 @@ # # Copyright (c) 2016 Intel Corporation # -# 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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-License-Identifier: Apache-2.0 # menu "C Library" diff --git a/lib/libc/minimal/include/assert.h b/lib/libc/minimal/include/assert.h index 39e8dace7..b49deac02 100644 --- a/lib/libc/minimal/include/assert.h +++ b/lib/libc/minimal/include/assert.h @@ -2,17 +2,7 @@ * Copyright (c) 2016 Intel Corporation * Copyright (c) 2016, Freescale Semiconductor, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_assert_h__ diff --git a/lib/libc/minimal/include/bits/restrict.h b/lib/libc/minimal/include/bits/restrict.h index da876cb92..892a600a1 100644 --- a/lib/libc/minimal/include/bits/restrict.h +++ b/lib/libc/minimal/include/bits/restrict.h @@ -1,17 +1,7 @@ /* * Copyright (c) 2016 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/lib/libc/minimal/include/ctype.h b/lib/libc/minimal/include/ctype.h index 5c0d47158..39fdd38f8 100644 --- a/lib/libc/minimal/include/ctype.h +++ b/lib/libc/minimal/include/ctype.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2015 Intel Corporation. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_ctype_h__ diff --git a/lib/libc/minimal/include/errno.h b/lib/libc/minimal/include/errno.h index b389c510c..4c15b490f 100644 --- a/lib/libc/minimal/include/errno.h +++ b/lib/libc/minimal/include/errno.h @@ -3,17 +3,7 @@ /* * Copyright (c) 1984-1999, 2012 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ /* diff --git a/lib/libc/minimal/include/inttypes.h b/lib/libc/minimal/include/inttypes.h index 0267b4e0f..56d6908e3 100644 --- a/lib/libc/minimal/include/inttypes.h +++ b/lib/libc/minimal/include/inttypes.h @@ -1,17 +1,7 @@ /* * Copyright (c) 2016 Intel Corporation * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ diff --git a/lib/libc/minimal/include/limits.h b/lib/libc/minimal/include/limits.h index 6c7837610..b9b424c2d 100644 --- a/lib/libc/minimal/include/limits.h +++ b/lib/libc/minimal/include/limits.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_limits_h__ diff --git a/lib/libc/minimal/include/stdbool.h b/lib/libc/minimal/include/stdbool.h index 2379a2537..7433b53ce 100644 --- a/lib/libc/minimal/include/stdbool.h +++ b/lib/libc/minimal/include/stdbool.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_stdbool_h__ diff --git a/lib/libc/minimal/include/stdint.h b/lib/libc/minimal/include/stdint.h index 2e4deb5da..14f5bd088 100644 --- a/lib/libc/minimal/include/stdint.h +++ b/lib/libc/minimal/include/stdint.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_stdint_h__ diff --git a/lib/libc/minimal/include/stdio.h b/lib/libc/minimal/include/stdio.h index 48f78db6d..3b47d182c 100644 --- a/lib/libc/minimal/include/stdio.h +++ b/lib/libc/minimal/include/stdio.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_stdio_h__ diff --git a/lib/libc/minimal/include/stdlib.h b/lib/libc/minimal/include/stdlib.h index 465725842..99bb656b3 100644 --- a/lib/libc/minimal/include/stdlib.h +++ b/lib/libc/minimal/include/stdlib.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2011-2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_stdlib_h__ diff --git a/lib/libc/minimal/include/string.h b/lib/libc/minimal/include/string.h index 3ef8c512d..df2451b56 100644 --- a/lib/libc/minimal/include/string.h +++ b/lib/libc/minimal/include/string.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_string_h__ diff --git a/lib/libc/minimal/include/strings.h b/lib/libc/minimal/include/strings.h index 78b0e9f0e..232b0c2bd 100644 --- a/lib/libc/minimal/include/strings.h +++ b/lib/libc/minimal/include/strings.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_strings_h__ diff --git a/lib/libc/minimal/include/sys/types.h b/lib/libc/minimal/include/sys/types.h index 7fee26efc..63c6c0818 100644 --- a/lib/libc/minimal/include/sys/types.h +++ b/lib/libc/minimal/include/sys/types.h @@ -1,17 +1,7 @@ /* * Copyright (c) 2016 Intel Corporation * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_sys_types_h__ diff --git a/lib/libc/minimal/source/stdout/fprintf.c b/lib/libc/minimal/source/stdout/fprintf.c index 9656f1678..91473519f 100644 --- a/lib/libc/minimal/source/stdout/fprintf.c +++ b/lib/libc/minimal/source/stdout/fprintf.c @@ -3,17 +3,7 @@ /* * Copyright (c) 1997-2010, 2013-2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #include <stdarg.h> diff --git a/lib/libc/minimal/source/stdout/prf.c b/lib/libc/minimal/source/stdout/prf.c index 703f18b06..3c3bc318a 100644 --- a/lib/libc/minimal/source/stdout/prf.c +++ b/lib/libc/minimal/source/stdout/prf.c @@ -3,17 +3,7 @@ /* * Copyright (c) 1997-2010, 2012-2015 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #include <stdint.h> diff --git a/lib/libc/minimal/source/stdout/sprintf.c b/lib/libc/minimal/source/stdout/sprintf.c index 081312046..5cd8a3053 100644 --- a/lib/libc/minimal/source/stdout/sprintf.c +++ b/lib/libc/minimal/source/stdout/sprintf.c @@ -3,17 +3,7 @@ /* * Copyright (c) 1997-2010, 2013-2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #include <stdarg.h> diff --git a/lib/libc/minimal/source/stdout/stdout_console.c b/lib/libc/minimal/source/stdout/stdout_console.c index 648bd9e71..aabee1ab8 100644 --- a/lib/libc/minimal/source/stdout/stdout_console.c +++ b/lib/libc/minimal/source/stdout/stdout_console.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> diff --git a/lib/libc/minimal/source/string/string.c b/lib/libc/minimal/source/string/string.c index 793c10bf2..d31883947 100644 --- a/lib/libc/minimal/source/string/string.c +++ b/lib/libc/minimal/source/string/string.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2014 Wind River Systems, Inc. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> diff --git a/lib/libc/newlib/libc-hooks.c b/lib/libc/newlib/libc-hooks.c index 00fd06bdf..4de15d586 100644 --- a/lib/libc/newlib/libc-hooks.c +++ b/lib/libc/newlib/libc-hooks.c @@ -1,17 +1,7 @@ /* * Copyright (c) 2015, Intel Corporation. * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-License-Identifier: Apache-2.0 */ #include <errno.h> |