Commit Graph

3387 Commits

Author SHA1 Message Date
Gregory Nutt
d7bdf06055 apps/examples/module/Makefile: Correct module example build. Change to LDLIBs were causing a failure due to a non-existent (any unnecessary) library in this case. 2018-08-23 10:58:55 -06:00
Xiang Xiao
dbf152cbeb apps/nshlib: (1) NSH prompt string is now configurable. nsh> is still the default. (2) Increase the default configuration for the maximum number of command line arguments to 7 (CONFIG_NSH_MAXARGUMENTS). This is needed for 'mount' with the -o option. 2018-08-23 07:34:30 -06:00
Xiang Xiao
8116d10da3 apps/fsutils/mksmartfs: Add a check to see if the SmartFS is already formatted. apps/nshlib: Add a force flag (-f) to mksmartfs. SmartFS will be formatted only if (1) the FLASH does not already hold a SmartFS, or (2) the force flag is set 2018-08-23 07:14:30 -06:00
ligd
feb1229dc3 apps/system/cu/cu_main.c: (1) Protect from possible re-definition of signal values, (2) Fix CU ctrl-C hand when remote core hang. 2018-08-23 07:05:09 -06:00
Xiang Xiao
aef0978a12 apps/system/ping and ping6: Change dependency in ping and ping6 Kconfig. These may be implemented in users sockets and, hence, may need to be avaiable even if ICMP and ICMPv6 sockets are not support. 2018-08-23 06:53:11 -06:00
Xiang Xiao
604885cbef apps/system/ping and ping6: Send ID and seqno in network byte order. 2018-08-23 06:47:33 -06:00
Xiang Xiao
32182421a9 apps/system/system/system.c: Add 'const' to make function signature compatible with OpenGroup.org 2018-08-23 06:38:45 -06:00
Xiang Xiao
ddd86d31ca apps/system/zmodem:
- fix error "sz_main.o: No such file or directory"
  - support -p <path> for rz to change the folder for the recevied file
  - switch debug output from printf to syslog
  - send the next packet for ZME_ACK in ZMS_SENDING to avoid rz on the host side stuck
  - make send work reliable even without hardware flow control
