Xiang Xiao
9bd83854f3
board/sim: Rename sysview config to segger
...
and enable CONFIG_SYSLOG_RTT
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-01 11:26:46 +01:00
Xiang Xiao
a9d7a776c4
sched: Remove SDCLONE_DISABLE option and config
...
since the related code was removed by:
commit 4d5a964f29
Author: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Date: Tue Feb 23 18:04:13 2021 +0800
net: unify socket into file descriptor
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-31 19:03:20 +01:00
YAMAMOTO Takashi
a1af6ece3f
boards/sim/sim/sim/scripts/Make.defs: CELFFLAGS += -mcmodel=large
...
We load the code into NuttX heap, which can be too far from
the usual code segments for the relocation types used by the
default "small" model to reach.
This worked around out of range relocations seen with my local app.
2022-01-31 12:40:06 +08:00
chao.an
8f166801c2
sim/sysview: add build config of Segger System View
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-29 17:26:04 +08:00
Xu Xingliang
021363f1db
driver/mmcsd: add option to limit block count in multiple-block transfer mode.
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-01-22 14:59:26 +08:00
Xiang Xiao
04297c3ca3
board: Remove -fno-omit-frame-pointer from Make.defs
...
except sim arch, since this flag is set inside Toolschain.defs now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-20 16:00:48 +01:00
yinshengkai
377c15955e
driver: add uinput support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
YAMAMOTO Takashi
f2ee1c5b35
boards/sim/sim/sim/scripts/Make.defs: undefine more platform macro
...
Namely __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__,
which libcxx refstring.h uses to detect macOS.
2022-01-19 11:38:21 +08:00
YAMAMOTO Takashi
7a576ff056
boards/sim/sim/sim/scripts/Make.defs: Disable libcxx availability macros
2022-01-19 11:38:21 +08:00
ligd
0a51f13ca5
rpmsg_rtc: merge the rpmsg_rtc_init to same place
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 22:48:15 +08:00
chao.an
377093339e
boards/sim: add dynamic connection defconfig
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-17 13:34:49 +08:00
Petro Karashchenko
8d3bf05fd2
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 11:11:14 -03:00
Xiang Xiao
41b9cf3cd8
rtc/rpmsg: Add sync parameter to control whether call clock_synchronize
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
6121f15d51
rtc/rpmsg: Move rtc_initialize out of rpmsg_rtc_initialize
...
like other rtc driver
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
626647be25
board/sim: Enable IOEXPANDER_DUMMY in nsh config
...
to improve the build and test coverage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
bbf5511e3a
arch/sim: Move the dummy ioe driver to drivers/ioexpender
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
b054bd9d37
arch/sim: Move the dummy foc driver to drivers/motor/foc
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
6e31d0dd87
boards/sim: Switch RAMMTD_FLASHSIM to [Q]SPI_FLASH for smartfs config
...
to extend the build/test coverage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-07 23:50:11 +08:00
Xiang Xiao
0cb858edd5
board/sim: Turn on more rpmsg drivers in rpserver config
...
to improve the build and test coverage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-07 15:59:58 +08:00
Xiang Xiao
3c86a3c2b0
input: Remove prompt string from INPUT_MOUSE
...
to ensure this option can only be enabled by select in Kconfig
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-06 17:51:27 +08:00
Xiang Xiao
d2309195da
boards/sim: Add vncserver config for test
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-03 11:19:32 +08:00
Alexander Lunev
944f6e9ec3
boards/sim: recovered eth0 interface in sim:tcpblaster configuration
2021-12-30 12:12:42 +08:00
Xiang Xiao
f768e1268b
boards/sim: Remove sim_tsc_setup
...
since all NX and VNC initialization should be initiated from
user space through BOARDIOC_NX_START and BOARDIOC_VNC_START
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-28 17:14:04 -03:00
chao.an
cbd82f1c1b
compile/flags: remove redundant -fomit-frame-pointer from board flags
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-27 22:31:27 -06:00
ligd
412d030149
boards: move USERMAIN_XX out of INIT_ENTRYPOINT
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-12-24 08:23:30 -06:00
Juha Niskanen
422ceec99b
Fix typos in comments and Kconfig files
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-12-21 03:26:16 -06:00
zhanghu6
d05b9a9c79
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH
...
1. If CONFIG_SCHED_INSTRUMENTATION_SWITCH is enabled, then these additional interfaces are expected:
sched_note_suspend
sched_note_resume
at the same time,If CONFIG_SMP is enabled,then expected:
sched_note_cpu_pause
sched_note_cpu_paused
sched_note_cpu_resume
sched_note_cpu_resumed
2. other board if enable SCHED_INSTRUMENTATION,SCHED_INSTRUMENTATION_SWITCH to defconfig.
2021-12-15 07:07:00 -06:00
Xiang Xiao
334bb9768a
Revert "sim: Specify -fshort-wchar as NuttX wchar_t is 16-bit"
...
It's better to apply the default compiler option to improve the compatibility
This reverts commit 3fc06ff2d1 .
2021-12-09 16:57:23 +09:00
ligd
4dfefb4e06
boards/sim: update sim for 'merge hostfs_rpmsg to rpmsgfs'
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-12-04 01:04:18 -06:00
Xiang Xiao
e30a5f3790
arch/sim: Add new option to enable arch specific hostfs
...
we have many different hostfs implementation now, so it's better
to select the implementation explicitly, just like what we have
done for arm(FS_HOSTFS vs. ARM_SEMIHOSTING_HOSTFS).
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-25 14:42:23 +01:00
Xiang Xiao
e6e3cc7e02
boards/sim: Automatically run ostest for asan and kasan config
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-23 17:17:24 +01:00
Xiang Xiao
df44aca932
sim/btuart: Remove the unnecessary config
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 10:13:47 +01:00
Xiang Xiao
c52a099197
sim: Add more config to asan/kasan for testing
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 21:02:43 +01:00
Xiang Xiao
3e967f784e
sim: Split SIM_SANITIZE to SIM_ASAN and SIM_UBSAN
...
align the naming style with MM_ASAN
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 21:02:43 +01:00
Xiang Xiao
df877a8a91
boards/sim: Add new config for KASan
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-02 13:32:47 -03:00
raiden00pl
6aeeb8a7c5
boards/sim/foc: fix configuration
2021-10-30 13:50:40 -05:00
yinshengkai
ee17ae5ba1
tool: add code coverage tool
2021-10-29 19:21:23 +02:00
chao.an
c1e2fd9014
boards/sim: refresh the defconfig since SIM_NETDEV changed
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-10-26 08:01:50 -05:00
YAMAMOTO Takashi
58bdcbab9b
Revert "Make: use gcc as LD"
...
This reverts commit 45672c269d .
Because:
* It's very confusing to have cc as LD.
* I don't see what "-nostartfiles -nodefaultlibs" in LDFLAGS are
supposed to do when we use LD directly. It would be simpler to
remove them from our LDFLAGS.
2021-09-08 09:40:48 +08:00
YAMAMOTO Takashi
d300558639
Revert "boards/sim/sim/sim: correct LDLINKFLAGS after migrating from ld to gcc":
...
This reverts commit 6545b95088 .
2021-09-08 09:40:48 +08:00
YAMAMOTO Takashi
e4f8cd06ad
Revert "sim: Use cc as linker, which usually aliases to either GCC or Clang"
...
This reverts commit ba1f730528 .
2021-09-08 09:40:48 +08:00
YAMAMOTO Takashi
5ad1cba338
Revert "arch: Replace ar and nm with gcc-ar and gcc-nm"
...
This reverts commit b05737d78f .
Because it broke clang-based builds.
2021-09-07 10:54:15 +08:00
liucheng5
fdb9576d7a
feature: driver: Add a Linux SPI into simulator.
...
When SIM_SPI is valid, a specified Linux SPI device ‘spidevN.P’(N is bus number and P is CS number) is attached to nuttx simulator, shown as 'spi0' under /dev. One may type spi command (need SPITOOL valid) in NSH to control the Linux SPI and exchange data, other devices such sensors can use it to debug in simulator on a Ubuntu PC. Note that a USB<>SPI module (e.g. CH341A/B) should be plugged in to achieve Linux SPI ports.
Change-Id: I275b2c2bbf6d14bcdf514c89efb9a2264d69e9a3
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2021-09-03 18:15:25 +08:00
Xiang Xiao
b05737d78f
arch: Replace ar and nm with gcc-ar and gcc-nm
...
to make enable LTO easily
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-02 10:02:14 -03:00
Alan C. Assis
afc0e2f0f4
sim/lvgl: Add CONFIG_INPUT_MOUSE to get GUI working
2021-09-01 13:54:36 -03:00
Alin Jerpelea
f74cbb7774
sim: spiffs: allow BSD components for testing purposes
...
SPIFFS is BSD and we should allow BSD components for testing purposes
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-08-30 22:39:04 +08:00
Xiang Xiao
e3ab1179fa
board: Enable CONFIG_LIBCXXABI when CONFIG_LIBCXX is enabled
...
to avoid link libsupc++.a which is provided by toolchain
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-28 17:13:43 -03:00
Xiang Xiao
ceb8bd4bce
libxx: Disable CXX_EXCEPTION by default to save the code space
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I1b1fafa95f0e385a615dba78f43858b797c5ce69
2021-08-28 17:13:43 -03:00
Alin Jerpelea
8119e1e8e0
sim: enable BSD components
...
By default the components with BSD license are disabled.
NOTE:
We are making an exception and enable the BSD components for
Simulator build to be able to thest the functionality.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-08-27 02:56:22 +08:00
Alan C. Assis
3309b8eee6
boards/sim: Add smartfs profile example
2021-08-10 09:08:25 -07:00