Commit Graph

3374 Commits

Author SHA1 Message Date
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
Gregory Nutt
303629dbe4 apps/nshlib: Small parsing improvement plus some added comments. 2018-08-06 15:52:02 -06:00
Gregory Nutt
cb556d6236 apps/nshlib: Add parsing support for back-slash quoted characters. Currenlty only implemented properly if CONFIG_NSH_ARGCAT is also selected. This commit is in response to Bitbucket Issue 11 opened by Maciej Wójcik 2018-08-06 13:28:31 -06:00
Gregory Nutt
af30085f9c apps/examples/module: Fix some error introduced with last changes to this example. Found in build testing. 2018-08-05 17:03:08 -06:00
mst
62134a0419 apps/system/cle: Usage improvements including command line history (taken from readline) and support for addition control characters. 2018-08-05 16:05:59 -06:00
Gregory Nutt
f5eeaf1fb6 examples/module: Add support for automounting removable media. This involves a wait for the block driver to become available before performing the mount. 2018-08-05 15:35:38 -06:00
Gregory Nutt
b980e943c7 apps/examples/module: Add support for CROMFS and for stripping symbols from ELF module binaries. 2018-08-05 14:10:44 -06:00
Gregory Nutt
6210fcae8b apps/examples/elf: Update some Kconfig comments. 2018-08-04 16:38:46 -06:00
Gregory Nutt
8572f223ae apps/examples/elf: If the test ELF files are on media in removable meda such as SD or USB FLASH, the wait until the media has been installed and initialized before starting the test. 2018-08-04 16:24:02 -06:00
Gregory Nutt
ba2d9e7c42 apps/examples/elf: CROMFS and ROMFS configuration currently only usable in FLAT build. Add configuration to use ELF objects on external media like SD card or USB drive instead. 2018-08-04 13:10:40 -06:00
Gregory Nutt
922283ee5d Squashed commit of the following:
Merged in masayuki2009/nuttx.apps/loadable_app (pull request #148)

    loadable app support

    * apps: Introduce a build system for loadable apps for nsh.

        This PR consits of following changes. (NOTE: Changes to each
        application will be provided separately)

        apps/nshlib/Kconfig:
        Add 'option modules' to NSH_FILE_APPS so that a user can change
        an application configuration to tristate (y/n/m)

        apps/Make.defs:
        Override COMPILE and COMPILEXX macros to compile loadable apps.
        To make loadable apps, -DLOADABLE_APP is added to the flags.
        Also, introduce ELFLD to link a lodable app.
        Please note that the variable 'LOADABLE' must be defined in
        each application Makefile if you want to make a loadable app.

        apps/Application.mk:
        Add .build target in case of 'LOADABLE=y' which is used to
        link a final loadable application and install the app to
        apps/bin.

        apps/Makefile:
        Add SYMTABSRC and SYMTABOBJ variables for loadable apps which
        will be generated under the apps directory.
        Add make_symbols target which will be called when all applications
        are installed to generate symtab_app.c which is used for
        nsh to inform symbol information to the NuttX kernel.

        Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

    * apps/examples/hello: Apply changes to support a lodable app.

        Kconfig:
        Change the application state from bool to tristate

        Make.defs:
        Change the condition to build. By default, the application is
        not selected (i.e. 'n'), so if other states (i.e. y/m) are
        selected, the application will be compiled.

        Makefile:
        If the application is specified to 'm', the variable 'LOADABLE'
        must be defined here. Also note that other variables (PRIORITY
        and STACKSIZE) can only be used for built-in apps.

        hello_main.c
        Add LOADABLE_APP condition to main().

        Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

    * apps/examples/helloxx: Apply changes to support a lodable app.

        Kconfig:
        Change the application state from bool to tristate

        Make.defs:
        Change the condition to build. By default, the application is
        not selected (i.e. 'n'), so if other states (i.e. y/m) are
        selected, the application will be compiled.

        Makefile:
        If the application is specified to 'm', the variable 'LOADABLE'
        must be defined here. Also note that other variables (PRIORITY
        and STACKSIZE) can only be used for built-in apps.

        helloxx_main.c
        Add LOADABLE_APP condition to main().

        Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

    Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-03 12:05:01 -06:00
Gregory Nutt
3e81973cd5 include/netutils/netlib.h: Eliminate a warning about AF_UNSPEC and AF_INET not defined. 2018-08-03 10:50:24 -06:00
Gregory Nutt
a1e5bf6bf3 apps/system/i2c: Adapt to rename I2C_M_RESTART->i2C_M_START. I2C_M_NOSTOP should be in flags of first message in every write-read and write-write mesage sequence. 2018-08-03 08:47:10 -06:00
Masayuki Ishikawa
d9cb9175ac Merged in masayuki2009/nuttx.apps/refactor_nxplayer (pull request #149)
nxplayer: Refactor nxplayer.c

Apply netlib_parsehttpurl() and remove unnecessary usleep().

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-31 12:16:31 +00:00