2018-08-23 06:33:39 -06:00
ligd
bee98898f0 apps/nshlib: Expand reboot and poweroff commands to include a second, optional mode argument 2018-08-23 06:21:47 -06:00
Gregory Nutt
23066a71f0 Grr.. last commit unreverted some changes. I think it is right now. 2018-08-22 12:19:36 -06:00
Gregory Nutt
0bdb179160 Move a copy of define.bat and sh from nuttx/tools to apps/tools so that they will be availalbe for the import build. 2018-08-22 12:08:31 -06:00
Gregory Nutt
2f982e9c77 Revert "Squashed commit of the following:"
This reverts commit 25b92edd9f.
2018-08-22 12:06:32 -06:00
Gregory Nutt
cd62ab5398 Revert "apps/builtin/exec_builtin.c: Fix a error introduced by recent comments. Found in build testing."
This reverts commit 64e423a49c.
2018-08-22 12:06:28 -06:00
Gregory Nutt
3a2a480eeb Revert "Oops.. typo in bugfix."
This reverts commit 57998f8d71.
2018-08-22 12:06:25 -06:00
Gregory Nutt
4d9b55e623 Revert "apps/examples/ostest: Fix some inappropriae renaming of static functions introduced with recent patches."
This reverts commit b0cefbf1c7.
2018-08-22 12:06:22 -06:00
Gregory Nutt
b0cefbf1c7 apps/examples/ostest: Fix some inappropriae renaming of static functions introduced with recent patches. 2018-08-22 10:40:17 -06:00
Gregory Nutt
57998f8d71 Oops.. typo in bugfix. 2018-08-22 10:00:37 -06:00
Gregory Nutt
64e423a49c apps/builtin/exec_builtin.c: Fix a error introduced by recent comments. Found in build testing. 2018-08-22 09:54:37 -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
anchao
9fe6d2e1c3 Remove illegal calls into OS to initialize BINFMT support. This must be moved to the board initialization logic within the OS. 2018-08-22 07:53:35 -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
Anthony Merlino
162fb66ecf Merged in antmerlino/apps/i8sak_daemon (pull request #151)
i8sak: i8sak daemon now gets shutdown if not in use.

Previously, once the i8sak daemon was started, by running any command, it would stay running. This means that if you want to use i8sak to setup your network, but then want exclusive access to the char device, or network device, you have to manually shutdown the i8sak daemon. Now the daemon stays active as long as required to finish any commands, or stays open if a new command keeps it on, but when all work is finished, it shuts down.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-19 18:47:40 +00:00
Gregory Nutt
8e249eb25f apps/Makefile: Fix one missing instance of CONFIG_EXAMPLES_NSH* that was not changes to CONFIG_SYSTEM_NSH*. 2018-08-18 13:34:44 -06:00
Gregory Nutt
3c4ca6a35e apps/system/nsh: Completes implementation of system() and popen() commands for the KERNEL build mode. 2018-08-18 11:39:26 -06:00
Gregory Nutt
7d47671b9d apps/builtin/Makefile: Fix an error introduced with commit 904d68cd1f: If there are no built-in functions, then the CATFILE function hangs. 2018-08-18 11:37:23 -06:00
Gregory Nutt
32f50985a6 Fix references to examples/nsh left in previous commit. 2018-08-18 09:33:25 -06:00
Gregory Nutt
8de513e36b apps/system/nsh: Move apps/examples/nsh to apps/system/nsh. It has become so entrenched that it is hardly an example these days. May as well formalized it as a system task. 2018-08-18 09:04:43 -06:00
Gregory Nutt
e3e911555a apps/system/system and popen: Adapt so that these can be used in the KERNEL build mode. In this case, simply replace task_spawn() with posix_spawn(). This depends on the existence of some environment where /bin/sh exists and can be used to execute one NSH command. For the case of system(), this change was more complete because it previously used task_create(). Now it uses either task_spawn() or posix_spawn(), depending upon the configuration. 2018-08-18 07:55:23 -06:00
Gregory Nutt
08263367bc apps/Application.mk: If a loadable module is generated the we need to add logic to remove the loadable module in the 'make clean' logic. 2018-08-17 16:31:35 -06:00
Gregory Nutt
8455ee34b6 apps/system/popen/Kconfig: popen is not available in the KERNEL build. 2018-08-17 15:58:29 -06:00
Gregory Nutt
064d4024e4 apps/examples/popen: Add a test of popen/pclose. apps/system/popen: Fix some errors found using the new popen/pclose test. 2018-08-17 14:25:33 -06:00
Gregory Nutt
f198e32c17 apps/system/popen: Add an implementation of the standard popen() and pclose() OS interfaces. These are implementated as applications vs. part of the OS because they depend on NSH. Untested on initial commit. 2018-08-17 10:45:06 -06:00
Gregory Nutt
9e9072bd00 apps/builtin/Makefile: Move the RWILDCARD function definition from apps/builtin/Makefile to nuttx/tools/Config.mk. It may have a broader usage than it does now. 2018-08-15 18:46:04 -06:00
Gregory Nutt
904d68cd1f apps/builtin/Makefile. This commit changes apps/builtin to search the registry recursively. By supporting directories, external projects can install the hooks into the registry and easily clean them up and reinstall if something needs to be updated. Based on an idea from Anthony Merlino. 2018-08-15 18:30:59 -06:00
Juha Niskanen
2e3f1c69d1 apps/examples/usrsocktest: Fix build error, 'daemon' redeclared as different kind of symbol 2018-08-15 06:15:16 -06:00
Gregory Nutt
6d01988fe8 apps/examples/calib_udelay/Kconfig: Select CONFIG_LIBC_FLOATINGPOINT needed by calibration logic. 2018-08-15 06:06:40 -06:00
Juha Niskanen
ed13a3ae27 examples/calib_udelay: Add tool for calibrating CONFIG_BOARD_LOOPSPERMSEC 2018-08-14 06:45:16 -06:00
Gregory Nutt
a89f0e3a07 Add missing function names in function headers. 2018-08-13 15:52:59 -06:00
Gregory Nutt
a57610c2c4 Remove trailing spaces at the end of lines. 2018-08-13 07:47:26 -06:00
Gregory Nutt
f2ef84f048 apps/nshlib: Back out 516a743344. While the change is fuly functional and adds a pleasing symmetry to the control commands, it is also redundant and serves no real purpose other than requiring more FLASH. 2018-08-12 06:15:29 -06:00
Gregory Nutt
f759ad3196 Backs out most of commit 093391fcff. I was confused. I re-emplemented a feature that already existed. Silly me. 2018-08-11 10:47:46 -06:00
Gregory Nutt
a7f4a9db23 Revert "apps/nshlib/nsh_command.c: Update help text."
This reverts commit 0511002543.
2018-08-11 10:39:48 -06:00
Gregory Nutt
0511002543 apps/nshlib/nsh_command.c: Update help text. 2018-08-11 10:34:57 -06:00
Gregory Nutt
093391fcff apps/nshlib/nsh_test.c: The test command will now accept '!' inversion when used in the form: [ ! <expression> ]. 2018-08-11 10:20:03 -06:00
Gregory Nutt
ff192a4a58 apps/nshlib: I was able to cause an assertion with some typos in an testing the 'fi' command. Not an important thing, but this will protect against the assertion. 2018-08-11 09:30:53 -06:00
Gregory Nutt
5cfe9c2787 Update README file. 2018-08-11 08:21:52 -06:00
Gregory Nutt
516a743344 apps/nshlib: Extend Beat Küng's commit 888ad352eb so that inverted logic may also be used in repeat and while loops. 2018-08-11 07:53:22 -06:00
Beat Küng
888ad352eb Merged in bkueng/nuttx-apps (pull request #150)
nsh: add inverted logic support in the form of 'if ! <cmd>'

Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-11 13:14:41 +00:00
Gregory Nutt
367093e65c apps/examples/module: Fix some chaos in conditional compilation. 2018-08-07 10:51:04 -06:00
Gregory Nutt
057eb80564 apps/examples/module: When built in the PROTECTED or KERNEL modes, the symbol table is not built by the application. That is because the build will fail since the kernel module depends on internal OS symbols thar are not available to the appliatino build. With this change the examples does not attempt to build the kernel symbol table in these modes. Instead it just copies the kernel module symbol table into the nuttx/pass1 directory where it can be build directly into the OS during pass2 of the build. 2018-08-07 09:15:01 -06:00