Commit Graph

4531 Commits

Author SHA1 Message Date
YAMAMOTO Takashi
4ac7744c2e Appease nxstyle complaints 2020-03-28 10:21:48 -05:00
YAMAMOTO Takashi
cf30257f1c examples/udpblaster: Avoid conflicts with host OS definitions 2020-03-28 10:21:48 -05:00
YAMAMOTO Takashi
3ba85167fe system/ramtest: Change the default of stack size to DEFAULT_TASK_STACKSIZE
Given what this program does, it's probably ok to allocate a few more
kilo bytes of the stack.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
eb083265f4 system/flash_eraseall: Bump stack size to DEFAULT_TASK_STACKSIZE 2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
c9c1d2bbc6 Change the default of stack size configs to DEFAULT_TASK_STACKSIZE
Where:
 * Under examples and testing
 * And the default value is less than 2048

Using a bit more memory for examples and tests should not
be a critical problem.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
35933d8131 examples: Replace hardcoded stack sizes to DEFAULT_TASK_STACKSIZE
Where the hardcoded values are less than 2048.
Using a bit more memory for examples should not be a critical problem.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
2ecdf4c554 Change the default of a few stack size configs to DEFAULT_TASK_STACKSIZE
These had the larger default for the sim.
It's no longer necessary as DEFAULT_TASK_STACKSIZE
can have different default for each arch.

See also:
    commit b1d44a81b4
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
e7156be066 Change the defaults of stack size configs to DEFAULT_TASK_STACKSIZE
This commit changes only ones with the default 2048 and
leaves the others.
E.g. this leaves SYSTEM_RAMTEST_STACKSIZE, whose default is 1024.
I guess those need to be inspected one-by-one.
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
c304624fab Replace "STACKSIZE = 2048" with CONFIG_DEFAULT_TASK_SIZE
For now, I left the following instances because it isn't
clear to me why they are using the different values.
Maybe they need one-by-one inspection.

    examples/igmp/Makefile:STACKSIZE = 1024
    examples/powerled/Makefile:STACKSIZE = 1024
    examples/powermonitor/Makefile:STACKSIZE = 768
    examples/relays/Makefile:STACKSIZE = 512
    examples/smps/Makefile:STACKSIZE = 1024
    graphics/screenshot/Makefile:STACKSIZE = 4096
    system/flash_eraseall/Makefile:STACKSIZE = 1024
    testing/cxxtest/Makefile:STACKSIZE = 4096
    testing/smart_test/Makefile:STACKSIZE = 4096
