Commit Graph

525 Commits

Author SHA1 Message Date
Gregory Nutt
a1304f494a tools/lowhex.c: Fix an initialization problem that was causing some odd behavior at the beginning of lines. 2019-02-07 11:28:04 -06:00
David Sidrane
754b485ce9 tools/.gitignore: Ignore new tool binaries. 2019-01-24 06:58:26 -06:00
Gregory Nutt
a8da0e977a Addition of trivial comment 2019-01-22 13:04:02 -06:00
Gregory Nutt
b4373e21e7 tools/convert-comments.c: Fix an error in handling of a blank C++ comment before a comment block. For example, this testfile:
1
2  //
3  // Multi-line comment
4  // The second line
5

Was generating this output:

1
2
3   * Multi-line comment
4   * The second line
5   */
6

Now correctly generates:

1
2  /* Multi-line comment
3   * The second line
4   */
5
2019-01-22 10:45:06 -06:00
Alan Carvalho de Assis
7127df3e38 drivers/power/mcp73871.c: Fix MCP73871 driver to register correctly as a battery charger. The first element of a 'struct battery_charger_dev_s' should be a pointer to operations structure. 2019-01-05 11:49:18 -06:00
Gregory Nutt
d1979ace8f tools/mkconfig.c: Add definitions to distinguish between tristate 'y' and 'm' options. 2019-01-05 08:44:17 -06:00
David Sidrane
39ac045cff tools/gencromfs.c: Fix build on macOS 2018-12-26 14:35:20 -06:00
David Sidrane
7fef81ea94 gencromfs.c:1171:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 2018-12-13 12:40:40 -06:00
Gregory Nutt
4a501de6b1 tools/detab.c: Fix a strange (but functional) conditional test noted by Alan Carvalho de Assis. 2018-12-03 13:25:14 -06:00
Gregory Nutt
fc744fb9b1 tools/: Add detab.c which will convert all tabs in a file to spaces. Add lowhex.c that will convert hexadecimal constants in a file to use lower case representation. 2018-12-03 08:45:05 -06:00
Gregory Nutt
e0608386f3 tools/convert-comments.c: Add a tool to convert C++-style comments to C89 C-style comments. 2018-12-01 19:15:54 -06:00
Matous Pokorny
7a4fb66192 Merged in ehiker/nuttx/fix_readme_typo (pull request #764)
Fix readme typo

* readme.txt: Fix typo

* tools/readme.txt: Fix typo

    There is no file called cmdconfig.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-11-21 14:06:51 +00:00
Gregory Nutt
f9fc2131b0 tools/nxstyle.c: Add -h for help. 2018-11-19 08:05:55 -06:00
Gregory Nutt
655904f342 tools/nxstyle.c: Add logic to detect long lines. 2018-11-19 07:50:59 -06:00
Gregory Nutt
0d13cb5055 Remove deletion of Eclipse project files from make distclean target per request of David Sidrane. 2018-11-09 10:39:18 -06:00
Xiang Xiao
acb83cfc61 tools/csvparser.h: Extend MAX_PARMSIZE to 256. Fixes this issue: 70: Parameter too long: ... 2018-11-08 07:36:02 -06:00
nchao
6509a0c0ca binfmt/ and libs/libc: Make exepath_*() more common:
1. Move exepath_*() related code to libc/misc
  1. Rename exepath_ to envpath_
  2. Rename BINFMT_EXEPATH to LIB_ENVPATH

libs/libc/modlib:  Add pre module library symbol table support
2018-11-08 07:27:14 -06:00
Gregory Nutt
12a500fcb6 tools/Makefile.win/unix: staging directory (and its libraries) should be removed on 'make clean' (issue noted by Dave Marples). Also updates TODO list 2018-11-06 07:37:02 -06:00
Anatol Ivanov
e748bb8cd3 tools/Config.mk and tools/Makefile.win: Force use 'cmd' for shell with windows native build 2018-11-06 06:34:00 -06:00
Anatol Ivanov
1dad62d3b7 Squashed commit of the following:
tools/configure.c: Add missing '\n' in printf statement

    tools/configure.c: Add missed -g option to getopt() string

    tools/configure.c and tools/configure.sh:  Fix Windows native pre-build kconfig-conf incompability.  Looks like prebuilt Windows native kconfig-conf interprets "..\apps" as "..apps" (possibly '\a' as escape-sequence) so expand winnative path to double-backslashed variant "..\\apps".

    tools/mkdeps.c:  Fix '\0' missing in MinGW.  Implicit bug. There are 2 cases.

    1. Under Linux.  The code works as planned: '\n' is always replaced with '\0' due to sprintf fills n-1 bytes and reaches buffer length limit.

    2. Under Windows/MinGW. There is memory corruption.  Seems like it`s a bug inside MinGW/snprintf.  Snprintf fills consecutively "oldbase",' ',"str",'\n', but does not inserts trailing '\0' instead of '\n'.  And when next append() occurs, strlen() returns garbage-appended "oldbase".

    So the fix just removes '\n' and reserves space for '\0'.

    tools/link.bat: Fix .fakelink creation

    configs/Makefile and tools/Config.mk:  Move single file copy to the new function COPYFILE.  This fixes the Windows native build case when there is no cp or cp does not recognize Windows paths.
2018-11-05 16:35:28 -06:00
Gregory Nutt
b51e77829e tools/nxstyle.c: Remove some logic added in previous change. Causes too many false alarms. 2018-10-31 12:42:18 -06:00
Gregory Nutt
6ac4681233 tools/nxstyle.c: Fix detection of blank line at beginning for file. Fix detection of whitespace at the end of a line. 2018-10-30 16:33:41 -06:00
Gregory Nutt
de764af9aa tools/nxstyle: Back out part of last commit. Logic to avoid some false alarms was causing real style problems from being reported. 2018-10-30 08:36:30 -06:00
Gregory Nutt
88130a996a net/: Fixes for more coding standard issues detected by nxstyle. 2018-10-29 18:00:30 -06:00
Gregory Nutt
dcb7ce8afd tools/nxstyle.c: Add logic to catch another formatting error and to eliminate some false alarms. Includes cosmetic changes to several files ... mostly as a result of testing nxstyle and finding issues. 2018-10-29 16:25:57 -06:00
Anthony Merlino
c21dfbb93c Merged in antmerlino/nuttx/libcxx-build-fix (pull request #727)
Fixes issue with libcxx build. This was changed multiple times, but should be fixed now.

Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-25 20:46:02 +00:00
Gregory Nutt
68a7fbf109 tools/tesbuild.sh: No longer installs and builds the NxWidgets libraries. They are now a port of apps/. 2018-09-16 07:13:18 -06:00
Gregory Nutt
a04d2eeb10 tools/Directories.mk: Correct the path to the installed libcxx directory. 2018-09-13 14:03:09 -06:00
Gregory Nutt
2b6dd99c2e Revert "Merged in antmerlino/nuttx/fix-libcxx-build-warning (pull request #719)"
This reverts commit 57e5142b98.
2018-09-13 13:59:28 -06:00
Anthony Merlino
57e5142b98 Merged in antmerlino/nuttx/fix-libcxx-build-warning (pull request #719)
Fixes build error. libcxx moved into libs/libxx/libcxx

Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-12 21:38:08 +00:00
Anthony Merlino
d533cc53df tools/Config.mk: Fix an error in RWILDCARD implemenation 2018-09-12 11:52:10 -06:00
Gregory Nutt
ddaea5dabc Revise commit cce9ae94f4: The pass1/ directly only needs to be added to the directories to be cleaned. That would be OTHERDIRS vs. NONFSFIRS. Also remove old reference to the defunct lib directory (now the staging directory). 2018-09-08 08:28:02 -06:00
Gregory Nutt
cce9ae94f4 tools/Directories.mk: The pass1 directory was not being cleaned on 'make distclean' 2018-09-08 08:11:38 -06:00
Gregory Nutt
b7d1f13a54 b/sched/sched/sched_waitpid.c: Remove options check in DEBUG_FEATURES 2018-09-05 06:45:49 -06:00
Gregory Nutt
3611aefd14 tools/mkexport.sh: Save the name of the STRIP tool too. 2018-09-04 17:18:16 -06:00
Gregory Nutt
b7726df9f7 tools/Makefile.unix: Was not cleaning up export directory if it was left from a failed export. configs/sama5d4-ek/README.txt: Update. 2018-09-04 13:19:17 -06:00
Gregory Nutt
ab5ebc5498 Revert "tools/KernelLibs.mk: Force libproxies to be built and installed before applications are build. Otherwise, the applications will not be able to find libproxies. I don't know why this was never seen before. Must be due to recent changes in the apps/ directory. The change is correct in any event."
This reverts commit f7eee58aee.
2018-09-03 16:27:54 -06:00
Gregory Nutt
f7eee58aee tools/KernelLibs.mk: Force libproxies to be built and installed before applications are build. Otherwise, the applications will not be able to find libproxies. I don't know why this was never seen before. Must be due to recent changes in the apps/ directory. The change is correct in any event. 2018-09-03 13:34:41 -06:00
Gregory Nutt
2722fd8192 tools/nxstyle.c: Add capability to detect multiple blank lines. Single spacing required by the coding standard. Also coding standard fixes to server .c files for problems found during testing nxstyle. 2018-08-24 05:51:44 -06:00
anchao
95163b2c59 Squashed commit of the following:
Author: Xiang Xiao <xiaoxiang@xiaomi.com>

     arch/arm/src/armv7-m:  Implement SYSTICK timer driver

   Author: anchao <anchao@pinecone.net>

     configs/sim/loadable:  Add loadable demo for arch sim
     sched/init: Restore previously reverted option to mount block device for INIT_FILEPATH case
     configs/stm3240g-eval/knxwm: Fix build breakage.

   Author: Gregory Nutt <gnutt@nuttx.org>
     configs:  With recent changes to apps/ all configurations that build applications as modules must now also select CONFIG_APPS_LOADABLE.

   Author: anchao <anchao@pinecone.net>
      configs/sim/loadable:  Add loadable demo for arch sim
       Kconfig and tools/Makefile.unix and : add dynamic application loadable support
2018-08-23 11:08:22 -06:00
Gregory Nutt
2679bd6784 Revert "Kconfig and tools/Makefile.unix and : add dynamic application loadable support"
This reverts commit dc15583df8.
2018-08-22 12:26:52 -06:00
Gregory Nutt
dc15583df8 Kconfig and tools/Makefile.unix and : add dynamic application loadable support 2018-08-22 09:02:26 -06:00
Gregory Nutt
30d7dbd9a6 Update C Coding standard again. Correct some comments in tools/nxstyle.c 2018-08-21 13:32:05 -06:00
Gregory Nutt
5635e9632c Reverts cc31f22213: That commit throughs the baby out with the bathwater. True, it did cause too many false alarms. But a better solution is to keep the logic but add some additional logic to reduce the number of false alarms. 2018-08-21 13:07:29 -06:00
Gregory Nutt
cc31f22213 tools/nxstyle.c: Back out part of a recent addition that was causing too many false alarms. drivers/wireless/ieee80211: Make a couple of files conform to the coding standard (and other cosmetic fixes). 2018-08-21 12:46:00 -06:00
Gregory Nutt
bbad69ab61 Change all occurrences of CONFIG_EXAMPLES_NSH* to CONFIG_SYSTEM_NSH* to match changes in the apps/ directory. 2018-08-18 09:14:59 -06:00
Gregory Nutt
aeda17318d tools/Config.mk: 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:45:39 -06:00
Gregory Nutt
96f05c895d tools/Config.mk: Add function CATFILE definition. Currently only used in apps/builtin/Makefile. 2018-08-15 18:30:12 -06:00
Gregory Nutt
17c18a1347 tools/kconfig2html.c: Update tool to handle tristate types. Fix a few errors detected in Kconfig files. 2018-08-10 17:30:17 -06:00
Gregory Nutt
4becaea8e3 This commit extends support for the two-pass build. Its primary purpose is to incorporate source logic generated by applications into the kernel phase of the build.
In the two pass build, the application logic is built during the first phase, pass 1.  In that phase, the application may generate and install source files in the pass1/directory.  The operating system is built during phase 2 of the build.  At that time, those source files in the pass1/ directory will be built and incorporated into the kernel address space.

The primary purpose of the pass1/ directory is to such application-generated kernel symbol tables.  For an example of the use of this feature, look at apps/examples/module/drivers/Makefile.  Kernel symbol tables are needed to support kernel modules.  Of course, addition board-specific logic in, say, configs/<board>/src would have to be included to make use of the application-installed symbol tables.
2018-08-07 08:31:00 -06:00