Skip to content

Commit 3ae5262

Browse files
committed
license: cleanup: add SPDX Apache-2.0 license identifier
Update the files which contain no license information with the 'Apache-2.0' SPDX license identifier. Many source files in the tree are missing licensing information, which makes it harder for compliance tools to determine the correct license. By default all files without license information are under the default license of Zephyr, which is Apache version 2. Signed-off-by: Anas Nashif <[email protected]>
1 parent 8287f7c commit 3ae5262

File tree

1,332 files changed

+2676
-4
lines changed

Some content is hidden

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

1,332 files changed

+2676
-4
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# *DOCUMENTATION*
24
#
35
# Note that this is *NOT* the top-level CMakeLists.txt. That's in the

arch/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
add_definitions(-D__ZEPHYR_SUPERVISOR__)
24

35
add_subdirectory(common)

arch/arc/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# Enable debug support in mdb
24
# Dwarf version 2 can be recognized by mdb
35
# The default dwarf version in gdb is not recognized by mdb

arch/arc/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24

35
zephyr_library_sources(

arch/arc/core/mpu/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24

35
zephyr_library_sources_if_kconfig(arc_core_mpu.c)

arch/arm/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
set(ARCH_FOR_cortex-m0 armv6s-m )
24
set(ARCH_FOR_cortex-m0plus armv6s-m )
35
set(ARCH_FOR_cortex-m3 armv7-m )

arch/arm/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24

35
zephyr_compile_options_ifdef(CONFIG_COVERAGE_GCOV

arch/arm/core/cortex_m/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24

35
zephyr_library_sources(
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_sources(arm_core_cmse.c)

arch/arm/core/cortex_m/mpu/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24

35
zephyr_library_sources( arm_core_mpu.c)

arch/arm/core/cortex_m/tz/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# '-mcmse' enables the generation of code for the Secure state of the ARMv8-M
24
# Security Extensions. This option is required when building a Secure firmware.
35
zephyr_compile_options(-mcmse)

arch/common/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# Put functions and data in their own binary sections so that ld can
24
# garbage collect them
35
zephyr_cc_option(-ffunction-sections -fdata-sections)

arch/nios2/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
if(CONFIG_GP_NONE)
24
set(gpopt none)
35
elseif(CONFIG_GP_LOCAL)

arch/nios2/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_sources(
24
thread.c
35
cpu_idle.c

arch/posix/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_compile_options(
24
-fno-freestanding
35
-m32

arch/posix/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
35
zephyr_library_sources(

arch/riscv32/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
add_subdirectory(core)
24

35
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-littleriscv)

arch/riscv32/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_sources(
24
cpu_idle.c
35
fatal.c

arch/x86/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13

24
# Find out if we are optimizing for size
35
get_target_property(zephyr_COMPILE_OPTIONS zephyr_interface INTERFACE_COMPILE_OPTIONS)

arch/x86/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24

35
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")

arch/x86_64/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
set(X86_64_BASE_CFLAGS
24
-ffreestanding
35
-fno-pic

arch/x86_64/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
config ARCH
24
default "x86_64"
35

arch/x86_64/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24

35
zephyr_library_sources(

arch/x86_64/core/Makefile.xuk

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# Any linux host toolchain should work as a default
24
CC ?= gcc
35
OBJCOPY ?= objcopy

arch/x86_64/core/xuk-stub32.ld

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
13
ENTRY(_start)
24

35
PHDRS {

arch/x86_64/core/xuk64.ld

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
13
SECTIONS {
24
. = 0x100000;
35

arch/xtensa/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-xtensa-le)
24
add_subdirectory(core)

arch/xtensa/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_cc_option(-mlongcalls)
24
zephyr_sources(
35
cpu_idle.c

arch/xtensa/core/startup/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
if(CONFIG_XTENSA_RESET_VECTOR)
24
zephyr_library()
35

boards/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# To avoid a lot of empty CMakeLists.txt files we assume it is not an
24
# error if it is missing
35

boards/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
config BOARD_DEPRECATED
24
string
35
help
+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
config BOARD_ARDUINO_101_SSS
24
bool "Arduino 101 Sensor Sub System"
35
depends on SOC_QUARK_SE_C1000_SS

boards/arc/arduino_101_sss/Kconfig.defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
if BOARD_ARDUINO_101_SSS
24

35
config BOARD

boards/arc/arduino_101_sss/arduino_101_sss.dts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
13
/dts-v1/;
24

35
#include <mem.h>

boards/arc/arduino_101_sss/arduino_101_sss_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_QUARK_SE_C1000_SS=y
35
CONFIG_BOARD_ARDUINO_101_SSS=y

boards/arc/arduino_101_sss/board.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
if(DEFINED ENV{ZEPHYR_FLASH_OVER_DFU})
24
set(BOARD_FLASH_RUNNER dfu-util)
35
else()
+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_sources(pmodmux.c)
24
zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)

boards/arc/em_starterkit/Kconfig.defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
if BOARD_EM_STARTERKIT
24

35
config BOARD

boards/arc/em_starterkit/board.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# TODO: can this board just use the usual openocd runner?
24
set(BOARD_FLASH_RUNNER em-starterkit)
35
set(BOARD_DEBUG_RUNNER em-starterkit)

boards/arc/em_starterkit/board.dtsi

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
13
/ {
24
aliases {
35
led0 = &led0;

boards/arc/em_starterkit/em_starterkit_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_EMSK=y
35
CONFIG_SOC_EMSK_EM9D=y

boards/arc/em_starterkit/em_starterkit_em11d_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_EMSK=y
35
CONFIG_SOC_EMSK_EM11D=y

boards/arc/em_starterkit/em_starterkit_em7d_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_EMSK=y
35
CONFIG_SOC_EMSK_EM7D=y

boards/arc/em_starterkit/em_starterkit_em7d_v22_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_EMSK=y
35
CONFIG_SOC_EMSK_EM7D=y

boards/arc/iotdk/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)

boards/arc/iotdk/Kconfig.defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
if BOARD_IOTDK
24

35
config BOARD

boards/arc/iotdk/board.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# TODO: can this board just use the usual openocd runner?
24
set(BOARD_FLASH_RUNNER em-starterkit)
35
set(BOARD_DEBUG_RUNNER em-starterkit)

boards/arc/iotdk/board.dtsi

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+

boards/arc/iotdk/iotdk_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_ARC_IOT=y
35
CONFIG_BOARD_IOTDK=y

boards/arc/nsim_em/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)

boards/arc/nsim_em/Kconfig.defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
if BOARD_NSIM_EM
24

35
config BOARD

boards/arc/nsim_em/board.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
set(EMU_PLATFORM nsim)
24

35
set(BOARD_FLASH_RUNNER arc-nsim)

boards/arc/nsim_em/nsim_em_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_NSIM=y
35
CONFIG_SOC_NSIM_EM=y

boards/arc/nsim_em/nsim_em_mpu_stack_guard_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_NSIM=y
35
CONFIG_SOC_NSIM_EM=y

boards/arc/nsim_em/nsim_sem_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_NSIM=y
35
CONFIG_SOC_NSIM_SEM=y

boards/arc/nsim_em/nsim_sem_mpu_stack_guard_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_NSIM=y
35
CONFIG_SOC_NSIM_SEM=y
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
config BOARD_QUARK_SE_C1000_DEVBOARD_SS
24
bool "Quark SE C1000 - Sensor Sub System"
35
depends on SOC_QUARK_SE_C1000_SS

boards/arc/quark_se_c1000_ss_devboard/Kconfig.defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
if BOARD_QUARK_SE_C1000_DEVBOARD_SS
24

35
config BOARD
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
board_runner_args(openocd --cmd-pre-load "targets 1")
24
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

boards/arc/quark_se_c1000_ss_devboard/quark_se_c1000_ss_devboard.dts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
13
/dts-v1/;
24

35
#include <mem.h>

boards/arc/quark_se_c1000_ss_devboard/quark_se_c1000_ss_devboard_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARC=y
24
CONFIG_SOC_QUARK_SE_C1000_SS=y
35
CONFIG_BOARD_QUARK_SE_C1000_DEVBOARD_SS=y

boards/arm/96b_argonkey/96b_argonkey_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARM=y
24
CONFIG_SOC_SERIES_STM32F4X=y
35
CONFIG_SOC_STM32F412CG=y
+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24
zephyr_library_sources(pinmux.c)
35
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

boards/arm/96b_carbon/96b_carbon_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARM=y
24
CONFIG_SOC_SERIES_STM32F4X=y
35
CONFIG_SOC_STM32F401XE=y

boards/arm/96b_carbon/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
zephyr_library()
24
zephyr_library_sources(pinmux.c)
35
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

boards/arm/96b_carbon/board.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
board_runner_args(dfu-util "--pid=0483:df11" "--alt=0" "--dfuse")
24

35
include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake)

boards/arm/96b_carbon_nrf51/96b_carbon_nrf51_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARM=y
24
CONFIG_SOC_FAMILY_NRF=y
35
CONFIG_SOC_SERIES_NRF51X=y

boards/arm/96b_neonkey/96b_neonkey_defconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
CONFIG_ARM=y
24
CONFIG_SOC_SERIES_STM32F4X=y
35
CONFIG_SOC_STM32F411XE=y

0 commit comments

Comments
 (0)