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 <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-04-06 09:08:09 -04:00
parent 8287f7c855
commit 3ae52624ff
1332 changed files with 2676 additions and 4 deletions

View File

@ -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

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
add_definitions(-D__ZEPHYR_SUPERVISOR__)
add_subdirectory(common)

View File

@ -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

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources_if_kconfig(arc_core_mpu.c)

View File

@ -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 )

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_compile_options_ifdef(CONFIG_COVERAGE_GCOV

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(

View File

@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_sources(arm_core_cmse.c)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources( arm_core_mpu.c)

View File

@ -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)

View File

@ -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)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_GP_NONE)
set(gpopt none)
elseif(CONFIG_GP_LOCAL)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_sources(
thread.c
cpu_idle.c

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_compile_options(
-fno-freestanding
-m32

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
zephyr_library_sources(

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
add_subdirectory(core)
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-littleriscv)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_sources(
cpu_idle.c
fatal.c

View File

@ -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)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
set(X86_64_BASE_CFLAGS
-ffreestanding
-fno-pic

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
config ARCH
default "x86_64"

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Any linux host toolchain should work as a default
CC ?= gcc
OBJCOPY ?= objcopy

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */
ENTRY(_start)
PHDRS {

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */
SECTIONS {
. = 0x100000;

View File

@ -1,2 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-xtensa-le)
add_subdirectory(core)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_cc_option(-mlongcalls)
zephyr_sources(
cpu_idle.c

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_XTENSA_RESET_VECTOR)
zephyr_library()

View File

@ -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

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
config BOARD_DEPRECATED
string
help

View File

@ -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

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if BOARD_ARDUINO_101_SSS
config BOARD

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */
/dts-v1/;
#include <mem.h>

View File

@ -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

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if(DEFINED ENV{ZEPHYR_FLASH_OVER_DFU})
set(BOARD_FLASH_RUNNER dfu-util)
else()

View File

@ -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)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if BOARD_EM_STARTERKIT
config BOARD

View File

@ -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)

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */
/ {
aliases {
led0 = &led0;

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM9D=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM11D=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM7D=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM7D=y

View File

@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if BOARD_IOTDK
config BOARD

View File

@ -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)

View File

@ -0,0 +1,2 @@
/* SPDX-License-Identifier: Apache-2.0 */

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_ARC_IOT=y
CONFIG_BOARD_IOTDK=y

View File

@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if BOARD_NSIM_EM
config BOARD

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
set(EMU_PLATFORM nsim)
set(BOARD_FLASH_RUNNER arc-nsim)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_NSIM=y
CONFIG_SOC_NSIM_EM=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_NSIM=y
CONFIG_SOC_NSIM_EM=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_NSIM=y
CONFIG_SOC_NSIM_SEM=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARC=y
CONFIG_SOC_NSIM=y
CONFIG_SOC_NSIM_SEM=y

View File

@ -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

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if BOARD_QUARK_SE_C1000_DEVBOARD_SS
config BOARD

View File

@ -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)

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */
/dts-v1/;
#include <mem.h>

View File

@ -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

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_SERIES_STM32F4X=y
CONFIG_SOC_STM32F412CG=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_SERIES_STM32F4X=y
CONFIG_SOC_STM32F401XE=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

View File

@ -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)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_NRF=y
CONFIG_SOC_SERIES_NRF51X=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_SERIES_STM32F4X=y
CONFIG_SOC_STM32F411XE=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_NRF=y
CONFIG_SOC_SERIES_NRF52X=y

View File

@ -1,2 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(pyocd "--target=nrf52")
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_BOARD_96B_STM32_SENSOR_MEZ=y
CONFIG_SOC_SERIES_STM32F4X=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

View File

@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_PINMUX_SAM0)
zephyr_library()
zephyr_library_sources(pinmux.c)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_SAM0=y
CONFIG_SOC_SERIES_SAMD21=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_PINMUX_SAM0)
zephyr_library()
zephyr_library_sources(pinmux.c)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_SAM0=y
CONFIG_SOC_SERIES_SAMD21=y

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */
/dts-v1/;
#include <atmel/sam3x.dtsi>

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_SAM=y
CONFIG_SOC_SERIES_SAM3X=y

View File

@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
include(${ZEPHYR_BASE}/boards/common/bossac.board.cmake)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_PINMUX_SAM0)
zephyr_library()
zephyr_library_sources(pinmux.c)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_SAM0=y
CONFIG_SOC_SERIES_SAMD21=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_PINMUX_SAM0)
zephyr_library()
zephyr_library_sources(pinmux.c)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_SAM0=y
CONFIG_SOC_SERIES_SAMD20=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Zephyr Kernel Configuration
CONFIG_ARM=y
CONFIG_SOC_SERIES_STM32L0X=y

View File

@ -1 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_NRF=y
CONFIG_SOC_SERIES_NRF51X=y

View File

@ -1,2 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(pyocd "--target=nrf51")
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_NRF=y
CONFIG_SOC_SERIES_NRF52X=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(nrfjprog "--nrf-family=NRF52")
board_runner_args(jlink "--device=nrf52" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_ARM=y
CONFIG_SOC_FAMILY_NRF=y
CONFIG_SOC_SERIES_NRF52X=y

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(nrfjprog "--nrf-family=NRF52")
board_runner_args(jlink "--device=nrf52" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(pinmux.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources(
pinmux.c

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Kconfig - TI SimpleLink CC3220SF LaunchXL Board
#

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Kconfig - TI CC3220SF LaunchXL board configuration
#

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Use the TI OpenOCD (by default in /usr/local/openocd)
# See the Zephyr project CC3220SF_LAUNCHXL documentation on
# flashing prerequisites.

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */
/dts-v1/;
#include <ti/cc3220sf.dtsi>

Some files were not shown because too many files have changed in this diff Show More