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 59ed6245f6..5741705c05 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 856eecd7af..2f2fecda5f 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 c940fb4e75..6c1772e0eb 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 efabda7df8..6deb3ac819 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 970e40e3c0..5bf36c6b3b 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 49980776c3..8b1382d8d2 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 8ada60570d..1492cef984 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 105723976d..d52b19f657 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 647e113881..e21b290283 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 657873cad9..cdaa7f9a53 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 5bafa772df..0302cd1ba4 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 2ec0b5f107..b0c0b3b838 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 d49cafb99f..06d5712d7a 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 6f70f09bee..9574b70089 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 68cd216bce..908eddbe6f 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 @@ -46,7 +54,7 @@ void esp_log_write(esp_log_level_t level, const char* tag, const char* format, . #define ESP_LOGW( tag, format, ... ) if (LOG_LOCAL_LEVEL >= ESP_LOG_WARN) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } -#define ESP_LOGI( tag, format, ... ) if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO) { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } +#define ESP_LOGI( tag, format, ... ) if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO) { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } #define ESP_LOGD( tag, format, ... ) if (LOG_LOCAL_LEVEL >= ESP_LOG_DEBUG) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } diff --git a/components/spi_flash/sim/stubs/log/log.c b/components/spi_flash/sim/stubs/log/log.c index 9750a8f19a..144c9a9e67 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 b88cd5de37..38681ddb86 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 f221fdbda1..a5aa3ef846 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 6f70f09bee..e01f2c9fc5 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 d68711a95f..09704e0928 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 f816bea7ef..1d843743c9 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 824938760c..632321e381 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 36c6384a3e..5cf699d5ae 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 2b59f16e95..ea1f030634 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__