YAMAMOTO Takashi
8851d3a7d3
testbuild.sh: Make the use of "git clean" optional
...
Also, update the list of command line options in the help text.
2020-04-03 12:43:05 +08:00
Gregory Nutt
65739a38fb
tools/nxstyle.c: Alloc MHz in pre-processor variable names.
...
The sub-string MHz is used frequently is pre-processor variable definitions. The section "Lowercase Exceptions" permits reasonable use of lowercase characters in pre-processor variable names and, given the frequency of the use of MHz (no pun intended), it certainly should qualify.
2020-04-02 20:29:26 +01:00
YAMAMOTO Takashi
27142b2e3c
testbuild.sh: Use git clean instead of make distclean
...
As the former is considerably faster.
2020-04-02 13:40:05 +08:00
Gregory Nutt
a34e5fc043
tools/nxstyle.c: All Public Function Prototypes in C files
...
Allow "Public Function Prototypes" sections in .c files. Per the coding standard, all public function prototypes belong in .c files. However, there are some situations when the public function prototype is needed in a .c file and it shoudld, most correctly, be placed in a "Public Function Prototypes" section.
2020-04-01 22:57:51 +01:00
YAMAMOTO Takashi
03715743a3
testbuild.sh: Add an option to show the list of configs
...
This was useful for me when tweaking testlists.
2020-04-01 14:04:37 +08:00
Gregory Nutt
7f510a61b4
tools/nxstyle.c: Add fixedmath.h defines to white-listed prefixes
...
Checking for white-listed prefixes is also simpler now because the check is table driver. New data structure: g_white_prefix[] and new function white_prefix().
2020-03-31 19:26:26 +01:00
YAMAMOTO Takashi
4c0783353a
tools/testbuild.sh: Make blacklist work on macOS
...
I couldn't find where "\b" was documented.
I guess it's a zero-width word boundary or something like that.
Anyway, it doesn't seem to work on macOS.
2020-03-29 09:39:11 +01:00
YAMAMOTO Takashi
35e1aa82cb
tools/testbuild.sh: Allow spaces in comments
2020-03-28 11:23:42 -05:00
YAMAMOTO Takashi
18c574d66a
Config.mk: Provide the default MODULECC/MODULELD
...
In some cases, a separate toolchain is necessary to
build modules.
E.g. the sim on macOS, where the native format is Mach-O.
By default, just use CC/LD, which is appropriate for
the most of platforms.
2020-03-27 00:04:36 -05:00
Gregory Nutt
5c0e8e88b1
Revert "Makefile: move INCDIROPT to common place ( #625 )"
...
This reverts commit b9ace36fcc
.
This change was added by PR 625 but has a serious logic flaw. It removes all occurrences of INCDIROPT and replaces it with a definition in tools/Config.mk:
else ifeq ($(WINTOOL),y)
DEFINE = "$(TOPDIR)/tools/define.sh"
INCDIR = "$(TOPDIR)/tools/incdir.sh" -w
This logic flaw is the Config.mk is included in all Make.defs files BEFORE WINTOOL is defined. As a result, the definition is wrong in many places when building under Cygwin with a Windows native toolchain.
2020-03-26 08:50:29 -07:00
Xiang Xiao
b9ace36fcc
Makefile: move INCDIROPT to common place ( #625 )
2020-03-26 08:09:59 -06:00
liuhaitao
272a1460c5
Revert "tools/testbuild.sh: suppress lots of stdout log from configure.sh"
...
f6fc87bc36
commit silence configure.sh
make output defautly, so revert it.
This reverts commit f0267aff33
.
2020-03-23 22:04:27 -05:00
Ouss4
f6fc87bc36
tools/sethost.sh & tools/configure.c: When no make argument is passed, silence the make output.
2020-03-23 19:56:11 -05:00
Xiang Xiao
e1385b1074
tools/Config.mk: CATFILE clear the existing file
...
To simplify the caller usage
2020-03-23 12:23:05 -06:00
Xiang Xiao
aaa32156df
tools/Config.mk: implement a simple version of TESTANDREPLACEFILE for Windows
2020-03-23 12:22:50 -06:00
liuhaitao
f0267aff33
tools/testbuild.sh: suppress lots of stdout log from configure.sh
...
Redirect configure.sh stdout to /dev/null to suppress lots of log
since configure.sh behaviour updated.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-21 22:45:02 -05:00
Miguel Herranz
d410a29693
Support to run NuttX on ESP32 QEMU
2020-03-21 14:03:07 -06:00
Gregory Nutt
652e152d66
tools/nxstyle: Ignore stub names that begin with STUB_*
...
The names use for stub functions follows a non-standard convention: They begin with STUB_
2020-03-21 19:06:32 +01:00
Xiang Xiao
0456b70cd5
tools: Remove ; after break for all shell script
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-03-21 09:48:57 -07:00
Xiang Xiao
580364362c
tools/refresh.sh: Support passing the multiple configuration
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id3d4464e2d30871763b40067b3162b793e99c98f
2020-03-21 09:48:57 -07:00
Xiang Xiao
86e47534e6
tools: Remove -d option from configure.sh
...
since we can achieve the same effect by passing V=1 to make
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-03-21 09:48:57 -07:00
Xiang Xiao
a54a492dd2
tools/configure.sh: Support passing options to make
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I6c928ac4574721aacb87be27c979ca8ae146a4ce
2020-03-21 09:48:57 -07:00
Xiang Xiao
024024f468
tools: Sync Makefile.win with Makefile.unix
...
and fix the typo error and remove if/else nesting
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ife0c80d396417e8eb37e43d0883f272d4b9247a0
2020-03-21 09:48:57 -07:00
Xiang Xiao
76bfaecca6
tools/configure.c: Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-03-21 09:48:57 -07:00
Xiang Xiao
c4ea4e976d
tools/configure.sh: Add -e option to invoke distclean if already configured
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I19eddc3d4e6650eace2482c3cce8fbb07aadc04b
2020-03-21 09:48:57 -07:00
Xiang Xiao
1653b29542
Revert "tools/configure.*: Add -s option to skip .config/Make.defs existence check."
...
This reverts commit bf3ffddf2f
.
Change-Id: Ia858ca1aab79a6c599cf93d2701515951bdc7b80
2020-03-21 09:48:57 -07:00
Johannes Schock
898141300c
Don't check position of comments right of code when separated by preprocessor line without comment.
2020-03-19 09:36:57 -06:00
Xiang Xiao
5d6d9eeb82
tools/refresh.sh: Invoke make with V=1 if receiving -d option
2020-03-19 07:55:25 -06:00
Xiang Xiao
6f3ef32feb
tools/refresh.sh: Should detect Make.defs from config folder first
2020-03-19 07:55:10 -06:00
Xiang Xiao
6f9117eae2
tools/sethost.sh: Remove <config> argument
...
Since this argument generate the expanding(deprecated) defconfig
2020-03-19 07:54:57 -06:00
Xiang Xiao
b574ea8b73
tools/sethost.sh: Don't make clean_context explicitly
...
Since olddefconfig will do this automatically
2020-03-19 07:54:43 -06:00
Xiang Xiao
8a6d67d138
tools: Make sethost.sh can be invoke from any directory
2020-03-19 07:54:30 -06:00
Johanne Schock
cdf615855a
Added assembly header detection.
2020-03-14 08:38:39 -06:00
Xiang Xiao
d06cacb2f7
tools/refresh.sh: ad --nocopy option to skip copy defconfig ( #563 )
...
So we can normalize and copy the current .config to defconfig
2020-03-13 09:45:20 -06:00
Johanne Schock
645cf6d547
Handling of struct initializers changed.
...
Break conditionals with || at the end.
2020-03-13 07:58:52 -06:00
Xiang Xiao
4686d7cf57
tools: Support invoke refresh.sh from any directory
2020-03-13 06:24:49 -06:00
johannes-nivus
45196cad17
tools/nxstyle.c: Check for missing space before closing comment faulty ( #543 )
...
*Addresses Issue #540 , check for missing space before closing comment was faulty
2020-03-11 11:08:01 -06:00
David Sidrane
0db4529d8b
Add some helpful documentation in checkpatch.sh.
2020-03-10 13:22:32 -05:00
liuhaitao
aa4052936c
tools/nxstyle: clean up the no and unknown file extension info
...
Clean up the no and unknown file extension info since only .h and .c
files supported. Just ignore them quietly.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-10 08:43:23 -06:00
Johanne Schock
0b4ffa20a8
Checks for multiline comments right of #el..., changes message for a certain case of a comment following a right of code comment
2020-03-10 07:06:35 -06:00
liuhaitao
842b0c54d4
checkpatch: add checkpatch.sh README and correct some typos
...
Change-Id: Ib917dae235dc42fa2fa29e40c925f8fd048131df
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-10 11:13:03 +01:00
Johanne Schock
f764947c73
Signal error for multiline comment right of #if
2020-03-09 10:00:26 -06:00
Johanne Schock
745e0a4ca9
Some more fine tuning
...
Handle #define different than other preprocessor lines
Ignore backslash at the end of a comment right of a preprocessor line
2020-03-09 10:00:26 -06:00
Johanne Schock
5e5b6c2069
Finetuning false positive
2020-03-09 10:00:26 -06:00
Johanne Schock
fbe65a2d7d
Restrict check of right of code comments to #define in case of preprocessor lines
2020-03-09 10:00:26 -06:00
Johanne Schock
46b8347217
Style
2020-03-09 10:00:26 -06:00
Johanne Schock
b324596bac
Formatting
2020-03-09 10:00:26 -06:00
Johanne Schock
574344c56e
Changes to nxstyle which address issue #120 and add checks for column position of right of code comments
2020-03-09 10:00:26 -06:00
Johanne Schock
62c2b4aac7
nxstyle fixes
...
fixed coloumn number of error messages PR #487
fixed lineno_min = lineno_min
2020-03-08 07:29:30 -06:00
Johanne Schock
77d02e98a0
Implemented comment processing for preprocessor lines
2020-03-08 06:36:54 -06:00