Skip to content

Commit c9eef2d

Browse files
jerpeleaxiaoxiang781216
authored andcommitted
tools: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <[email protected]>
1 parent 0ca1a07 commit c9eef2d

File tree

160 files changed

+667
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+667
-8
lines changed

Diff for: CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# ##############################################################################
22
# CMakeLists.txt
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
57
# license agreements. See the NOTICE file distributed with this work for
68
# additional information regarding copyright ownership. The ASF licenses this

Diff for: Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# Makefile
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: pass1/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# pass1/Makefile
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# ##############################################################################
22
# tools/CMakeLists.txt
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
57
# license agreements. See the NOTICE file distributed with this work for
68
# additional information regarding copyright ownership. The ASF licenses this

Diff for: tools/Config.mk

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/Config.mk
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/D.defs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/D.defs
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/Export.mk

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/Export.mk
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/FlatLibs.mk

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/FlatLibs.mk
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/KernelLibs.mk

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/KernelLibs.mk
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/Makefile.host

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/Makefile.host
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/ProtectedLibs.mk

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/ProtectedLibs.mk
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/Rust.defs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/Rust.defs
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/Swift.defs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/Swift.defs
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The
@@ -88,4 +90,4 @@ endif
8890
# armv7-none-none-eabi, armv7em-apple-none-macho, armv7em-none-none-eabi,
8991
# avr-none-none-elf, i686-unknown-none-elf, riscv32-none-none-eabi,
9092
# riscv64-none-none-eabi, wasm32-unknown-none-wasm, wasm64-unknown-none-wasm,
91-
# x86_64-unknown-linux-gnu, x86_64-unknown-none-elf,
93+
# x86_64-unknown-linux-gnu, x86_64-unknown-none-elf,

