Bläddra i källkod

fix(esp_rom): fix libc_stubs.h includes

Alexey Lapshin 2 år sedan
förälder
incheckning
9dcc9a73f6

+ 6 - 13
components/esp_rom/include/esp32/rom/libc_stubs.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-2023 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #ifndef _ROM_LIBC_STUBS_H_
 #define _ROM_LIBC_STUBS_H_
 
@@ -18,6 +10,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <time.h>
 #include <reent.h>
 #include <errno.h>
 

+ 1 - 0
components/esp_rom/include/esp32c2/rom/libc_stubs.h

@@ -11,6 +11,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <time.h>
 #include <reent.h>
 #include <errno.h>
 

+ 1 - 0
components/esp_rom/include/esp32c3/rom/libc_stubs.h

@@ -11,6 +11,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <time.h>
 #include <reent.h>
 #include <errno.h>
 

+ 1 - 0
components/esp_rom/include/esp32c6/rom/libc_stubs.h

@@ -11,6 +11,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <time.h>
 #include <reent.h>
 #include <errno.h>
 

+ 1 - 0
components/esp_rom/include/esp32h2/rom/libc_stubs.h

@@ -11,6 +11,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <time.h>
 #include <reent.h>
 #include <errno.h>
 

+ 1 - 0
components/esp_rom/include/esp32p4/rom/libc_stubs.h

@@ -11,6 +11,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <time.h>
 #include <reent.h>
 #include <errno.h>
 

+ 6 - 13
components/esp_rom/include/esp32s2/rom/libc_stubs.h

@@ -1,16 +1,8 @@
-// Copyright 2015-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-2023 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 #ifndef _ROM_LIBC_STUBS_H_
 #define _ROM_LIBC_STUBS_H_
 
@@ -18,6 +10,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <time.h>
 #include <reent.h>
 #include <errno.h>
 

+ 1 - 0
components/esp_rom/include/esp32s3/rom/libc_stubs.h

@@ -11,6 +11,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <time.h>
 #include <reent.h>
 #include <errno.h>
 

+ 0 - 2
tools/ci/check_copyright_ignore.txt

@@ -460,7 +460,6 @@ components/esp_rom/include/esp32/rom/aes.h
 components/esp_rom/include/esp32/rom/bigint.h
 components/esp_rom/include/esp32/rom/crc.h
 components/esp_rom/include/esp32/rom/efuse.h
-components/esp_rom/include/esp32/rom/libc_stubs.h
 components/esp_rom/include/esp32/rom/sha.h
 components/esp_rom/include/esp32/rom/tbconsole.h
 components/esp_rom/include/esp32/rom/tjpgd.h
@@ -477,7 +476,6 @@ components/esp_rom/include/esp32s2/rom/bigint.h
 components/esp_rom/include/esp32s2/rom/crc.h
 components/esp_rom/include/esp32s2/rom/digital_signature.h
 components/esp_rom/include/esp32s2/rom/hmac.h
-components/esp_rom/include/esp32s2/rom/libc_stubs.h
 components/esp_rom/include/esp32s2/rom/opi_flash.h
 components/esp_rom/include/esp32s2/rom/rsa_pss.h
 components/esp_rom/include/esp32s2/rom/sha.h