Преглед на файлове

spiffs, wear_levelling: update copyright headers

Ivan Grokhotkov преди 4 години
родител
ревизия
911a8fc714
променени са 32 файла, в които са добавени 153 реда и са изтрити 277 реда
  1. 5 13
      components/spiffs/include/esp_spiffs.h
  2. 5 0
      components/spiffs/include/spiffs_config.h
  3. 5 13
      components/spiffs/spiffs_api.c
  4. 5 13
      components/spiffs/spiffs_api.h
  5. 2 13
      components/spiffs/spiffsgen.py
  6. 5 13
      components/spiffs/test/test_spiffs.c
  7. 5 0
      components/spiffs/test_spiffs_host/main.cpp
  8. 5 0
      components/spiffs/test_spiffs_host/sdkconfig/sdkconfig.h
  9. 5 0
      components/spiffs/test_spiffs_host/test_spiffs.cpp
  10. 2 0
      components/spiffs/test_spiffsgen/test_spiffsgen.py
  11. 5 13
      components/wear_levelling/Partition.cpp
  12. 5 13
      components/wear_levelling/SPI_Flash.cpp
  13. 5 13
      components/wear_levelling/WL_Ext_Perf.cpp
  14. 5 13
      components/wear_levelling/WL_Ext_Safe.cpp
  15. 5 13
      components/wear_levelling/WL_Flash.cpp
  16. 5 13
      components/wear_levelling/crc32.cpp
  17. 5 13
      components/wear_levelling/crc32.h
  18. 5 13
      components/wear_levelling/include/wear_levelling.h
  19. 5 13
      components/wear_levelling/private_include/Flash_Access.h
  20. 6 0
      components/wear_levelling/private_include/Partition.h
  21. 6 0
      components/wear_levelling/private_include/SPI_Flash.h
  22. 5 13
      components/wear_levelling/private_include/WL_Ext_Cfg.h
  23. 5 13
      components/wear_levelling/private_include/WL_Ext_Perf.h
  24. 5 13
      components/wear_levelling/private_include/WL_Ext_Safe.h
  25. 5 13
      components/wear_levelling/private_include/WL_Flash.h
  26. 5 0
      components/wear_levelling/test_wl_host/esp_error_check_stub.cpp
  27. 5 0
      components/wear_levelling/test_wl_host/main.cpp
  28. 5 0
      components/wear_levelling/test_wl_host/sdkconfig/sdkconfig.h
  29. 5 0
      components/wear_levelling/test_wl_host/test_wl.cpp
  30. 5 13
      components/wear_levelling/wear_levelling.cpp
  31. 7 0
      tools/ci/check_copyright_config.yaml
  32. 0 30
      tools/ci/check_copyright_ignore.txt

+ 5 - 13
components/spiffs/include/esp_spiffs.h

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #ifndef _ESP_SPIFFS_H_
 #define _ESP_SPIFFS_H_

+ 5 - 0
components/spiffs/include/spiffs_config.h

