diff --git a/components/spi_flash/sim/stubs/app_update/esp_ota_eps.c b/components/spi_flash/sim/stubs/app_update/esp_ota_eps.c index 59ed6245f68..5741705c05c 100644 --- a/components/spi_flash/sim/stubs/app_update/esp_ota_eps.c +++ b/components/spi_flash/sim/stubs/app_update/esp_ota_eps.c @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system. + * The source file used normally for ESP-IDF has the same name but is located elsewhere. + */ #include "esp_ota_ops.h" #include "esp_partition.h" diff --git a/components/spi_flash/sim/stubs/bootloader_support/include/bootloader_common.h b/components/spi_flash/sim/stubs/bootloader_support/include/bootloader_common.h index 856eecd7af1..2f2fecda5fd 100644 --- a/components/spi_flash/sim/stubs/bootloader_support/include/bootloader_common.h +++ b/components/spi_flash/sim/stubs/bootloader_support/include/bootloader_common.h @@ -1,17 +1,11 @@ -// Copyright 2018 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include #include diff --git a/components/spi_flash/sim/stubs/bootloader_support/src/bootloader_common.c b/components/spi_flash/sim/stubs/bootloader_support/src/bootloader_common.c index c940fb4e752..6c1772e0eb6 100644 --- a/components/spi_flash/sim/stubs/bootloader_support/src/bootloader_common.c +++ b/components/spi_flash/sim/stubs/bootloader_support/src/bootloader_common.c @@ -1,16 +1,11 @@ -// Copyright 2018 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system. + * The source file used normally for ESP-IDF has the same name but is located elsewhere. + */ #include "esp_err.h" esp_err_t bootloader_common_get_sha256_of_partition (uint32_t address, uint32_t size, int type, uint8_t *out_sha_256) diff --git a/components/spi_flash/sim/stubs/driver/include/driver/sdmmc_host.h b/components/spi_flash/sim/stubs/driver/include/driver/sdmmc_host.h index efabda7df84..6deb3ac8195 100644 --- a/components/spi_flash/sim/stubs/driver/include/driver/sdmmc_host.h +++ b/components/spi_flash/sim/stubs/driver/include/driver/sdmmc_host.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include diff --git a/components/spi_flash/sim/stubs/driver/include/driver/sdmmc_types.h b/components/spi_flash/sim/stubs/driver/include/driver/sdmmc_types.h index 970e40e3c04..5bf36c6b3b7 100644 --- a/components/spi_flash/sim/stubs/driver/include/driver/sdmmc_types.h +++ b/components/spi_flash/sim/stubs/driver/include/driver/sdmmc_types.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #if defined(__cplusplus) diff --git a/components/spi_flash/sim/stubs/esp32/crc.cpp b/components/spi_flash/sim/stubs/esp32/crc.cpp index 49980776c30..8b1382d8d27 100644 --- a/components/spi_flash/sim/stubs/esp32/crc.cpp +++ b/components/spi_flash/sim/stubs/esp32/crc.cpp @@ -1,16 +1,11 @@ -// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at - -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system. + * The source file used normally for ESP-IDF has the same name but is located elsewhere. + */ #include #include diff --git a/components/spi_flash/sim/stubs/esp32/esp_random.c b/components/spi_flash/sim/stubs/esp32/esp_random.c index 8ada60570d2..1492cef984f 100644 --- a/components/spi_flash/sim/stubs/esp32/esp_random.c +++ b/components/spi_flash/sim/stubs/esp32/esp_random.c @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system. + * The source file used normally for ESP-IDF has the same name but is located elsewhere. + */ #include #include #include diff --git a/components/spi_flash/sim/stubs/esp_common/esp_err.h b/components/spi_flash/sim/stubs/esp_common/esp_err.h index 105723976dd..d52b19f6577 100644 --- a/components/spi_flash/sim/stubs/esp_common/esp_err.h +++ b/components/spi_flash/sim/stubs/esp_common/esp_err.h @@ -1,16 +1,11 @@ -// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at - -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include diff --git a/components/spi_flash/sim/stubs/esp_timer/include/esp_timer.h b/components/spi_flash/sim/stubs/esp_timer/include/esp_timer.h index 647e113881f..e21b2902831 100644 --- a/components/spi_flash/sim/stubs/esp_timer/include/esp_timer.h +++ b/components/spi_flash/sim/stubs/esp_timer/include/esp_timer.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include diff --git a/components/spi_flash/sim/stubs/esp_timer/src/esp_timer.c b/components/spi_flash/sim/stubs/esp_timer/src/esp_timer.c index 657873cad96..cdaa7f9a533 100644 --- a/components/spi_flash/sim/stubs/esp_timer/src/esp_timer.c +++ b/components/spi_flash/sim/stubs/esp_timer/src/esp_timer.c @@ -1,17 +1,11 @@ -// Copyright 2020 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system. + * The source file used normally for ESP-IDF has the same name but is located elsewhere. + */ #include "esp_timer.h" int64_t esp_timer_get_time(void) diff --git a/components/spi_flash/sim/stubs/freertos/include/freertos/FreeRTOS.h b/components/spi_flash/sim/stubs/freertos/include/freertos/FreeRTOS.h index 5bafa772df6..0302cd1ba46 100644 --- a/components/spi_flash/sim/stubs/freertos/include/freertos/FreeRTOS.h +++ b/components/spi_flash/sim/stubs/freertos/include/freertos/FreeRTOS.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include "projdefs.h" diff --git a/components/spi_flash/sim/stubs/freertos/include/freertos/projdefs.h b/components/spi_flash/sim/stubs/freertos/include/freertos/projdefs.h index 2ec0b5f107b..b0c0b3b8386 100644 --- a/components/spi_flash/sim/stubs/freertos/include/freertos/projdefs.h +++ b/components/spi_flash/sim/stubs/freertos/include/freertos/projdefs.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #if defined(__cplusplus) diff --git a/components/spi_flash/sim/stubs/freertos/include/freertos/semphr.h b/components/spi_flash/sim/stubs/freertos/include/freertos/semphr.h index d49cafb99f6..06d5712d7a8 100644 --- a/components/spi_flash/sim/stubs/freertos/include/freertos/semphr.h +++ b/components/spi_flash/sim/stubs/freertos/include/freertos/semphr.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #if defined(__cplusplus) diff --git a/components/spi_flash/sim/stubs/freertos/include/freertos/task.h b/components/spi_flash/sim/stubs/freertos/include/freertos/task.h index 6f70f09beec..9574b70089b 100644 --- a/components/spi_flash/sim/stubs/freertos/include/freertos/task.h +++ b/components/spi_flash/sim/stubs/freertos/include/freertos/task.h @@ -1 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once diff --git a/components/spi_flash/sim/stubs/log/include/esp_log.h b/components/spi_flash/sim/stubs/log/include/esp_log.h index fd9a9d8319c..908eddbe6f9 100644 --- a/components/spi_flash/sim/stubs/log/include/esp_log.h +++ b/components/spi_flash/sim/stubs/log/include/esp_log.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include diff --git a/components/spi_flash/sim/stubs/log/log.c b/components/spi_flash/sim/stubs/log/log.c index 9750a8f19ab..144c9a9e67e 100644 --- a/components/spi_flash/sim/stubs/log/log.c +++ b/components/spi_flash/sim/stubs/log/log.c @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system. + * The source file used normally for ESP-IDF has the same name but is located elsewhere. + */ #include #include #include diff --git a/components/spi_flash/sim/stubs/newlib/include/sys/lock.h b/components/spi_flash/sim/stubs/newlib/include/sys/lock.h index b88cd5de375..38681ddb866 100644 --- a/components/spi_flash/sim/stubs/newlib/include/sys/lock.h +++ b/components/spi_flash/sim/stubs/newlib/include/sys/lock.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include diff --git a/components/spi_flash/sim/stubs/newlib/lock.c b/components/spi_flash/sim/stubs/newlib/lock.c index f221fdbda14..a5aa3ef8469 100644 --- a/components/spi_flash/sim/stubs/newlib/lock.c +++ b/components/spi_flash/sim/stubs/newlib/lock.c @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system. + * The source file used normally for ESP-IDF has the same name but is located elsewhere. + */ #include "sys/lock.h" void _lock_acquire(_lock_t *lock) diff --git a/components/spi_flash/sim/stubs/sdkconfig/sdkconfig.h b/components/spi_flash/sim/stubs/sdkconfig/sdkconfig.h index 6f70f09beec..e01f2c9fc50 100644 --- a/components/spi_flash/sim/stubs/sdkconfig/sdkconfig.h +++ b/components/spi_flash/sim/stubs/sdkconfig/sdkconfig.h @@ -1 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + */ #pragma once diff --git a/components/spi_flash/sim/stubs/sdmmc/include/sdmmc_cmd.h b/components/spi_flash/sim/stubs/sdmmc/include/sdmmc_cmd.h index d68711a95f0..09704e0928f 100644 --- a/components/spi_flash/sim/stubs/sdmmc/include/sdmmc_cmd.h +++ b/components/spi_flash/sim/stubs/sdmmc/include/sdmmc_cmd.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include "esp_err.h" diff --git a/components/spi_flash/sim/stubs/soc/include/hal/spi_flash_types.h b/components/spi_flash/sim/stubs/soc/include/hal/spi_flash_types.h index f816bea7ef3..1d843743c97 100644 --- a/components/spi_flash/sim/stubs/soc/include/hal/spi_flash_types.h +++ b/components/spi_flash/sim/stubs/soc/include/hal/spi_flash_types.h @@ -1,17 +1,11 @@ -// Copyright 2010-2019 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #ifdef __cplusplus diff --git a/components/spi_flash/sim/stubs/spi_flash/esp_partition.h b/components/spi_flash/sim/stubs/spi_flash/esp_partition.h index 824938760cc..632321e381d 100644 --- a/components/spi_flash/sim/stubs/spi_flash/esp_partition.h +++ b/components/spi_flash/sim/stubs/spi_flash/esp_partition.h @@ -1,17 +1,11 @@ -// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at - -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #ifndef __ESP_PARTITION_H__ #define __ESP_PARTITION_H__ diff --git a/components/spi_flash/sim/stubs/vfs/include/esp_vfs.h b/components/spi_flash/sim/stubs/vfs/include/esp_vfs.h index 36c6384a3e3..5cf699d5aee 100644 --- a/components/spi_flash/sim/stubs/vfs/include/esp_vfs.h +++ b/components/spi_flash/sim/stubs/vfs/include/esp_vfs.h @@ -1,3 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #pragma once #include "esp_err.h" diff --git a/components/spi_flash/sim/stubs/xtensa/esp_attr.h b/components/spi_flash/sim/stubs/xtensa/esp_attr.h index 2b59f16e951..ea1f0306346 100644 --- a/components/spi_flash/sim/stubs/xtensa/esp_attr.h +++ b/components/spi_flash/sim/stubs/xtensa/esp_attr.h @@ -1,16 +1,11 @@ -// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at - -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + * + * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system. + * The header file used normally for ESP-IDF has the same name but is located elsewhere. + */ #ifndef __ESP_ATTR_H__ #define __ESP_ATTR_H__