You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/06/03 17:25:57 UTC

[incubator-nuttx-apps] branch master updated (99629e9b5 -> dd7e98129)

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


    from 99629e9b5 fstest:support fstest can run many times
     new f5c094aef system/libuv: Skip compile strscpy.c when CONFIG_LIBUV_UTILS_TEST enable
     new dd7e98129 system/libuv: Fix the undefined reference to `uv__strscpy'

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 system/libuv/0001-libuv-port-for-nuttx.patch | 14 --------------
 system/libuv/Makefile                        |  4 ++--
 2 files changed, 2 insertions(+), 16 deletions(-)


[incubator-nuttx-apps] 01/02: system/libuv: Skip compile strscpy.c when CONFIG_LIBUV_UTILS_TEST enable

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit f5c094aef1cce9b5764f4592b0612c5379f46d4a
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri May 20 14:04:15 2022 +0800

    system/libuv: Skip compile strscpy.c when CONFIG_LIBUV_UTILS_TEST enable
    
    since test/test-strscpy.c will include it in this case
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 system/libuv/0001-libuv-port-for-nuttx.patch | 14 --------------
 system/libuv/Makefile                        |  2 +-
 2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/system/libuv/0001-libuv-port-for-nuttx.patch b/system/libuv/0001-libuv-port-for-nuttx.patch
index 224dd366e..eb7d6f34d 100644
--- a/system/libuv/0001-libuv-port-for-nuttx.patch
+++ b/system/libuv/0001-libuv-port-for-nuttx.patch
@@ -1900,20 +1900,6 @@ index 10cbf95e..7de04a91 100644
    uv_idle_init(uv_default_loop(), &idle_handle);
    uv_idle_start(&idle_handle, idle_cb);
  
-diff --git a/test/test-strscpy.c b/test/test-strscpy.c
-index 4e7db6ff..f1d3e3ac 100644
---- a/test/test-strscpy.c
-+++ b/test/test-strscpy.c
-@@ -24,7 +24,9 @@
- #include <string.h>
- 
- #include "../src/strscpy.h"
-+#ifndef __NuttX__
- #include "../src/strscpy.c"
-+#endif
- 
- TEST_IMPL(strscpy) {
-   char d[4];
 diff --git a/test/test-thread.c b/test/test-thread.c
 index 8de5a6f0..11e3cf80 100644
 --- a/test/test-thread.c
diff --git a/system/libuv/Makefile b/system/libuv/Makefile
index fe15c5479..e56f31509 100644
--- a/system/libuv/Makefile
+++ b/system/libuv/Makefile
@@ -71,10 +71,10 @@ CSRCS += uv-data-getter-setters.c
 CSRCS += version.c
 ifneq ($(CONFIG_LIBUV_UTILS_TEST),)
 CSRCS += idna.c
+CSRCS += strscpy.c
 endif
 CSRCS += no-fsevents.c
 CSRCS += uv-common.c
-CSRCS += strscpy.c
 CSRCS += random-devurandom.c
 CSRCS += random.c
 CSRCS += nuttx.c


[incubator-nuttx-apps] 02/02: system/libuv: Fix the undefined reference to `uv__strscpy'

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit dd7e98129ac6edd39f819febe295134c190324d3
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat May 21 02:20:50 2022 +0800

    system/libuv: Fix the undefined reference to `uv__strscpy'
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 system/libuv/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/libuv/Makefile b/system/libuv/Makefile
index e56f31509..f88fd6623 100644
--- a/system/libuv/Makefile
+++ b/system/libuv/Makefile
@@ -69,7 +69,7 @@ CSRCS += posix-hrtime.c
 CSRCS += posix-poll.c
 CSRCS += uv-data-getter-setters.c
 CSRCS += version.c
-ifneq ($(CONFIG_LIBUV_UTILS_TEST),)
+ifeq ($(CONFIG_LIBUV_UTILS_TEST),)
 CSRCS += idna.c
 CSRCS += strscpy.c
 endif