Commit Graph

4462 Commits

Author SHA1 Message Date
YAMAMOTO Takashi
2abf0f50e1 examples/elf/tests: Ensure "build" before "install" 2020-02-26 00:05:02 -06:00
Xiang Xiao
16dc851889 Revert "examples: usrsocktest: Fix errors in NoBlockRecv and BlockRecv tests"
This reverts commit 10c715d921.
2020-02-25 18:02:46 -03:00
YAMAMOTO Takashi
45bcfa8b2e examples/elf: Add a few make rules
To fix "don't know how to create tests/dirlist.h" make complaints.
2020-02-25 07:43:23 -06:00
liuguo09
2f23d2a602
examples/elf/tests: Correct symtab.c dependency to fix parallel build break
Correct symtab dependency from build to populate instead, or tests
subdirectory programs would be built twice which resulted in errors
as below:
arm-none-eabi-ld: hello++3.o: file not recognized: file truncated
2020-02-25 13:26:51 +01:00
archer
6751aa26a6
examles/netlink: Fix a typo that resulted in build breakage. 2020-02-25 13:17:51 +01:00
Masayuki Ishikawa
5d37c68a73 examples: discover: Use htonl() instead of HTONL() in discover_main.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-02-25 05:02:58 -06:00
Adam Feuer
5a10c0e8e7 tcpblaster reporting and docs improvements
- changed incorrect Kb to correct KB in program output
- added readme

Squashed commit of the following:

commit b81821fd788eb08ffdf5a3084ab3d128788b75da
Author: Adam Feuer <adam@starcat.io>
Date:   Mon Feb 24 16:58:29 2020 -0800

    formatting improvements

commit a70e7109dd90522e6d7f680790d80c9328a8ba9c
Author: Adam Feuer <adam@starcat.io>
Date:   Mon Feb 24 16:58:13 2020 -0800

    formatting improvements

commit c11a5b3c8ee38fe080d121db87b7d26c0baf9f93
Author: Adam Feuer <adam@starcat.io>
Date:   Sun Feb 23 17:03:22 2020 -0800

    remove printf debugging statement

commit 94bcaa89d2df326ed2b560e935d344932c46607d
Merge: fddb3ee4 d6604922
Author: Adam Feuer <adam@starcat.io>
Date:   Sun Feb 23 16:58:35 2020 -0800

    Merge branch 'master' into feature/tcpblaster-improvements

commit fddb3ee4ee9ba185f0f4e01c205620bbcb02e40e
Author: Adam Feuer <adam@starcat.io>
Date:   Sat Feb 22 16:29:51 2020 -0800

    fixed typo

commit d398d6f3803d81e849814548be9671ac33f08168
Author: Adam Feuer <adam@starcat.io>
Date:   Sat Feb 22 16:29:04 2020 -0800

    logging now has timestamp; improved configuration
2020-02-24 20:09:35 -06:00
liuhaitao
d89d8b1a2c Remove the additional UNLINKDIR to fix parallel build break 2020-02-24 22:54:35 +00:00
Gregory Nutt
40d9e25ac3 apps/platform/.gitignore: Add ZDS-II temp files. 2020-02-23 10:38:16 -06:00
Xiang Xiao
41d88f06e7 Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289 Run codespell -w against all files
and fix the wrong correction
2020-02-22 14:41:36 -06:00
Xiang Xiao
f774e8ee72 build: Use flock to serialize ar steps as workaround
Use flock to serialize ar steps to avoid parallel build break
sometimes.
2020-02-22 07:43:06 -06:00
David Sidrane
119f81f30a Revert "Avoid calling ARCHIVE in multiple places"
This reverts commit 52222cb020.
2020-02-21 11:31:34 -06:00
chao.an
9a28ccf836 nsh/parse: try the builtin configuration first
In the case of enable the BUILTIN_APPS/FILE_APPS at the same time, try the builtin list first to ensure that the relevant configuration(stacksize, priority) can be set normally.
2020-02-21 07:40:47 -06:00
YAMAMOTO Takashi
4ee39e2080 Remove libapps.a from LDLIBS
I don't understand how it's supposed to work.
(As libapps.a is likely not fully baked at that point.)