@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2013-2017 Peter Andersson (pelleplutt1976<at>gmail.com)
+ *
+ * SPDX-License-Identifier: MIT
+ */
 /*
  * spiffs_config.h
  *

+ 5 - 13
components/spiffs/spiffs_api.c

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #include "freertos/FreeRTOS.h"
 #include "esp_log.h"

+ 5 - 13
components/spiffs/spiffs_api.h

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #pragma once
 

+ 2 - 13
components/spiffs/spiffsgen.py

@@ -2,19 +2,8 @@
 #
 # spiffsgen is a tool used to generate a spiffs image from a directory
 #
-# Copyright 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: 2019-2022 Espressif Systems (Shanghai) CO LTD
+# SPDX-License-Identifier: Apache-2.0
 
 from __future__ import division, print_function
 

+ 5 - 13
components/spiffs/test/test_spiffs.c

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #include <stdio.h>
 #include <stdlib.h>

+ 5 - 0
components/spiffs/test_spiffs_host/main.cpp

@@ -1,2 +1,7 @@
+/*
+ * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #define CATCH_CONFIG_MAIN
 #include "catch.hpp"

+ 5 - 0
components/spiffs/test_spiffs_host/sdkconfig/sdkconfig.h

@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #pragma once
 #define CONFIG_IDF_TARGET_ESP32 1
 #define CONFIG_SPIFFS_USE_MAGIC_LENGTH 1

+ 5 - 0
components/spiffs/test_spiffs_host/test_spiffs.cpp

@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #include <stdio.h>
 #include <string.h>
 #include <stdint.h>

+ 2 - 0
components/spiffs/test_spiffsgen/test_spiffsgen.py

@@ -1,4 +1,6 @@
 #!/usr/bin/env python
+# SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
+# SPDX-License-Identifier: Apache-2.0
 import os
 import sys
 import unittest

+ 5 - 13
components/wear_levelling/Partition.cpp

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #include "esp_log.h"
 #include "Partition.h"
 static const char *TAG = "wl_partition";

+ 5 - 13
components/wear_levelling/SPI_Flash.cpp

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #include "esp_log.h"
 #include "SPI_Flash.h"

+ 5 - 13
components/wear_levelling/WL_Ext_Perf.cpp

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #include "WL_Ext_Perf.h"
 #include <stdlib.h>
 #include "esp_log.h"

+ 5 - 13
components/wear_levelling/WL_Ext_Safe.cpp

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #include "WL_Ext_Safe.h"
 #include <stdlib.h>
 #include "esp_log.h"

+ 5 - 13
components/wear_levelling/WL_Flash.cpp

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #include <stdio.h>
 #include "esp_system.h"
 #include "esp_log.h"

+ 5 - 13
components/wear_levelling/crc32.cpp

@@ -1,16 +1,8 @@
-// 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #include "crc32.h"
 #include "esp32/rom/crc.h"
 

+ 5 - 13
components/wear_levelling/crc32.h

@@ -1,16 +1,8 @@
-// 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #ifndef _crc32_H_
 #define _crc32_H_
 

+ 5 - 13
components/wear_levelling/include/wear_levelling.h

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #ifndef _wear_levelling_H_
 #define _wear_levelling_H_

+ 5 - 13
components/wear_levelling/private_include/Flash_Access.h

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #ifndef _Flash_Access_H_
 #define _Flash_Access_H_

+ 6 - 0
components/wear_levelling/private_include/Partition.h

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #ifndef _Partition_H_
 #define _Partition_H_
 

+ 6 - 0
components/wear_levelling/private_include/SPI_Flash.h

@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
 #ifndef _SPI_Flash_H_
 #define _SPI_Flash_H_
 

+ 5 - 13
components/wear_levelling/private_include/WL_Ext_Cfg.h

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #ifndef _WL_Ext_Cfg_H_
 #define _WL_Ext_Cfg_H_
 #include "WL_Config.h"

+ 5 - 13
components/wear_levelling/private_include/WL_Ext_Perf.h

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #ifndef _WL_Ext_Perf_H_
 #define _WL_Ext_Perf_H_
 

+ 5 - 13
components/wear_levelling/private_include/WL_Ext_Safe.h

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #ifndef _WL_Ext_Safe_H_
 #define _WL_Ext_Safe_H_
 

+ 5 - 13
components/wear_levelling/private_include/WL_Flash.h

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #ifndef _WL_Flash_H_
 #define _WL_Flash_H_
 

+ 5 - 0
components/wear_levelling/test_wl_host/esp_error_check_stub.cpp

@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #include "catch.hpp"
 #include "esp_err.h"
 #include "sdkconfig.h"

+ 5 - 0
components/wear_levelling/test_wl_host/main.cpp

@@ -1,2 +1,7 @@
+/*
+ * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #define CATCH_CONFIG_MAIN
 #include "catch.hpp"

+ 5 - 0
components/wear_levelling/test_wl_host/sdkconfig/sdkconfig.h

@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #pragma once
 #define CONFIG_IDF_TARGET_ESP32 1
 #define CONFIG_WL_SECTOR_SIZE 4096

+ 5 - 0
components/wear_levelling/test_wl_host/test_wl.cpp

@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 5 - 13
components/wear_levelling/wear_levelling.cpp

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 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-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #include <stdlib.h>
 #include <new>

+ 7 - 0
tools/ci/check_copyright_config.yaml

@@ -89,6 +89,13 @@ systemview:
     - BSD-3-Clause
   license_for_new_files: Apache-2.0
 
+spiffs:
+  include:
+    - 'components/spiffs/include/'
+  allowed_licenses:
+    - MIT
+    - Apache-2.0
+
 # 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:

+ 0 - 30
tools/ci/check_copyright_ignore.txt

@@ -1874,16 +1874,6 @@ components/spi_flash/test/test_out_of_bounds_write.c
 components/spi_flash/test/test_partition_ext.c
 components/spi_flash/test/test_partitions.c
 components/spi_flash/test/test_spi_flash.c
-components/spiffs/include/esp_spiffs.h
-components/spiffs/include/spiffs_config.h
-components/spiffs/spiffs_api.c
-components/spiffs/spiffs_api.h
-components/spiffs/spiffsgen.py
-components/spiffs/test/test_spiffs.c
-components/spiffs/test_spiffs_host/main.cpp
-components/spiffs/test_spiffs_host/sdkconfig/sdkconfig.h
-components/spiffs/test_spiffs_host/test_spiffs.cpp
-components/spiffs/test_spiffsgen/test_spiffsgen.py
 components/tcp_transport/include/esp_transport.h
 components/tcp_transport/include/esp_transport_ssl.h
 components/tcp_transport/include/esp_transport_tcp.h
@@ -1929,26 +1919,6 @@ components/vfs/test/test_vfs_lwip.c
 components/vfs/test/test_vfs_paths.c
 components/vfs/test/test_vfs_uart.c
 components/vfs/vfs_eventfd.c
-components/wear_levelling/Partition.cpp
-components/wear_levelling/SPI_Flash.cpp
-components/wear_levelling/WL_Ext_Perf.cpp
-components/wear_levelling/WL_Ext_Safe.cpp
-components/wear_levelling/WL_Flash.cpp
-components/wear_levelling/crc32.cpp
-components/wear_levelling/crc32.h
-components/wear_levelling/include/wear_levelling.h
-components/wear_levelling/private_include/Flash_Access.h
-components/wear_levelling/private_include/Partition.h
-components/wear_levelling/private_include/SPI_Flash.h
-components/wear_levelling/private_include/WL_Ext_Cfg.h
-components/wear_levelling/private_include/WL_Ext_Perf.h
-components/wear_levelling/private_include/WL_Ext_Safe.h
-components/wear_levelling/private_include/WL_Flash.h
-components/wear_levelling/test_wl_host/esp_error_check_stub.cpp
-components/wear_levelling/test_wl_host/main.cpp
-components/wear_levelling/test_wl_host/sdkconfig/sdkconfig.h
-components/wear_levelling/test_wl_host/test_wl.cpp
-components/wear_levelling/wear_levelling.cpp
 components/wifi_provisioning/include/wifi_provisioning/manager.h
 components/wifi_provisioning/include/wifi_provisioning/scheme_ble.h
 components/wifi_provisioning/include/wifi_provisioning/scheme_console.h