Diff for: tools/Unix.mk

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/Unix.mk
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/Win.mk

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/Win.mk
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/Zig.defs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# tools/Zig.defs
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/apps-or-nuttx-Make.defs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
############################################################################
22
# apps-or-nuttx-Make.defs
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/b16.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/****************************************************************************
22
* tools/b16.c
3-
* Convert b16 fixed precision value to float or vice versa
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
45
*
56
* Licensed to the Apache Software Foundation (ASF) under one or more
67
* contributor license agreements. See the NOTICE file distributed with

Diff for: tools/bdf-converter.c

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/****************************************************************************
22
* tools/bdf-converter.c
33
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
46
* Licensed to the Apache Software Foundation (ASF) under one or more
57
* contributor license agreements. See the NOTICE file distributed with
68
* this work for additional information regarding copyright ownership. The

Diff for: tools/build-globals.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
############################################################################
33
# tools/build-globals.sh
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed to the Apache Software Foundation (ASF) under one or more
68
# contributor license agreements. See the NOTICE file distributed with
79
# this work for additional information regarding copyright ownership. The

Diff for: tools/callstack.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env python3
22
# tools/callstack.py
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership. The

Diff for: tools/cfgdefine.c

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/****************************************************************************
22
* tools/cfgdefine.c
33
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
46
* Licensed to the Apache Software Foundation (ASF) under one or more
57
* contributor license agreements. See the NOTICE file distributed with
68
* this work for additional information regarding copyright ownership. The

Diff for: tools/cfgdefine.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/****************************************************************************
22
* tools/cfgdefine.h
33
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
46
* Licensed to the Apache Software Foundation (ASF) under one or more
57
* contributor license agreements. See the NOTICE file distributed with
68
* this work for additional information regarding copyright ownership. The

Diff for: tools/cfgparser.c

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/****************************************************************************
22
* tools/cfgparser.c
33
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
46
* Licensed to the Apache Software Foundation (ASF) under one or more
57
* contributor license agreements. See the NOTICE file distributed with
68
* this work for additional information regarding copyright ownership. The

Diff for: tools/cfgparser.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/****************************************************************************
22
* tools/cfgparser.h
33
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
46
* Licensed to the Apache Software Foundation (ASF) under one or more
57
* contributor license agreements. See the NOTICE file distributed with
68
* this work for additional information regarding copyright ownership. The

Diff for: tools/checkpatch.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22
# tools/checkpatch.sh
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed to the Apache Software Foundation (ASF) under one or more
57
# contributor license agreements. See the NOTICE file distributed with
68
# this work for additional information regarding copyright ownership.

Diff for: tools/checkrelease.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#############################################################################
33
# tools/checkrelease.sh
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed to the Apache Software Foundation (ASF) under one or more
68
# contributor license agreements. See the NOTICE file distributed with
79
# this work for additional information regarding copyright ownership. The

Diff for: tools/ci/cibuild.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
############################################################################
33
# tools/ci/cibuild.sh
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed to the Apache Software Foundation (ASF) under one or more
68
# contributor license agreements. See the NOTICE file distributed with
79
# this work for additional information regarding copyright ownership. The

Diff for: tools/ci/cirun.sh

+21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
#!/usr/bin/env bash
2+
############################################################################
3+
# tools/ci/cirun.sh
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed to the Apache Software Foundation (ASF) under one or more
8+
# contributor license agreements. See the NOTICE file distributed with
9+
# this work for additional information regarding copyright ownership. The
10+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
11+
# "License"); you may not use this file except in compliance with the
12+
# License. You may obtain a copy of the License at
13+
#
14+
# http://www.apache.org/licenses/LICENSE-2.0
15+
#
16+
# Unless required by applicable law or agreed to in writing, software
17+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
19+
# License for the specific language governing permissions and limitations
20+
# under the License.
21+
#
22+
############################################################################
223

324
set -e
425
set -o xtrace

Diff for: tools/ci/docker/linux/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
13
# Licensed to the Apache Software Foundation (ASF) under one or more
24
# contributor license agreements. See the NOTICE file distributed with
35
# this work for additional information regarding copyright ownership. The
@@ -533,4 +535,4 @@ RUN mkdir -p /ccache && \
533535
ENV PATH="/tools/ccache/bin:$PATH"
534536
ENV CCACHE_DIR="/ccache"
535537

536-
CMD [ "/bin/bash" ]
538+
CMD [ "/bin/bash" ]

Diff for: tools/ci/platforms/darwin.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
############################################################################
33
# tools/ci/platforms/darwin.sh
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed to the Apache Software Foundation (ASF) under one or more
68
# contributor license agreements. See the NOTICE file distributed with
79
# this work for additional information regarding copyright ownership. The

Diff for: tools/ci/platforms/linux.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
############################################################################
33
# tools/ci/platforms/linux.sh
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed to the Apache Software Foundation (ASF) under one or more
68
# contributor license agreements. See the NOTICE file distributed with
79
# this work for additional information regarding copyright ownership. The

Diff for: tools/ci/platforms/msys2.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
############################################################################
33
# tools/ci/platforms/msys2.sh
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed to the Apache Software Foundation (ASF) under one or more
68
# contributor license agreements. See the NOTICE file distributed with
79
# this work for additional information regarding copyright ownership. The

Diff for: tools/ci/platforms/ubuntu.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
############################################################################
33
# tools/ci/platforms/ubuntu.sh
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed to the Apache Software Foundation (ASF) under one or more
68
# contributor license agreements. See the NOTICE file distributed with
79
# this work for additional information regarding copyright ownership. The

Diff for: tools/ci/testrun/script/__init__.py

+21
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
#!/usr/bin/env python3
2+
############################################################################
3+
# tools/ci/testrun/script/__init__.py
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed to the Apache Software Foundation (ASF) under one or more
8+
# contributor license agreements. See the NOTICE file distributed with
9+
# this work for additional information regarding copyright ownership. The
10+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
11+
# "License"); you may not use this file except in compliance with the
12+
# License. You may obtain a copy of the License at
13+
#
14+
# http://www.apache.org/licenses/LICENSE-2.0
15+
#
16+
# Unless required by applicable law or agreed to in writing, software
17+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
19+
# License for the specific language governing permissions and limitations
20+
# under the License.
21+
#
22+
############################################################################
223
# encoding: utf-8

Diff for: tools/ci/testrun/script/conftest.py

+21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
#!/usr/bin/env python3
2+
############################################################################
3+
# tools/ci/testrun/script/conftest.py
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed to the Apache Software Foundation (ASF) under one or more
8+
# contributor license agreements. See the NOTICE file distributed with
9+
# this work for additional information regarding copyright ownership. The
10+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
11+
# "License"); you may not use this file except in compliance with the
12+
# License. You may obtain a copy of the License at
13+
#
14+
# http://www.apache.org/licenses/LICENSE-2.0
15+
#
16+
# Unless required by applicable law or agreed to in writing, software
17+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
19+
# License for the specific language governing permissions and limitations
20+
# under the License.
21+
#
22+
############################################################################
223
# encoding: utf-8
324

425
import pytest

0 commit comments

Comments
 (0)