We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e131679 commit b6ab394Copy full SHA for b6ab394
soc/xtensa/esp32/CMakeLists.txt
@@ -6,6 +6,8 @@ zephyr_sources(
6
loader.c
7
)
8
9
+zephyr_library_sources_ifdef(CONFIG_NEWLIB_LIBC newlib_fix.c)
10
+
11
zephyr_library_sources_ifdef(CONFIG_GDBSTUB gdbstub.c)
12
13
# get code-partition slot0 address
soc/xtensa/esp32/newlib_fix.c
@@ -0,0 +1,22 @@
1
+/*
2
+ * Copyright (c) 2019, Intel Corporation.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
+#include <toolchain.h>
+#include <stdio.h>
+#include <stddef.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <reent.h>
14
15
+int __weak _gettimeofday_r(struct _reent *r, struct timeval *__tp, void *__tzp)
16
+{
17
+ ARG_UNUSED(r);
18
+ ARG_UNUSED(__tp);
19
+ ARG_UNUSED(__tzp);
20
21
+ return -1;
22
+}
0 commit comments