David Sidrane
562be9e4c7
gencromfs:Fix mode flags seperate code points for DIR LNK
2020-08-10 11:04:13 -06:00
Xiang Xiao
8807a52de6
tools/gencromfs: Change the generated code to Apache license
...
and ensure the code confirm the coding style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-09 14:43:56 +01:00
Xiang Xiao
4de69080d0
tools/gencromfs: Call dump_nextline immediately after dump_hexbuffer
...
to handle the temporary file switch correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-09 14:43:56 +01:00
David Sidrane
b6194bc0bf
tools/gencromfs: partial fix coding standard violation
...
Remaining violation seem to be an issue with the
tool parsing outptr[- lit - 1] = lit - 1
2020-08-06 08:36:03 -05:00
David Sidrane
fbd5712761
Fix Breakage from 91ed14c6
...
PR 1372 vfs/stat: Make the flag defintion more confirm POSIX
standard. Silently broke the cromfs. This was due to the
necessary replication of the S_xxxx flags of the NuttX
sys/stat.h. The unfortunate outcome was most likely caused by
fact, that a grep of S_xxxx did not match the tools/gencromfs.c
To insure this sort of thing does not happen again, comments
have been added the will match search.
2020-08-06 08:36:03 -05:00
Ouss4
e79298bc34
tools/Config.mk: Unquote the custom board path before using it in
...
Makefile functions.
2020-07-30 00:10:29 -05:00
Ouss4
708daf2c3d
tools/Config.mk: Remove CONFIG_ARCH_BOARD from BOARD_DIR when using a
...
custom board.
Custom boards don't set CONFIG_ARCH_BOARD since the full path is given
during configuration.
Furthermore this creates problems when when referencing other
folders using BOARD_DIR because a trailing DELIM will be present.
2020-07-30 00:10:29 -05:00
Xiang Xiao
6be8dd420c
tools/incdir: Fix the memory leak
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I9bf57071b5e967a3db55c7e473e84a8bad44cd2a
2020-07-23 15:49:08 +01:00
YAMAMOTO Takashi
9f8d52830f
tools/incdir: Assume GCC compatibility for unknown compilers
...
A use case:
intercept-build --override-compiler make CC=intercept-cc
cf. https://github.com/rizsotto/scan-build
2020-07-23 00:55:24 -05:00
Nakamura, Yuuichi
376786288e
Create wrapper library for system call instrumentation
2020-07-22 12:01:40 -05:00
Xiang Xiao
5ce84693d3
tools/mksyscall: Fix warning: '__builtin_strncpy' specified bound 256 equals destination size
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-20 17:10:37 +01:00
Xiang Xiao
17bd5f3d1a
tools/checkrelease.sh: auto import KEYS from the release server
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-18 11:29:27 -07:00
Xiang Xiao
ac7e5de5ae
libxx: Integrate uClibc++ latest official release
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I05377a0a7674f1cbe461ce67960bd3dc62729337
2020-07-17 21:40:34 +01:00
Ouss4
34bcf39c68
tools/configure.c: Don't redirect the output of make.
2020-07-17 10:14:42 -05:00
Xiang Xiao
4910d43ab0
build: Move the toolchain library setting to the common place
...
so all boards support C++ automatically
2020-07-16 15:38:08 -03:00
liuhaitao
fc2e785165
testbuild.sh: suppress logs from configure stage in testbuild.sh
...
Since testbuild.sh called by nightly build and check build, it should
suppress logs from configure stage to keep all output clean.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-07-16 15:40:46 +01:00
liuhaitao
67589adfb7
sethost.sh: always print logs to ease identify problem in configure phase
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-07-16 15:40:46 +01:00
Xiang Xiao
ee875b2a26
boards: Move HOSTCC/HOSTCFLAGS to tools/Config.mk
...
Make.defs under board folder can still overwrite the default as needed
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I1c300a8ace4b54d475ef8d398661ed65ca273a2e
2020-07-15 19:14:58 +01:00
Adam Feuer
11a8c3e035
checkrelease.sh now tries to build sim:nsh
...
Squashed commit of the following:
commit 2b7e2ef927462f492b94ce0f8f1ae248a4ff1609
Author: Adam Feuer <adam@starcat.io>
Date: Wed Jul 15 10:15:37 2020 -0700
remove duplicate method from bad merge
commit 31846cfcb5c61804ede3a31159c58dc9e627761e
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 14:20:36 2020 -0700
fix --dir option by doing cp "$DIRECTORY"/* .
- instead of cp "$DIRECTORY" .
commit 01d23a1a0bbaaf74f26c0589705b1f4a41c755bf
Author: Adam Feuer <adam@adamfeuer.com>
Date: Tue Jul 7 15:08:59 2020 -0700
changes from xiaoxiang781216
- remove verbose option
- simplify
commit 3db107e6fdebfbf9b2afa16bfe89c846d1ec7352
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 10:39:42 2020 -0700
simplify wget invocation; add slash to all URLS
commit fa6b14a649cd311e8316368992a709460823e756
Author: Adam Feuer <adam@starcat.io>
Date: Tue Jul 14 10:19:26 2020 -0700
quitting directly after unknown argument
- with usage
- also removed unneeded echo
- as per PR feedback
commit bfda65a347a85959d516f05ba579b5539e953816
Author: Adam Feuer <adam@starcat.io>
Date: Mon Jul 13 13:44:42 2020 -0700
streamline argument processing as per PR feedback
commit b6a8d77ef8000a9be71d044aa929b309e8baca72
Author: Adam Feuer <adam@starcat.io>
Date: Thu Jul 9 21:47:51 2020 -0700
PR feedback changes
- many
commit abf89d2ec28b0386d3dc4117e449c2f5893fca54
Author: Adam Feuer <adam@adamfeuer.com>
Date: Tue Jul 7 18:22:20 2020 -0700
added --gpg-output / -G flag
- to see GPG output
commit f0711df27e5eca2d1b9499d8c7532fc75cb0bc39
Author: Adam Feuer <adam@adamfeuer.com>
Date: Tue Jul 7 18:13:14 2020 -0700
quiet wget; check URL exists before downloading
commit 9bc97e7c0dfe0d392e39f11419081cf48db3b8fd
Author: Adam Feuer <adam@adamfeuer.com>
Date: Tue Jul 7 15:08:59 2020 -0700
checkrelease.sh script now builds sim:nsh
Squashed commit of the following:
commit 80d270b4d50ec10d912e7a67a0e86efe8ca95e98
Author: Adam Feuer <adam@adamfeuer.com>
Date: Tue Jul 7 15:06:48 2020 -0700
checkrelease script can use url, release, or dir
commit 6a7e8e3210d671d6aa2c60bd8a50701839924cf4
Author: Adam Feuer <adam@adamfeuer.com>
Date: Tue Jul 7 11:06:28 2020 -0700
try to build sim:nsh
commit 2cf777e062b99c8b3cb7184f55d1f82769c8f989
Author: Adam Feuer <adam@adamfeuer.com>
Date: Tue Jul 7 10:21:31 2020 -0700
improved success and error messaging
2020-07-15 12:50:40 -05:00
Xiang Xiao
d32e9c38df
boards: Move the C/C++ search path to the common place
...
so all boards support uClibc++/libc++ automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ibe6fafbec57f7acb26ea6188a3e9923ea82295c5
2020-07-13 15:11:12 -03:00
Xiang Xiao
cfc58d1913
nxstyle: Add some unwind name to the white list
...
we can't change the case because it is defined by ARM
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-11 10:34:22 -07:00
Ouss4
1a523e5519
tools/zipme.sh: Remove the option to exclude patterns based on the VCS'
...
"ignore" file.
2020-07-06 20:11:13 -07:00
Adam Feuer
b994d1f0b6
fixing problem with trap not removing tempdir
...
- needs to be in original dir to work
2020-07-06 21:24:19 -05:00
Adam Feuer
1076b748a2
changed header comment filename to match current
2020-07-06 21:24:19 -05:00
Adam Feuer
dbc025bb88
add examples to usage info
...
- as per PR feedback
2020-07-06 21:24:19 -05:00
Adam Feuer
ef3ba54c9c
cleanup unneeded cd and rm commands
2020-07-06 21:24:19 -05:00
Adam Feuer
5fb9356eca
changing script name to match checkpatch.sh
...
- as per PR feedback
2020-07-06 21:24:19 -05:00
Adam Feuer
407c5db66b
check-release-candidate.sh script
...
Squashed commit of the following:
commit 40b788f8a0e79aa90734813a557c17f90fb9cdbe
Author: Adam Feuer <adam@adamfeuer.com>
Date: Sat Jul 4 14:45:13 2020 -0700
updated license header to APL 2.0; updated usage
commit 81984aeeb503d90f30cb1d0c62a888e2a23235ed
Author: Adam Feuer <adam@adamfeuer.com>
Date: Thu Jul 2 18:32:05 2020 -0700
move tar.gz files to current dir
- for convenience, so user can untar them and build
commit e1a3100402e39703ea08daa16e2388d4572413dc
Author: Adam Feuer <adam@adamfeuer.com>
Date: Wed Jul 1 13:17:37 2020 -0700
added trap; copyright header; can take release name
- instead of URL, optionally
commit e0109214c5b887b4b662120ce59c59520d8a5918
Author: Adam Feuer <adam@adamfeuer.com>
Date: Wed Jul 1 12:54:54 2020 -0700
trap and remove tempfile; set -e to catch errors
commit 196dc4ca4285b821cce644561296a2034e9a671e
Author: Adam Feuer <adam@adamfeuer.com>
Date: Wed Jul 1 12:15:01 2020 -0700
using wget recursive and cut-dir to download files
- as per PR feedback
commit 127c22bbc14cabe2a59b238b75c21711b000e41b
Author: Adam Feuer <adam@adamfeuer.com>
Date: Wed Jul 1 11:35:01 2020 -0700
intial addition
2020-07-06 21:24:19 -05:00
chao.an
9d7856192b
make/POSTBUILD: make BIN directory configurable
...
enhance the post build can support configurable BIN directory
Change-Id: I64f286b6eb5ed77e91b67a27d815d62c345ac589
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-02 12:29:16 +01:00
chao.an
30d2b6c89c
make/export: export post build script
...
post build processing is also necessary for import compilation
Change-Id: Ie27e25b84e2212e9c86358c30ca1a5b7c2adffc5
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-02 12:29:16 +01:00
chao.an
628a352973
make/export: use LDNAME instead of LDSCRIPT
...
use LDNAME instead of LDSCRIPT to avoid invalid native path
exported to the import build
Change-Id: I1ba3cfdbfca02447941dc32a292fe4d76c1ced04
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-02 12:29:16 +01:00
chao.an
b8e5755568
make/version: correct the version generation
...
incorrect version generation by commit 3ec12a84c29d549d3de1e077f05bfb07ff315de5
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-30 14:51:18 +02:00
chao.an
b896da25c7
make/export: copy incdir.c for export build
...
export build break by commit 5555070fc3320d91876391bc24f0a7283d31841c
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-30 10:28:56 +02:00
Xiang Xiao
23e0134954
mksyscall: Fix warning "variable 'i' is used uninitialized"
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-29 14:12:58 +01:00
Alin Jerpelea
294fdd80a9
tools: cxd56: nxstyle fixes
...
nxstyle fixes to pass the CI checks
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-06-29 13:36:18 +01:00
Alin Jerpelea
5de436b872
tools: cxd56: mkspk: fix out of tree MAC build
...
The local copy of elf headers is needed for the MAC systems which miss the ELF headers.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-06-29 13:36:18 +01:00
Xiang Xiao
b2f3a4b5f9
tools/nxstyle: Support the white list
...
and add _Exit to the white list
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-28 21:07:57 +01:00
chao.an
fd3be9eb37
make/export: support export extra library
...
Change-Id: Iaab5dc8fd61b55888dad59d9b1d8380d7bd44a58
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-27 22:45:41 +01:00
chao.an
41f434015b
make/export: do not extract object from librarys
...
To avoid overriding of objects with duplicate file name
Change-Id: I83c964d161d23942cd3fc29eb738da44775cfc10
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-27 22:45:41 +01:00
chao.an
e82a9e0f48
make/export: copy mkdeps.c for export build
...
Change-Id: Ic1aa04d5d4dd2332cf4a13ec51c76cdb7d90736c
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-27 22:45:41 +01:00
chao.an
98f0b0afb5
build/export: correct the export path
...
Change-Id: Ia2e19f30d32154c3329f46c5d8362fafd6b7e274
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-27 22:45:41 +01:00
Xiang Xiao
f3c046175d
tools/version.sh: Make it invokable from everywhere
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-23 00:49:27 -07:00
Xiang Xiao
8b9876830e
tools/zipme.sh: Add executable bit
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-23 00:49:27 -07:00
Xiang Xiao
9bf4b55073
tools/zipme.sh: Don't move the directory to nuttx/Documentation
...
and remove the redundancy of "cd ${TRUNKDIR}"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-23 00:49:27 -07:00
Xiang Xiao
062373af20
tools/zipme.sh: Fix the typo error
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-23 00:49:27 -07:00
David Sidrane
3ec12a84c2
Makefile.unix:versioning insure it is a .git dir
...
An out-of-tree build may have a .git file that is from a
submodule. Once we find a .git file check if this is
really a working dir.
2020-06-18 10:29:51 +08:00
Xiang Xiao
dde25b0f80
tools/nxstyle: Fix AddressSanitizer error
...
=================================================================
==2474==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7fffb7e59b5f at pc 0x561fffec79f6 bp 0x7fffb7e59ac0 sp 0x7fffb7e59ab0
READ of size 1 at 0x7fffb7e59b5f thread T0
#0 0x561fffec79f5 in block_comment_width /home/xiaoxiang/mirtos/nuttx/tools/nxstyle.c:355
Address 0x7fffb7e59b5f is located in stack of thread T0 at offset 31 in frame
#0 0x561fffec7b90 in get_line_width /home/xiaoxiang/mirtos/nuttx/tools/nxstyle.c:419
This frame has 1 object(s):
[32, 544) 'line' (line 420) <== Memory access at offset 31 underflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-underflow /home/xiaoxiang/mirtos/nuttx/tools/nxstyle.c:355 in block_comment_width
Shadow bytes around the buggy address:
0x100076fc3310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x100076fc3360: 00 00 00 00 00 00 00 00 f1 f1 f1[f1]00 00 00 00
0x100076fc3370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc33a0: 00 00 00 00 00 00 00 00 00 00 00 00 f3 f3 f3 f3
0x100076fc33b0: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==2474==ABORTING
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie7dee3cdfdbbd04ea9cdb58e227afef07073cecd
2020-06-16 09:56:22 -06:00
Brennan Ashton
0430c6ccc8
Add problem matching for gcc and nxstyle to github actions
2020-06-11 00:52:55 +08:00
YAMAMOTO Takashi
44585eeaf8
mkdeps: Use %zu/%zd printf format instead of casts
2020-06-03 18:30:36 +08:00
YAMAMOTO Takashi
16884407eb
mkdeps: Quote CFLAGS to be safe with the shell
...
mkdeps uses system() thus a shell to execute cc.
it doesn't work if you have something like
CFLAGS += -DMBEDTLS_USER_CONFIG_FILE="<mbedtls/user_config.h>"
because the shell interprets "<" as a redirect.
to fix it, we should do either
* make it shell-quote arguments
* or, stop using system()
this commit implements the former.
some platforms provide easy ways to do the former.
eg. https://netbsd.gw.com/cgi-bin/man-cgi?shquote++NetBSD-current
but unfortunately none of them seems available widely.
i guess the latter approach is more common.
eg. 4464250282/usr.bin/mkdep/mkdep.c (L137-L154)
but i might be a burden for windows. (i don't know)
2020-06-03 18:30:36 +08:00