Skip to content

Commit

Permalink
license: cleanup: add SPDX Apache-2.0 license identifier
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nashif committed Apr 7, 2019
1 parent 8287f7c commit 3ae5262
Show file tree
Hide file tree
Showing 1,332 changed files with 2,676 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# *DOCUMENTATION*
#
# Note that this is *NOT* the top-level CMakeLists.txt. That's in the
Expand Down
2 changes: 2 additions & 0 deletions arch/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

add_definitions(-D__ZEPHYR_SUPERVISOR__)

add_subdirectory(common)
Expand Down
2 changes: 2 additions & 0 deletions arch/arc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# Enable debug support in mdb
# Dwarf version 2 can be recognized by mdb
# The default dwarf version in gdb is not recognized by mdb
Expand Down
2 changes: 2 additions & 0 deletions arch/arc/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(
Expand Down
2 changes: 2 additions & 0 deletions arch/arc/core/mpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources_if_kconfig(arc_core_mpu.c)
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

set(ARCH_FOR_cortex-m0 armv6s-m )
set(ARCH_FOR_cortex-m0plus armv6s-m )
set(ARCH_FOR_cortex-m3 armv7-m )
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_compile_options_ifdef(CONFIG_COVERAGE_GCOV
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/core/cortex_m/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/core/cortex_m/cmse/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(arm_core_cmse.c)
2 changes: 2 additions & 0 deletions arch/arm/core/cortex_m/mpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources( arm_core_mpu.c)
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/core/cortex_m/tz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# '-mcmse' enables the generation of code for the Secure state of the ARMv8-M
# Security Extensions. This option is required when building a Secure firmware.
zephyr_compile_options(-mcmse)
Expand Down
2 changes: 2 additions & 0 deletions arch/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# Put functions and data in their own binary sections so that ld can
# garbage collect them
zephyr_cc_option(-ffunction-sections -fdata-sections)
Expand Down
2 changes: 2 additions & 0 deletions arch/nios2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_GP_NONE)
set(gpopt none)
elseif(CONFIG_GP_LOCAL)
Expand Down
2 changes: 2 additions & 0 deletions arch/nios2/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(
thread.c
cpu_idle.c
Expand Down
2 changes: 2 additions & 0 deletions arch/posix/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_compile_options(
-fno-freestanding
-m32
Expand Down
2 changes: 2 additions & 0 deletions arch/posix/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
zephyr_library_sources(
Expand Down
2 changes: 2 additions & 0 deletions arch/riscv32/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(core)

set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-littleriscv)
2 changes: 2 additions & 0 deletions arch/riscv32/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(
cpu_idle.c
fatal.c
Expand Down
2 changes: 2 additions & 0 deletions arch/x86/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0


# Find out if we are optimizing for size
get_target_property(zephyr_COMPILE_OPTIONS zephyr_interface INTERFACE_COMPILE_OPTIONS)
Expand Down
2 changes: 2 additions & 0 deletions arch/x86/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
Expand Down
2 changes: 2 additions & 0 deletions arch/x86_64/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

set(X86_64_BASE_CFLAGS
-ffreestanding
-fno-pic
Expand Down
2 changes: 2 additions & 0 deletions arch/x86_64/Kconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

config ARCH
default "x86_64"

Expand Down
2 changes: 2 additions & 0 deletions arch/x86_64/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(
Expand Down
2 changes: 2 additions & 0 deletions arch/x86_64/core/Makefile.xuk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# Any linux host toolchain should work as a default
CC ?= gcc
OBJCOPY ?= objcopy
Expand Down
2 changes: 2 additions & 0 deletions arch/x86_64/core/xuk-stub32.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

ENTRY(_start)

PHDRS {
Expand Down
2 changes: 2 additions & 0 deletions arch/x86_64/core/xuk64.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

SECTIONS {
. = 0x100000;

Expand Down
2 changes: 2 additions & 0 deletions arch/xtensa/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-xtensa-le)
add_subdirectory(core)
2 changes: 2 additions & 0 deletions arch/xtensa/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_cc_option(-mlongcalls)
zephyr_sources(
cpu_idle.c
Expand Down
2 changes: 2 additions & 0 deletions arch/xtensa/core/startup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_XTENSA_RESET_VECTOR)
zephyr_library()

Expand Down
2 changes: 2 additions & 0 deletions boards/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# To avoid a lot of empty CMakeLists.txt files we assume it is not an
# error if it is missing

Expand Down
2 changes: 2 additions & 0 deletions boards/Kconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_DEPRECATED
string
help
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/arduino_101_sss/Kconfig.board
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_ARDUINO_101_SSS
bool "Arduino 101 Sensor Sub System"
depends on SOC_QUARK_SE_C1000_SS
2 changes: 2 additions & 0 deletions boards/arc/arduino_101_sss/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if BOARD_ARDUINO_101_SSS

config BOARD
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/arduino_101_sss/arduino_101_sss.dts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/dts-v1/;

#include <mem.h>
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/arduino_101_sss/arduino_101_sss_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_QUARK_SE_C1000_SS=y
CONFIG_BOARD_ARDUINO_101_SSS=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/arduino_101_sss/board.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if(DEFINED ENV{ZEPHYR_FLASH_OVER_DFU})
set(BOARD_FLASH_RUNNER dfu-util)
else()
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/em_starterkit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources(pmodmux.c)
zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)
2 changes: 2 additions & 0 deletions boards/arc/em_starterkit/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if BOARD_EM_STARTERKIT

config BOARD
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/em_starterkit/board.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# TODO: can this board just use the usual openocd runner?
set(BOARD_FLASH_RUNNER em-starterkit)
set(BOARD_DEBUG_RUNNER em-starterkit)
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/em_starterkit/board.dtsi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
aliases {
led0 = &led0;
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/em_starterkit/em_starterkit_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM9D=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/em_starterkit/em_starterkit_em11d_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM11D=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/em_starterkit/em_starterkit_em7d_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM7D=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/em_starterkit/em_starterkit_em7d_v22_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM7D=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/iotdk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)
2 changes: 2 additions & 0 deletions boards/arc/iotdk/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if BOARD_IOTDK

config BOARD
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/iotdk/board.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

# TODO: can this board just use the usual openocd runner?
set(BOARD_FLASH_RUNNER em-starterkit)
set(BOARD_DEBUG_RUNNER em-starterkit)
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/iotdk/board.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* SPDX-License-Identifier: Apache-2.0 */

2 changes: 2 additions & 0 deletions boards/arc/iotdk/iotdk_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_ARC_IOT=y
CONFIG_BOARD_IOTDK=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/nsim_em/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)
2 changes: 2 additions & 0 deletions boards/arc/nsim_em/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if BOARD_NSIM_EM

config BOARD
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/nsim_em/board.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

set(EMU_PLATFORM nsim)

set(BOARD_FLASH_RUNNER arc-nsim)
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/nsim_em/nsim_em_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_NSIM=y
CONFIG_SOC_NSIM_EM=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/nsim_em/nsim_em_mpu_stack_guard_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_NSIM=y
CONFIG_SOC_NSIM_EM=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/nsim_em/nsim_sem_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_NSIM=y
CONFIG_SOC_NSIM_SEM=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/nsim_em/nsim_sem_mpu_stack_guard_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_NSIM=y
CONFIG_SOC_NSIM_SEM=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/quark_se_c1000_ss_devboard/Kconfig.board
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_QUARK_SE_C1000_DEVBOARD_SS
bool "Quark SE C1000 - Sensor Sub System"
depends on SOC_QUARK_SE_C1000_SS
2 changes: 2 additions & 0 deletions boards/arc/quark_se_c1000_ss_devboard/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if BOARD_QUARK_SE_C1000_DEVBOARD_SS

config BOARD
Expand Down
2 changes: 2 additions & 0 deletions boards/arc/quark_se_c1000_ss_devboard/board.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

board_runner_args(openocd --cmd-pre-load "targets 1")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/dts-v1/;

#include <mem.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARC=y
CONFIG_SOC_QUARK_SE_C1000_SS=y
CONFIG_BOARD_QUARK_SE_C1000_DEVBOARD_SS=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/96b_argonkey/96b_argonkey_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARM=y
CONFIG_SOC_SERIES_STM32F4X=y
CONFIG_SOC_STM32F412CG=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/96b_argonkey/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
2 changes: 2 additions & 0 deletions boards/arm/96b_carbon/96b_carbon_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARM=y
CONFIG_SOC_SERIES_STM32F4X=y
CONFIG_SOC_STM32F401XE=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/96b_carbon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
2 changes: 2 additions & 0 deletions boards/arm/96b_carbon/board.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

board_runner_args(dfu-util "--pid=0483:df11" "--alt=0" "--dfuse")

include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake)
2 changes: 2 additions & 0 deletions boards/arm/96b_carbon_nrf51/96b_carbon_nrf51_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARM=y
CONFIG_SOC_FAMILY_NRF=y
CONFIG_SOC_SERIES_NRF51X=y
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/96b_neonkey/96b_neonkey_defconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_ARM=y
CONFIG_SOC_SERIES_STM32F4X=y
CONFIG_SOC_STM32F411XE=y
Expand Down
Loading

0 comments on commit 3ae5262

Please sign in to comment.