I don't understand why it's necessary either.
2020-02-21 07:37:51 -06:00
YAMAMOTO Takashi
52222cb020 Avoid calling ARCHIVE in multiple places
Because it isn't safe to run multiple instances to libapps.a
concurrently.
2020-02-21 07:37:51 -06:00
YAMAMOTO Takashi
698f0edbaa Revert "build: Use flock to serialize ar steps as workaround"
This reverts commit 6707bfae86.
2020-02-21 07:37:51 -06:00
Masayuki Ishikawa
10c715d921 examples: usrsocktest: Fix errors in NoBlockRecv and BlockRecv tests
NOTE: Because sin_zero field is just a padding, so should be ignored.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-02-21 00:56:49 -06:00
Xiang Xiao
6707bfae86 build: Use flock to serialize ar steps as workaround
Use flock to serialize ar steps to avoid parallel build break
sometimes.
2020-02-20 13:14:53 -06:00
chao.an
f28eca9dbc Make.defs: Use complete include path 2020-02-19 12:56:10 -06:00
Xiang Xiao
eb8678cfeb Remove CONFIG_DEV_LOWCONSOLE from source code
Follow the nuttx side change
2020-02-18 13:13:29 -06:00
Xiang Xiao
569618220a Change CONFIG_CXX_NEWLONG to CONFIG_ARCH_SIZET_LONG
Follow up nuttx side change
2020-02-18 07:37:54 -06:00
Ouss4
e55e310622 testing/fstest/fstest_main.c: Eliminate a warning found during the build
test.
2020-02-15 17:06:51 -06:00
Gregory Nutt
218d8c9fe2 examples/elf/tests/mutex/mutex.c: Fix typo in a previous PR. 2020-02-15 19:08:03 +01:00
Gregory Nutt
1056cce2b5 apps/examples/elf: Correct mount point configuration error.
If an external file system is used but is not mounted by the the ELF example, then a compilation error will occur.  This configuration problem has existed for a long time but was unmasked by a recent PR.  In the failure mode, CONFIG_EXAMPLES_ELF_FSTYPE would not be defined because it depends on CONFIG_EXAMPLES_ELF_FSMOUNT which is not defined.  The resulting mountpoint, MOUNTPT, would therefore be left in an invalid state.  Previous changes to conditional logic now allowed setenv() to run and to attempt to set the PATH variable to MOUNTPT, causing a compile time failure like this:

    CC:  elf_main.c
    elf_main.c: In function 'elf_main':
    elf_main.c:113:32: error: expected ')' before 'CONFIG_EXAMPLES_ELF_FSTYPE'
     #  define MOUNTPT      "/mnt/" CONFIG_EXAMPLES_ELF_FSTYPE
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
    elf_main.c:364:18: note: in expansion of macro 'MOUNTPT'
       setenv("PATH", MOUNTPT, 1);
                       ^~~~~~~
    elf_main.c:364:3: error: too few arguments to function 'setenv'
       setenv("PATH", MOUNTPT, 1);
       ^~~~~~
    In file included from elf_main.c:47:
    D:\Spuda\Documents\projects\nuttx\master\nuttx-fork\include/stdlib.h:158:11: note: declared here
     int       setenv(FAR const char *name, FAR const char *value, int overwrite);
               ^~~~~~

This problem was found during manual build testing using configuration lx_cpu:nsh.
2020-02-15 18:06:43 +01:00
Gregory Nutt
1d8b738a2b apps/examples/elf: Resolve issue issue 63 2020-02-15 23:55:33 +08:00
YAMAMOTO Takashi
e5dd0b1eb9 mksymtab.sh: Avoid using find -executable
As it seems GNU-find only.  macOS doesn't have it.

-perm is in POSIX and should be more widely available.
2020-02-14 09:13:55 -06:00
Xiang Xiao
d81b7af407 ntpclient: Use sem protect global variable instead sched_lock/unlock 2020-02-14 09:08:31 -06:00
Xiang Xiao
02a800c930 ntpclient: Initialize g_ntpc_daemon at the definition
Change-Id: I4dad2e246aca7d30092cf8a4bc8136e90668f134
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-14 09:01:57 -06:00
Xiang Xiao
782953ff05 ntpclient: the 2nd arg of MKLVM should be version number
Change-Id: I742c3a5082f48fcc8e291100ff81c60093bc7538
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-14 09:01:57 -06:00
YAMAMOTO Takashi
66e7590dd0 examples/elf: Don't bother to honor CONFIG_PATH_INITIAL
As we know where the binaries are, there's little point
to use CONFIG_PATH_INITIAL.
2020-02-14 18:38:07 +08:00
YAMAMOTO Takashi
afa51c2e00 Fix documentation typos 2020-02-14 16:08:07 +08:00
Masayuki Ishikawa
de4d52d465 wireless: gs2200m: Add support for setsockopt_request()
NOTE: Just check parameters and do nothing special

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-02-14 15:01:28 +08:00
YAMAMOTO Takashi
c5673957cc Remove unused BUILTIN_PROXY_STACKSIZE config
It has been unused since the following change:
"All argv types should be char * const * not const char **"
2020-02-13 15:00:56 +08:00
Gregory Nutt
44b8c9c5aa apps/examples/tcpblaster: Fix compile errors in loopback mode. 2020-02-10 21:05:49 +01:00
Masayuki Ishikawa
539d0854dd examples: elf: Fix warnings when compiled for RISC-V 64bit 2020-02-10 14:16:00 +08:00
Xiang Xiao
779197c63e Ensure all source code end with one and only one newline
by this command:
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2020-02-09 08:14:49 -06:00
Xiang Xiao
4a13a0893f testing/smp: Replace up_cpu_index with sched_getcpu 2020-02-09 08:11:39 -06:00
Gregory Nutt
d2e1c8a4f3 apps/wireless/gs2200m/gs2200m_main.c: Eliminate a warning
Eliminate warning:

    gs2200m_main.c:  In function 'gs2200m_loop':
    gs2200m_main.c:1416:1:  warning: label 'errout' defined but not used [-Wunused-label]
