Commit Graph

37 Commits

Author SHA1 Message Date
Xiang Xiao
ead498a788 build: Remove the workaround for the inexistence of .config/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
9be0be5d47 build: host executable should use HOSTEXEEXT not EXEEXT
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 08:58:10 -06:00
Xiang Xiao
9d78e5b4c2 Remove executable bit from source code
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-13 06:52:34 -06:00
Xiang Xiao
4431d770b4 .gitignore: Add more entries found during prcheck testing
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 10:29:34 -06:00
Ouss4
d7df165c45 examples/udp: When a host PC is used, take its implementation of hton/ntoh functions. 2020-04-03 18:09:02 -06:00
Ouss4
5e245cf34b examples/tcpblaster: When a host PC is used, take its implementation of hton/ntoh functions. 2020-03-31 14:35:57 +08:00
YAMAMOTO Takashi
326c80db72 tcpblaster: Appease nxstyle complaints 2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
7e6e19d80c tcpblaster: Fix build on macOS
s6_addr is in standard. s6_addr16 is not.
See RFC 2553.
2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
5f91364d44 tcpblaster: Avoid conflicting with host OS definitions 2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
e7156be066 Change the defaults of stack size configs to DEFAULT_TASK_STACKSIZE
This commit changes only ones with the default 2048 and
leaves the others.
E.g. this leaves SYSTEM_RAMTEST_STACKSIZE, whose default is 1024.
I guess those need to be inspected one-by-one.
2020-03-27 02:43:11 -05:00
Xiang Xiao
1511403fdf Revert "Don't generate .depend anymore"
This reverts commit cc5ad09caa.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore 2020-03-22 18:15:21 +00:00
Xiang Xiao
3398aad7eb examples/tcpblaster: Fix the nightly build warning
tcpblaster_server.c: In function 'tcpblaster_server':
tcpblaster_server.c:256:71: warning: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
           strftime(timebuff, 100, "%Y-%m-%d %H:%M:%S.000", localtime (&curr));
                                                                       ^
In file included from tcpblaster_server.c:50:0:
/usr/include/time.h:123:19: note: expected 'const time_t * {aka const long int *}' but argument is of type 'struct timespec *'
 extern struct tm *localtime (const time_t *__timer) __THROW;
                   ^~~~~~~~~
tcpblaster_client.c: In function 'tcpblaster_client':
tcpblaster_client.c:230:71: warning: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
           strftime(timebuff, 100, "%Y-%m-%d %H:%M:%S.000", localtime (&curr));
                                                                       ^
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-03-09 09:17:07 +01: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
Xiang Xiao
41d88f06e7 Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
Gregory Nutt
44b8c9c5aa apps/examples/tcpblaster: Fix compile errors in loopback mode. 2020-02-10 21:05:49 +01:00
Xiang Xiao
857158451b Unify the void cast usage
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro

Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Gregory Nutt
e305592ce6 apps/examples/tcpblaster: Fix several problems with the host is the client and the target in the server. Basic problem was that the host did not know the IP address of the target server due to several bugs and build issues that only seemed to affect this configuration. 2019-12-08 17:11:07 -06:00
Gregory Nutt
8cb4896bdb apps/examples/flowc, tcpblaster, and udpblaster: Back out more changes that broke the makefiles fixed by commit 2830892424. This applies the same fix to other Makefiles that follow that same pattern and seem to have the same breakage. 2019-10-18 16:47:57 -06:00
Xiang Xiao
7808eb62d2 apps/: In all Make.def files, append to CONFIGURED_APPS patch with the absolute path. 2019-10-17 11:33:59 -06:00
Gregory Nutt
3a23523147 Makefiles: This reverts part of commit cf0365ea9. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured. 2019-10-15 09:25:48 +08:00
Xiang Xiao
31a7b99f9c apps.: Remove the inappropriate NSH_BUILTIN_APPS coupling
1. Check NSH_NETINIT for self network initialization
2. Check NSH_ARCHINIT for sel arch specific initialization
3. Always show help regardless of NSH_BUILTIN_APPS
4. Loop forever regardless of NSH_BUILTIN_APPS, user could:
  a.change the default behavior by the command line argument
  b.or ctrl+c to break out the loop
