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
Ouss4
9be72e0706
tools/pic32: Make the post build process depend on INTELHEX_BINARY, as
...
it converts a hex file.
Build the tool if it didn't exist.
2020-03-07 09:34:52 -06:00
Xiang Xiao
0d02168d28
toos/testbuild.sh: Remove the below warnning in nightly build
...
====================================================================================
Configuration/Tool: lm3s6432-s2e/nsh,CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL
Change-Id: I95cd6f0c00f68c68f9175574d44e75e24c41bc12
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Copy files
Select CONFIG_HOST_LINUX=y
Refreshing...
Disabling CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYL
Enabling CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL
Refreshing...
.config:1542:warning: override: reassigning to symbol ARMV7M_TOOLCHAIN_GNU_EABIL
Building NuttX...
------------------------------------------------------------------------------------
2020-03-07 09:32:39 -06:00
Ouss4
9daa8441e3
tools/pic32: Add the Config.mk file to execute the post build script.
...
Update Make.defs and README.txt files in boards directory accordingly.
2020-03-07 08:35:20 -06:00
Ouss4
0d88073644
toos/pic32: Some cosmetic changes.
...
- Rename the folder to PIC32.
- Rename the Makefile to Makefile.host
- Run nxstyle on the C file.
- Change licenses to ALv2.
2020-03-07 08:35:20 -06:00
David Sidrane
c5b4d9b628
nxstyle:nxstyle should pass nxstyle checks!
2020-03-07 08:31:36 -06:00
David Sidrane
8b1dc2825f
Update nxstyle.c
2020-03-06 15:49:59 -06:00