2020-02-09 00:32:25 +01:00
Gregory Nutt
c8dbd59e9a netutils/telnetd/telnetd_daemon.c: Avoid a warning if CONFIG_NET_SOCKOPTS=n 2020-02-09 00:33:39 +08:00
Gregory Nutt
d2522e2821 apps/netutils/telnetd: Fix undefined reference to setsockopt.
Recent change from Xiao Xiang enabled the SO_REUSEADDR socket option unconditionally.  This, of course, causes link time failures if socket options are not enabled:

apps/netutils/telnetd/telnetd_daemon.c:182: undefined reference to 'setsockopt'.

Observed during build testing with configuration rddrone-uavcan144:nsh
2020-02-09 00:33:39 +08:00
Xiang Xiao
f14aead53e Shouldn't use local readline in telnet
Shouldn't use local readline in telnet since the host has more powerful intelligent
2020-02-08 07:58:04 -06:00
Miguel Herranz
960a92c652 Make SO_REUSEADDR not mandatory in netlib
This functionality is not available in NuttX so far.
2020-02-06 23:43:37 +01:00
Miguel Herranz
a5dff52a71 Change unimplemented requests behaviour in gs2200m
The ASSERT is too strong, as it cannot be disabled, so changing to
DEBUGASSERT, as calling these functions should not be a problem as
long as the application logic handle the error correctly.

The error code is changed to ENOSYS, as it seems to better reflect
the fact that the call itself would be valid, but the functionality
is not implemented (see [1] or `man errno`).

[1] https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html
2020-02-06 23:43:37 +01:00
YAMAMOTO Takashi
2f4b309b1b gs2200m: Retry indefinately on GS2200M_IOC_ASSOC failure
Author: Alan Carvalho de Assis <engenharia03@siam.ind.br>

    Run nxstyle again gs2200m_main.c file and fix issues

Author: YAMAMOTO Takashi <yamamoto@midokura.com>

    gs2200m: Retry indefinately on GS2200M_IOC_ASSOC failure

    The ioctl doesn't return why it failed.
    It might or might not be a transient failure.

    In my environment, gs2200m often returns the following for AT+WA.
    It usually works after a few retries.

    [   12.110000] _parse_pkt_in_s1: +++++ 0:(msize=19, msg=WLAN CONNECT ERROR|)
    [   12.110000] _parse_pkt_in_s1: +++++ 1:(msize=6, msg=ERROR|)
2020-02-05 18:45:43 -03:00
liuhaitao
e738fbedba graphics/littlevgl/Makefile: update lvgl.h dependency to fix parallel build break
Parallel build imxrt1060-evk:lvgl with the below error:
make[3]: *** No rule to make target 'lvgl/lvgl.h', needed by '/home/jenkins/jenkins-slave/
workspace/NuttX-Nightly-Build/apps/include/graphics/lvgl.h'.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-02-05 05:50:56 -08:00
Masayuki Ishikawa
bb3cd0a496 apps: elf: Fix stack corruption in task test
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-02-04 20:56:52 -08:00
Xiang Xiao
bf3e6e2367 Improvements for telnet server
Author: Xiang Xiao <xiaoxiang@xiaomi.com>

    Check POLLHUP and POLLERR in telnet poll loop

      to handle the remote end close correctly

    Send "NVT"(network virtual terminal) as the default if getenv("TERM") return NULL

      telnet should trigger the error handling if inet_pton return zero
      since zero mean the string has format error

    Don't return 1 in _environ_telnet to avoid trigger the compression
    and remove the redundant TELNET_TELOPT_COMPRESS2 check

    Change telnet_error_u to telnet_error_e required by the coding standard

    Ensure telnet object get freed before the abnormal exit
2020-02-04 19:09:22 -03:00
YAMAMOTO Takashi
43a36996ca nettest: Avoid conflicts with host definitions 2020-02-04 09:36:50 -06:00
YAMAMOTO Takashi
bcc0f5c0a9 nettest: Avoid common symbols 2020-02-04 09:36:08 -06:00