2019-10-07 02:37:56 -06:00
Xiang Xiao
e806097c70 Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard. 2019-10-06 06:14:56 -06:00
Xiang Xiao
cf0365ea92 Clean up Makefile under apps folder no functional changes. 2019-10-04 08:35:46 -06:00
Xiang Xiao
63c3772888 CONFIG_BUILD_LOADABLE: Check the kernel function callable by BUILD_KERNEL instead of BUILD_LOADABLE since BUILD_LOADABLE could be turned on even with BUILD_FLAT. 2019-10-03 14:10:32 -06:00
Nathan Hartman
3a75edca20 Fix minor typo/copy-paste: 'will be use when'->'will be used when' 2019-08-23 11:59:28 -06:00
Gregory Nutt
dd35a7cacc apps/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled. 2019-05-21 19:08:12 -06:00
Gregory Nutt
0d98f640b4 apps/exmples/tcpblaster: Select CONFIG_LIBC_FLOATINGPOINT automatically. Units in output are wrong: Not Kbps bus Kb/Sec. 2018-09-10 13:13:56 -06:00
Gregory Nutt
25c2756a82 apps/examples/tcpblaster: Add an option to use poll() to pace input or output. 2018-09-10 12:13:18 -06:00
anchao
b5cfd93444 apps/: Modification to build system: Unified application compilation rules 2018-09-03 09:29:56 -06:00
anchao
220653f21c Squashed commit of the following:
Author: anchao <anchao@pinecone.net>

     apps/, most main() function: Correct CONFIG_BUILD_LOADABLE usage
     Loadable apps/: Correct loadable symbol table generate
     apps/system/ubloxmodem:  Fix build break
     apps/examples/ostest: start restart/waitpid/user test from main loop
     apps/nshlib:  Expand reboot and poweroff commands to include a second, optional mode argument

    Author: Gregory Nutt <gnutt@nuttx.org>

     An attempt to fix build issues.  Does not work.
     apps/examples/ostest:  Fix some inappropriate renaming of static functions introduced with recent patches.
     apps/builtin/exec_builtin.c:  Fix a error introduced by recent comments.  Found in build testing.

    Author: anchao <anchao@pinecone.net>

     apps/builtin/exec_builtin.c:  Try posix_spawn if builtin apps do not have have an entry point.
     apps/Application.mk: introduce MODULE config to simplify tristate(m)
     apps/nsh:  Change the nuttx shell module type to tristate
     apps:  Add loadable application support
     script/mksymtab:  Generate symbol table name by default
     apps/builtin:  Allow loadable applications can register with apps/builtin.
2018-08-23 11:06:15 -06:00
Gregory Nutt
2f982e9c77 Revert "Squashed commit of the following:"
This reverts commit 25b92edd9f.
2018-08-22 12:06:32 -06:00
anchao
25b92edd9f Squashed commit of the following:
apps/builtin/exec_builtin.c:  Try posix_spawn if builtin apps do not have have an entry point.
    apps/Application.mk: introduce MODULE config to simplify tristate(m)
    apps/nsh:  Change the nuttx shell module type to tristate
    apps:  Add loadable application support
    script/mksymtab:  Generate symbol table name by default
    apps/builtin:  Allow loadable applications can register with apps/builtin.
2018-08-22 09:30:38 -06:00
Gregory Nutt
5d72cae1d9 apps/examples/tcpblaster: Fix names several configuration setting that were changed incorrectly in a recent commit. 2018-08-22 07:53:35 -06:00
Gregory Nutt
db77b1ec6c apps/examples/tcpblaster: Fix an error in time calculation. 2018-07-06 14:44:26 -06:00
Gregory Nutt
19b8a52500 apps/examples/tcpblaster/tcpblaster_server.c: Start time was not being initialized on the server side on the first pass through loop so the first output record had a crazy time. 2018-07-05 16:39:31 -06:00
Gregory Nutt
749eccb999 Squashed commit of the following:
apps/examples/tcpblaster:  Some improvements/fixes in statistics reporting.
    apps/examples/tcpblaster:  Add performance measurement functionality.
    apps/examples/tcpblaster:  Initial commit is just apps/examples/nettest/ with naming changes.
2018-07-05 16:03:54 -06:00