liuhaitao
0b322c9784
examples/thttpd: update Makefile etc to fix build break
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-10 21:31:51 +08:00
Huang Qi
afaf013832
examples/lvgldemo: Make touch calibration optional
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-10 08:44:36 -03:00
liuhaitao
2c924f657f
examples/nxflat: update Makefile etc to fix build break
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-09 21:40:20 +08:00
Xiang Xiao
3f6343d3e7
examples/buttons: Switch dependence from ARCH_HAVE_BUTTONS to BUTTONS
...
application just use BUTTONS ioctl and shouldn't take care the implementation detail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia4d615700de1ac17302ab9b6379340fb81e69d86
2020-06-06 01:03:20 +01:00
Xiang Xiao
8e9e49a2f8
examples/leds: Switch dependence from ARCH_HAVE_LEDS && !ARCH_LEDS to USERLED
...
application just use USERLED ioctl and shouldn't take care the implementation detail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I5b707d86db1bd96d85b6fed1d5a403584739f0d7
2020-06-06 01:03:20 +01:00
Xiang Xiao
8f18b23352
examples: Fix the wrong dependence about config.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Iabedaa5da6439f4bfc34fb861382276446b4224f
2020-06-02 12:49:19 +02:00
Xiang Xiao
d03ff1bde6
build: Remove the duplicated mksymtab.sh
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:26:55 -06:00
Xiang Xiao
69f013e74e
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ea7437c2a8
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-22 12:25:09 +01:00
Xiang Xiao
ea135b89c6
build: Replace all -I to INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
ead498a788
build: Remove the workaround for the inexistence of .config/Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
9be0be5d47
build: host executable should use HOSTEXEEXT not EXEEXT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 08:58:10 -06:00
Xiang Xiao
6a26547dec
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
Xiang Xiao
d232823e63
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
...
so the correct value can be determinated by Kconfig system automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
liuhaitao
79e544f032
exmaples: some nxstyle fixes for module/sotest/thttpd
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-15 13:36:05 +08:00
liuhaitao
0c60624276
Update make dependency for elf/module/nxflat/posix_spawn/sotest/thttpd
...
Update make dependency for elf/module/nxflat/posix_spawn/sotest/thttpd examples which make use of
mksymtab.sh. This could avoid them built twice in 'make depend' and 'make all' which would result
in file truncated build break. Now only build once by 'make all'.
Change-Id: I5d8f1ebbf73e3b12d7d2118f1f51b4233d0ed007
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-15 13:36:05 +08:00
Masayuki Ishikawa
ba3baa57a5
examples: ftpc: Fix style violations in ftpc_main.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 18:17:57 -06:00
Masayuki Ishikawa
9a90b65355
examples: ftpc: Fix a compile warning for IPv4 only configuration
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 18:17:57 -06:00
Xiang Xiao
9d78e5b4c2
Remove executable bit from source code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-13 06:52:34 -06:00
chao.an
3aefe08cba
examples/dhcpd: reuse the router ip/mask from dhcpd lib
...
Change-Id: I6a9a783b9d9c8b9a4e56a885232a759f0adaeccb
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
chao.an
018c9420ac
netutils/dhcpd: cancelable dhcp daemon
...
Change-Id: Iea3c0b8f91b0d6d8ececcd3932d8756a9d021608
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
Gregory Nutt
baea789137
examples/thttpd/content/tasks/tasks.c: nxstyle check.
2020-05-09 14:55:38 -03:00
Gregory Nutt
3abdf30e8c
examples/thttpd/content/tasks/tasks.c: Update OS internal name
...
This logic uses the OS internal nxsched_foreach() function. This is a violation of the POSIX OS interface. But for now, we just update the name.
2020-05-09 14:55:38 -03:00
Pelle
0704bd2e49
Example application for the hdc1008 driver.
2020-05-07 03:09:27 +01:00
Xiang Xiao
7a99d62ca1
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaox
iang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
8a1f5ee34c
debug: Reduce CONFIG_CPP_HAVE_VARARGS usage
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 07:31:10 -06:00
Xiang Xiao
cfe030db40
examples: Replace all -luc with -lc
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-02 03:34:25 +01:00
liuhaitao
1fbfa8669c
Cleanup testdir dir in make distclean
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-01 13:48:39 +08:00
Xiang Xiao
42bde7fb27
examples: Remove the prefix of main from bmi160 and charger
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-30 08:50:20 -06:00
Xiang Xiao
547bad9e2a
Remove the unnecessary BUILD_FLAT dependence from Kconfig
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 11:46:53 -06:00
Xiang Xiao
dcc620e6b8
Kconfig: Change !BUILD_PROTECTED && !BUILD_KERNEL to BUILD_FLAT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-29 07:23:51 -06:00
Xiang Xiao
7da4a34aac
examples: Remove all '#undef __KERNEL__' from source code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-28 08:58:14 -06:00
liuhaitao
e8b5c47eb8
examples/unionfs: clean up the residual files after 'make distclean'
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-28 13:31:22 +08:00
Xiang Xiao
3bd2bc04b5
examples/unionfs: Remove [a|b]testdir.h in distclean
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-25 20:38:04 -06:00
Gregory Nutt
7b2e06b674
Fix errors from DEFAULT_TASK_SIZE change
...
There were several places where default sector and buffer sizes of 2048 were changed to DEFAULT_TASK_STACKSIZE. This is not correct. This was noted by Xiao Xiang.
2020-04-25 16:13:28 -03:00
Alin Jerpelea
c9eaf0beaa
examples: i2sloop: nxstyle fixes
...
nxstyle fixes for i2sloop exaple
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 16:41:51 -06:00
Alin Jerpelea
3cdb81077b
examples: i2schar: nxstyle fixes
...
nxstyle fixes for i2schar exaples
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 16:41:51 -06:00
Xiang Xiao
0c84e22aaf
example: Remove all APPNAME from Makefile
...
which doesn't use anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 10:29:34 -06:00
Xiang Xiao
4431d770b4
.gitignore: Add more entries found during prcheck testing
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 10:29:34 -06:00
Xiang Xiao
b813944a7a
example/nettest: tcpclient and tcpserver to .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 21:48:38 +08:00
YAMAMOTO Takashi
1b572ff169
Use MODULESTRIP where appropriate
2020-04-17 14:43:33 +08:00
Qi Huang
5018ee264c
graphics/littlevgl: Fix lvgl internal warning with patch
...
examples/lvgldemo: Fix build warning with specific config
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
2020-04-16 19:06:05 +08:00
liuhaitao
b8dc15f646
examples/thttpd: align to elf/posix_spawn exmaples to fix depend build warning
...
Build warning logs as below:
arm-none-eabi-gcc: warning: ./hello/Makefile: linker input file unused because linking not done
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-15 11:39:15 -03:00
Qi Huang
771811c1d7
examples/lvgldemo: Fix nxstyle
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
2020-04-15 11:38:24 -03:00
Qi Huang
2bb4cbf9ca
examples/littlevgl: Add missing btn event handler
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I4048fbd4907e465fe8f3a1a57c8ff830730a5bc3
2020-04-15 11:38:24 -03:00
Qi Huang
94b8dbe7aa
examples/lvgldemo: Port all demos to LVGL V6.1.2
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: Ie139af71e88d887bffefcd9b97977124c5a9e1c3
2020-04-15 11:38:24 -03:00
Qi Huang
13606dc253
apps/examples/lvgldemo: Port new simple demo from LVGL V6.1.2
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I1051edc15b6f66ce34d2f813964e0e8630ec351f
2020-04-15 11:38:24 -03:00
Qi Huang
b7e96b473d
apps/examples/lvgldemo: Update the lvgl init procedure
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I36d250d7839a86d486dcb8f720fcf12f9b954327
2020-04-15 11:38:24 -03:00
Qi Huang
1fa30e59d3
apps/examples/lvgldemo: Port tp_cal.c for LVGL V6.1.2
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I1fead13274822276e08d3f54016b079b174a1544
2020-04-15 11:38:24 -03:00
Qi Huang
25876e8222
apps/examples/lvgldemo: Update fb flush callback for LVGL V6.1.2
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I72a6ff628f2ea2b0b505e444c84b266ba3a28d87
2020-04-15 11:38:24 -03:00
Qi Huang
20f3db7317
apps/examples/lvgldemo: Update touchpad read callback for LittleVGL V6.1
...
Signed-off-by: Qi Huang <huangqi3@xiaomi.com>
Change-Id: I8df8ff81832ce651a4c2678d534a6aeb85cff6a7
2020-04-15 11:38:24 -03:00
Gregory Nutt
58085e5983
Run nxstyle against files modified in previous commit.
2020-04-12 19:17:49 +01:00
Gregory Nutt
f95d753759
Fix warnings noted in PR build checks.
...
userfs_main.c:547:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (*relpath == '\0')
^~~~~~~~~~~~~~~~
userfs_main.c:564:10: note: uninitialized use occurs here
return ret;
^~~
userfs_main.c:547:3: note: remove the 'if' if its condition is always false
if (*relpath == '\0')
^~~~~~~~~~~~~~~~~~~~~
userfs_main.c:543:10: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
test_motor.c:1068:14: warning: explicitly assigning value of variable of type 'float' to itself [-Wself-assign]
expected_e = expected_e;
~~~~~~~~~~ ^ ~~~~~~~~~~
2020-04-12 19:17:49 +01:00
Gregory Nutt
3e73991857
nxstyle fixes for PR 170
2020-04-11 20:32:53 +01:00
Gregory Nutt
05f2253a33
Remove CONFIG_CAN_PASS_STRUCT
...
This is the companion to PR #766 . It removes the CONFIG_CAN_PASS_STRUCT option as recommended by Issue #620
NuttX PR #766 depends on PR being in place but not vice versa. This PR should be merge-able without #766 and then PR #766 should also pass its checks.
2020-04-11 20:32:53 +01:00
Ouss4
d7df165c45
examples/udp: When a host PC is used, take its implementation of hton/ntoh functions.
2020-04-03 18:09:02 -06:00
raiden00pl
dd95e35787
examples/dsptest: fix nxstyle issues
2020-04-03 22:23:23 +01:00
YAMAMOTO Takashi
97b439f180
examples/udp: Avoid using non-standard s6_addr16
...
Also, fixes endian issues.
2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d5ec9f91ae
examples/udp: Avoid common symbols
2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d55401d3fc
examples/udp: Avoid conflicts with host OS definitions
2020-04-02 11:39:59 +01:00
YAMAMOTO Takashi
d79de16657
examples/udp: Appease nxstyle errors
2020-04-02 11:39:59 +01:00
Ouss4
5e245cf34b
examples/tcpblaster: When a host PC is used, take its implementation of hton/ntoh functions.
2020-03-31 14:35:57 +08:00
YAMAMOTO Takashi
326c80db72
tcpblaster: Appease nxstyle complaints
2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
7e6e19d80c
tcpblaster: Fix build on macOS
...
s6_addr is in standard. s6_addr16 is not.
See RFC 2553.
2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
5f91364d44
tcpblaster: Avoid conflicting with host OS definitions
2020-03-30 02:12:02 -05:00
YAMAMOTO Takashi
e8b0c903bc
examples/udpblaster: Fix some nxstyle errors
2020-03-28 11:56:44 -05:00
YAMAMOTO Takashi
60378318d3
udpblaster: Fix build on macOS
...
s6_addr is in standard. s6_addr16 is not.
See RFC 2553.
2020-03-28 11:56:44 -05:00
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
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
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
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
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
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
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
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
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