2020-03-27 02:43:11 -05:00
YAMAMOTO Takashi
2f7480d11b Use MODULECC/MODULELD when building modules 2020-03-27 01:01:30 -05:00
YAMAMOTO Takashi
779502b4d9 Clean *.bdat and *.pdat on clean_context target 2020-03-26 22:29:28 -05:00
YAMAMOTO Takashi
9dca031f26 module: Appease nxstyle complaints 2020-03-26 18:46:13 +01:00
YAMAMOTO Takashi
e30177de4e sotest: Appease nxstyle complaints 2020-03-26 18:46:13 +01:00
YAMAMOTO Takashi
cc966d5414 module: Fix a printf format mismatch ("%s" vs int) 2020-03-26 18:46:13 +01:00
YAMAMOTO Takashi
4a4835030d sotest: Fix a printf format mismatch ("%s" vs int) 2020-03-26 18:46:13 +01:00
Xiang Xiao
f16a765cca
examples: Fix the parallel build break (#138)
1.Remove build target to avoid build and install run parallelly
2.Invoke the sub Makefile just before the parent source code compile
2020-03-23 11:40:44 -06:00
Xiang Xiao
1511403fdf Revert "Don't generate .depend anymore"
This reverts commit cc5ad09caa.
2020-03-22 23:09:40 -05:00
Xiang Xiao
f074d7f376 Makefile: let install depend on the target binary
to ensure the binary get built and install once
2020-03-22 22:42:13 +00:00
Xiang Xiao
258e014025 Revert "Ensure "build" before "install""
This reverts commit 404b330c25.
2020-03-22 22:47:16 +01:00
Xiang Xiao
8a7ea1695d Revert "examples/elf/tests: Ensure "build" before "install""
This reverts commit 2abf0f50e1.
2020-03-22 22:47:16 +01:00
Xiang Xiao
9394424b1e Revert "examples/sotest/lib: Fix dependency"
This reverts commit 0cb3712c19.
2020-03-22 22:47:16 +01:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore 2020-03-22 18:15:21 +00:00
Xiang Xiao
6ddf347178
Move MAKE_template and SDIR_template to Make.defs (#135)
So Directory.mk and Makefile can share the same definition
2020-03-22 10:06:37 -06:00
Xiang Xiao
6e3a9a2eda Call TESTANDREPLACEFILE instead of mv
To avoid the timestamp change even the content is same
2020-03-22 09:03:08 -06:00
Xiang Xiao
7caef179a2 Fix the typo error 2020-03-22 09:02:57 -06:00
Xiang Xiao
d614ee8efa
Strip the debug information if CONFIG_DEBUG_SYMBOLS isn't enable. 2020-03-22 14:46:58 +00:00
Gregory Nutt
da31673ddf Run nxstyle against all modified .c and .h files 2020-03-22 08:23:28 -05:00
Gregory Nutt
1a9444a68b Remove support for CONFIG_FS_WRITABLE and CONFIG_FS_READABLE 2020-03-22 08:23:28 -05:00
liuhaitao
54b375dc43 examples: Fix elf/module/posix_spawn sometimes parallel build errors at link time
It seems in the time window mksymtab.sh redirect to symtab.c, there is chance symtab.c
would also be built meantime. Then if built before symtab.c write done, link errors may
occur. So use rename and mv operation to reduce the possibility.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-21 20:46:58 +09:00
Xiang Xiao
ad552c8c7b Makefile don't change symtab_apps.c timestamp if no any change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I55576aec46bd057bc98cf2b6579d7ac96446ae27
2020-03-21 16:50:11 +09:00
liuhaitao
b27d694de4 example/module: update SYMTAB_SRC dependency to fix FSROOT not populated
In parallel build, for example maix-bit:module config, it reports:
nm: 'a.out': No such file
This is caused by FSROOT not populated with chardev when symtab.c
generated. So update SYMTAB_SRC dependency to fix it.

Change-Id: I5bb5d17db41f3bba98ae70a2acdd2ec594736611
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-20 19:13:54 +09:00
liuhaitao
47c0df6ae6 Revert "examples: elf: Fix parallel build errors at link time"
This reverts commit 176fd27c8a.
2020-03-20 08:30:15 +09:00
liuhaitao
d7886374bc Revert "examples/posix_spawn: Fix parallel build errors at link time"
This reverts commit 73319a6968.
2020-03-20 08:30:15 +09:00
liuhaitao
06c9f9359e Makefile: remove context dependency to avoid apps context build twice
In nuttx pass1dep and pass2dep builds, context firstly would be built once.
It then call 'make -C apps depend' which would trigger the context built twice.
There is race condition between symtab.c generated by mksymtab.sh in second time
and compiling symtab.c in parallel build. So remove context dependency for apps
depend to make sure context build only one time for apps.

Parallel build break logs as below:
/home/jenkins/jenkins-slave/workspace/NuttX-Nightly-Build/apps/examples/elf/elf_main.c:357: undefined reference to `g_elf_nexports'
riscv64-unknown-elf-ld: /home/jenkins/jenkins-slave/workspace/NuttX-Nightly-Build/apps/examples/elf/elf_main.c:357: undefined reference to `g_elf_exports'
make[1]: *** [nuttx] Error 1
make: *** [pass2] Error 2

Change-Id: I2872f7036e7ec86615efc5ebd7c46cee51dc1094
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-20 08:30:15 +09:00
Masayuki Ishikawa
0e13730afd
Merge pull request #120 from liuguo09/posix_spawn_nightly_build_fix
examples/posix_spawn: Fix parallel build errors at link time
2020-03-19 08:20:44 +09:00
Gregory Nutt
80428f56e2 examples/slcd/slcd_main.c: Fix nxstyle issues. 2020-03-18 11:11:31 -06:00
Pierre-Olivier Vauboin
f17d89d085 examples/slcd: fix priv->fd that was used by slcd_flush before being set 2020-03-18 11:11:20 -06:00
YAMAMOTO Takashi
e1d9e82273 nshlib: Fix a few strange whitespace in command help text 2020-03-18 00:39:17 -05:00
YAMAMOTO Takashi
382284b43c nsh_dbgcmds.c: Appease nxstyle complaints 2020-03-17 21:45:37 -06:00
YAMAMOTO Takashi
2b47187a83 nsh_command.c: Appease nxstyle complaints 2020-03-17 21:45:37 -06:00
Ouss4
7694f21292 system/cu/cu_main.c: Fix nxstyle complaints. 2020-03-13 16:36:03 -06:00
Oleg Evseev
df5d4cd033 system/cu/cu_main.c: Add option -f to loop forever. 2020-03-13 16:36:03 -06:00
Oleg Evseev
f221d33525 system/cu/cu_main.c: Fix wrongly swapped parity options. 2020-03-13 16:36:03 -06:00
Gregory Nutt
c742373efc apps/system/cle: Fix error when compiling with C89 compiler. 2020-03-13 20:14:14 +01:00
liuhaitao
73319a6968 examples/posix_spawn: Fix parallel build errors at link time
During generating symtab.c, compile seqeuence would start with
incomplete symtab.c. This change will fix such a situation.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-13 11:33:42 +08:00
liuhaitao
be3b314258 Update workflow to let build jobs do not depend on check nxstyle job
As discussion in https://github.com/apache/incubator-nuttx/pull/549 shows,
update github action workflow to let build jobs do not depend on nxstyle
check job in order to make sure each PR (including some nxstyle waiving cases)
be built at least.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-03-12 13:25:26 -05:00
Masayuki Ishikawa
176fd27c8a examples: elf: Fix parallel build errors at link time
During generating symtab.c, compile seqeuence would start with
incomplete symtab.c. This change will fix such a situation.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-03-11 20:53:37 -05:00
Masayuki Ishikawa
b1fd3ec8d8 examples: elf: Fix parallel build errors
NOTE: Apply the same logic as in examples/posix_spawn/Makefile

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-03-11 20:53:37 -05:00
YAMAMOTO Takashi
0cb3712c19 examples/sotest/lib: Fix dependency 2020-03-10 05:19:20 -05:00
Xiang Xiao
3398aad7eb examples/tcpblaster: Fix the nightly build warning
tcpblaster_server.c: In function 'tcpblaster_server':
tcpblaster_server.c:256:71: warning: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
           strftime(timebuff, 100, "%Y-%m-%d %H:%M:%S.000", localtime (&curr));
                                                                       ^
In file included from tcpblaster_server.c:50:0:
/usr/include/time.h:123:19: note: expected 'const time_t * {aka const long int *}' but argument is of type 'struct timespec *'
 extern struct tm *localtime (const time_t *__timer) __THROW;
                   ^~~~~~~~~
tcpblaster_client.c: In function 'tcpblaster_client':
tcpblaster_client.c:230:71: warning: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
           strftime(timebuff, 100, "%Y-%m-%d %H:%M:%S.000", localtime (&curr));
                                                                       ^
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-03-09 09:17:07 +01:00