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
Gregory Nutt
3ee1af5bcc
Build System: Resolve CPU-specific logic in common build files
...
* tools/Config.mk - Add empty definition POSTBUILD
* tools/Makefile.unix/win - Replace CXD56xx specific logic with $(call POSTBUILD)
* boards/arm/cxd56xx/scripts/Config.mk - Add POSTBUILD definitions with logic removed from Makefile.unix/win
* boards/arm/cxd56xx/spresense/scripts/Make.defs - Include the CXD56xx Config.mk immediately after tools/Config.mk so that the empty POSTBUILD definition will be replaced with the correct one
NOTE: There is a precedent for this approach. This is the way that other architecture-specific build options are implemented. See, for example, tools/zds/Config.mk
2020-03-06 11:44:53 -06:00
YAMAMOTO Takashi
45a8edd227
nxstyle: Output line numbers when complaining on block comments length
2020-03-06 07:25:52 -06:00
YAMAMOTO Takashi
0715ab3132
Revert "tools/nxstyle: Back out part of last commit. Logic to avoid some false alarms was causing real style problems from being reported."
...
If we are going to use this tool for things like
git pre-commit hook or CI workflow, it's critical to
avoid false alarms.
This reverts commit de764af9aa
.
2020-03-06 07:25:11 -06:00
YAMAMOTO Takashi
4879f2225e
nxstyle: Don't complain on ELF things like Elf32_Hdr
2020-03-05 21:18:12 -06:00
YAMAMOTO Takashi
e5ea0ac32d
nxstyle: Don't parse a file if its type is unknown
2020-03-05 20:18:11 -06:00
YAMAMOTO Takashi
aa205b3732
mkexport: Deal with ARCHSCRIPT containing multiple files
...
This fixes "make export" for esp32-core.
2020-03-03 08:10:06 -06:00
liuhaitao
58318bbc28
tools/testbuild.sh: prevent grep from exiting in case of nomatch
...
Prevent grep from exiting in case of nomatch for blacklist when testbuild.sh called
with -x option which set -e in bash.
2020-03-03 08:06:40 -06:00