2021-11-18 12:21:52 -05:00
|
|
|
# This file configures the check_copyright pre-commit hook
|
|
|
|
#
|
|
|
|
# Values from the DEFAULT section are used, when the particular option is not set in a section.
|
|
|
|
# The DEFAULT section also contains all options with description
|
|
|
|
#
|
|
|
|
# Section name is just an identifier, keep it unique.
|
|
|
|
# Section must contain the option 'include' and at least one other option
|
|
|
|
#
|
|
|
|
# The sections are matched in the order they are in this config file, the last section which matches is used.
|
|
|
|
# This means that the order of the sections should be from broad to specific.
|
|
|
|
# For example:
|
|
|
|
# sections:
|
|
|
|
# tools/
|
|
|
|
# tools/ci/file.c
|
|
|
|
# tools/ci/
|
|
|
|
# files:
|
|
|
|
# tools/file.c -> section tools/
|
|
|
|
# tools/ci/file.c -> section tools/ci/
|
|
|
|
#
|
|
|
|
|
|
|
|
# don't modify this section!
|
|
|
|
DEFAULT:
|
|
|
|
perform_check: yes # should the check be performed?
|
|
|
|
# Sections setting this to 'no' don't need to include any other options as they are ignored
|
|
|
|
# When a file is using a section with the option set to 'no', no checks are performed.
|
|
|
|
|
|
|
|
# what licenses (or license expressions) are allowed for files in this section
|
|
|
|
# when setting this option in a section, you need to list all the allowed licenses
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
license_for_new_files: Apache-2.0 # license to be used when inserting a new copyright notice
|
|
|
|
new_notice_c: | # notice for new C, CPP, H, HPP and LD files
|
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: {years} Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: {license}
|
|
|
|
*/
|
|
|
|
new_notice_python: | # notice for new python files
|
|
|
|
# SPDX-FileCopyrightText: {years} Espressif Systems (Shanghai) CO LTD
|
|
|
|
# SPDX-License-Identifier: {license}
|
|
|
|
|
|
|
|
# comment lines matching:
|
|
|
|
# SPDX-FileCopyrightText: year[-year] Espressif Systems
|
|
|
|
# or
|
|
|
|
# SPDX-FileContributor: year[-year] Espressif Systems
|
|
|
|
# are replaced with this template prefixed with the correct comment notation (# or // or *) and SPDX- notation
|
|
|
|
espressif_copyright: '{years} Espressif Systems (Shanghai) CO LTD'
|
|
|
|
|
|
|
|
# this section sets the default license for examples and unit tests of components
|
|
|
|
examples_and_unit_tests:
|
|
|
|
include:
|
|
|
|
- 'examples/'
|
|
|
|
- 'components/**/test/**'
|
2022-01-18 02:17:01 -05:00
|
|
|
- 'components/**/test_apps/**'
|
2022-02-11 01:58:50 -05:00
|
|
|
- 'tools/test_apps/**'
|
2023-01-04 23:28:47 -05:00
|
|
|
- '**/pytest_*.py'
|
2021-11-18 12:21:52 -05:00
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
2021-12-06 10:54:56 -05:00
|
|
|
- Unlicense
|
|
|
|
- CC0-1.0
|
2021-11-18 12:21:52 -05:00
|
|
|
license_for_new_files: Unlicense OR CC0-1.0
|
|
|
|
|
2022-01-14 10:44:44 -05:00
|
|
|
lwip_component:
|
|
|
|
include:
|
|
|
|
- 'components/lwip/**'
|
2022-05-11 10:01:48 -04:00
|
|
|
- 'components/esp_netif/lwip/**'
|
2022-07-22 04:14:37 -04:00
|
|
|
- 'examples/common_components/protocol_examples_tapif_io/lwip'
|
2022-01-14 10:44:44 -05:00
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- BSD-3-Clause
|
|
|
|
license_for_new_files: Apache-2.0
|
|
|
|
|
2022-07-04 05:53:42 -04:00
|
|
|
newlib_component:
|
|
|
|
include:
|
2022-07-21 07:24:42 -04:00
|
|
|
- 'components/newlib/platform_include/**'
|
|
|
|
- 'components/newlib/port/**'
|
|
|
|
- 'components/newlib/priv_include/**'
|
|
|
|
- 'components/newlib/*.c'
|
|
|
|
- 'components/newlib/*.h'
|
2022-07-04 05:53:42 -04:00
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- BSD-2-Clause-FreeBSD AND Apache-2.0
|
|
|
|
license_for_new_files: Apache-2.0
|
|
|
|
|
2022-02-24 08:07:53 -05:00
|
|
|
asio_component:
|
|
|
|
include:
|
|
|
|
- 'components/asio/port/**'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- BSL-1.0
|
|
|
|
|
2022-01-29 03:49:56 -05:00
|
|
|
freertos_component:
|
|
|
|
include:
|
|
|
|
- 'components/freertos/**'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0 #Files added to the freertos added by us
|
|
|
|
- MIT #FreeRTOS sources and port files
|
|
|
|
|
2022-05-27 03:06:42 -04:00
|
|
|
ethernet_component:
|
|
|
|
include:
|
2022-06-27 05:19:05 -04:00
|
|
|
- 'components/esp_eth/include/**'
|
|
|
|
- 'components/esp_eth/src/**'
|
2022-05-27 03:06:42 -04:00
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- MIT # To allow contributed drivers
|
|
|
|
|
2024-01-23 23:13:32 -05:00
|
|
|
linux_component:
|
|
|
|
include:
|
|
|
|
- 'components/linux/fls.c'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- BSD-4-Clause-UC
|
|
|
|
|
2022-02-03 11:41:42 -05:00
|
|
|
systemview:
|
|
|
|
include:
|
|
|
|
- 'components/app_trace/sys_view'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
2022-11-28 00:33:05 -05:00
|
|
|
- BSD-1-Clause
|
2022-02-03 11:41:42 -05:00
|
|
|
license_for_new_files: Apache-2.0
|
|
|
|
|
2022-02-21 16:09:24 -05:00
|
|
|
spiffs:
|
|
|
|
include:
|
|
|
|
- 'components/spiffs/include/'
|
|
|
|
allowed_licenses:
|
|
|
|
- MIT
|
|
|
|
- Apache-2.0
|
|
|
|
|
2022-02-25 06:44:53 -05:00
|
|
|
sdmmc:
|
|
|
|
include:
|
2023-11-10 02:52:25 -05:00
|
|
|
- 'components/esp_driver_sdmmc/include/driver/'
|
2022-02-25 06:44:53 -05:00
|
|
|
- 'components/sdmmc/'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- ISC
|
|
|
|
|
2022-04-05 13:47:10 -04:00
|
|
|
argtable3:
|
|
|
|
include:
|
|
|
|
- 'components/console/argtable3/'
|
|
|
|
allowed_licenses:
|
2022-08-28 22:54:03 -04:00
|
|
|
- BSD-3-Clause
|
|
|
|
- Apache-2.0
|
|
|
|
|
|
|
|
md5_hash:
|
|
|
|
include:
|
|
|
|
- 'components/esp_rom/include/**/rom/md5_hash.h'
|
|
|
|
allowed_licenses:
|
2022-04-05 13:47:10 -04:00
|
|
|
- BSD-3-Clause
|
|
|
|
- Apache-2.0
|
|
|
|
|
2024-01-15 10:30:20 -05:00
|
|
|
# OpenOCD project is licensed under GPLv2.0, which is incompatible with Apache-2.0
|
|
|
|
# The source files built by the OpenOCD stub flasher, need to be dual-licensed for the upstreaming.
|
|
|
|
# MIT is chosen as the dual license, ensuring compatibility with GPLv2.0.
|
|
|
|
app_trace:
|
|
|
|
include:
|
|
|
|
- components/app_trace/app_trace.c
|
|
|
|
- components/app_trace/app_trace_membufs_proto.c
|
|
|
|
- components/app_trace/app_trace_util.c
|
|
|
|
- components/app_trace/port/riscv/port.c
|
|
|
|
- components/app_trace/port/xtensa/port.c
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- MIT
|
|
|
|
|
2022-06-16 05:06:39 -04:00
|
|
|
xtensa:
|
|
|
|
include:
|
|
|
|
- 'components/xtensa/**'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0 #Files added to the xtensa component by us
|
|
|
|
- MIT #Cadence sources
|
2023-01-04 23:28:47 -05:00
|
|
|
|
2022-04-12 13:41:44 -04:00
|
|
|
tinyusb:
|
|
|
|
include:
|
|
|
|
- 'examples/peripherals/usb/device/tusb_midi/'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
2022-07-22 04:20:21 -04:00
|
|
|
- MIT # Example derived from TinyUSB code by HaThach
|
|
|
|
- Unlicense
|
|
|
|
- CC0-1.0
|
2022-06-16 05:06:39 -04:00
|
|
|
|
2022-08-01 03:12:32 -04:00
|
|
|
# Portions of the USB stack in ROM are derived from Zephyr project,
|
|
|
|
# with files licensed under a mix of Apache and BSD-3-Clause licenses.
|
|
|
|
esp_rom_usb:
|
|
|
|
include:
|
|
|
|
- 'components/esp_rom/include/*/rom/usb/'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- BSD-3-Clause
|
|
|
|
|
2023-01-25 06:15:01 -05:00
|
|
|
protocol_examples_common_component:
|
|
|
|
include:
|
|
|
|
- 'examples/common_components/protocol_examples_common/'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- BSD-2-Clause # Contains URI encoding/decoding code from nginx
|
|
|
|
- Unlicense
|
|
|
|
- CC0-1.0
|
|
|
|
license_for_new_files: Unlicense OR CC0-1.0
|
|
|
|
|
2023-01-27 02:24:27 -05:00
|
|
|
zigbee:
|
|
|
|
include:
|
|
|
|
- 'examples/zigbee/'
|
|
|
|
allowed_licenses:
|
|
|
|
- Apache-2.0
|
|
|
|
- LicenseRef-Included
|
|
|
|
|
2021-11-18 12:21:52 -05:00
|
|
|
# files matching this section do not perform the check
|
|
|
|
# file patterns starting with ! are negated, meaning files matching them won't match the section.
|
|
|
|
ignore:
|
|
|
|
perform_check: no
|
|
|
|
include:
|
|
|
|
- components/bt/host/nimble/nimble/
|
|
|
|
- components/bt/common/osi/
|
2022-06-17 09:37:48 -04:00
|
|
|
- components/bt/porting/ext/
|
|
|
|
- components/bt/porting/nimble/
|
2021-12-31 02:31:30 -05:00
|
|
|
- components/http_parser/
|
2021-11-18 12:21:52 -05:00
|
|
|
- components/wpa_supplicant/src/
|
|
|
|
- '!components/wpa_supplicant/esp_supplicant/'
|
2023-06-16 11:01:56 -04:00
|
|
|
- components/wpa_supplicant/esp_supplicant/src/crypto/fastpbkdf2*
|
2021-11-18 12:21:52 -05:00
|
|
|
- components/bt/host/bluedroid/
|
|
|
|
- '!components/bt/host/bluedroid/api/'
|
|
|
|
- '!components/bt/host/bluedroid/btc/'
|
2022-10-17 14:32:06 -04:00
|
|
|
- components/esp_local_ctrl/proto-c/
|
|
|
|
- components/esp_local_ctrl/python/
|
|
|
|
- components/protocomm/proto-c/
|
|
|
|
- components/protocomm/python/
|
|
|
|
- components/wifi_provisioning/proto-c/
|
|
|
|
- components/wifi_provisioning/python/
|