Xiang Xiao
4fe35cc87c
boards: Remove OUTPUT_FORMAT and OUTPUT_ARCH from ld script
...
let toolchain decide the correct value base on the command line
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I342db6a88e4a161a322a8fea48a59e6ca7617ae6
2020-06-02 07:11:54 -06:00
Xiang Xiao
b932b653dd
arch: Select 64bit elf base on the architecture characteristic
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I09eec5a76f255016a910cfec3b3f70cd7577525e
2020-05-31 21:38:32 -07:00
Xiang Xiao
8b20b97d26
build: Remove the dummy drivers folder under boards
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
e83c1400b6
build: Move BOARD_DIR definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
7e5b0f81e9
build: Replace -I with INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
23668a4b9b
build: Remove the empty variable assignment
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:24:13 -06:00
Xiang Xiao
dd61d3d9f9
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 18:00:40 +01:00
Xiang Xiao
7faf3c0254
build: replace ${TOPDIR} with $(TOPDIR) in Makefile
...
make the usage consistence
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
567962bd62
build: Move the extension definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
8b42ee421a
build: Move MKDEP definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
9ec9431706
build: Move DIRLINK/DIRUNLINK definition to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
Xiang Xiao
bd656888f2
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:02:55 -06:00
Nathan Hartman
8d985819b3
Fix typos
...
Comments only. No functional changes.
2020-05-14 10:49:44 -06:00
Xiang Xiao
92c721a532
boards: Fix the wrong order in some defconfig
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-11 12:24:58 -06:00
Gregory Nutt
153eee6de2
Make more OS internal names consistent
...
1. Internal scheduler functions should begin with nxsched_, not sched_
2. Follow the consistent naming patter of https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions
# clock_systimer -> clock_systime_tick
# clock_systimespec -> clock_systime_timespec
sched_oneshot_extclk -> nxsched_oneshot_extclk
sched_period_extclk -> nxsched_period_extclk
# nxsem_setprotocol -> nxsem_set_protocol
# nxsem_getprotocol -> nxsem_get_protocol
# nxsem_getvalue -> nxsem_get_value
nxsem_initholders -> nxsem_initialize_holders
nxsem_addholder -> nxsem_add_holder
nxsem_addholder_tcb -> nxsem_add_holder_tcb
nxsem_boostpriority -> nxsem_boost_priority
nxsem_releaseholder -> nxsem_release_holder
nxsem_restorebaseprio -> nxsem_restore_baseprio
Some planned name changed were skipped for now because they effect too many files (and would require many hours of coding style fixups).
2020-05-10 22:47:07 +08:00
Gregory Nutt
4b44b628ea
Run nxstyle against all .c and .h files modified by this PR.
...
All complaints fixed except for those that were not possible to fix:
- Used of Mixed case identifier in ESP32 files. These are references to Expressif ROM functions which are outside of the scope of NuttX.
2020-05-09 14:19:08 -03:00
Gregory Nutt
a4218e2144
include/nuttx/sched.h: Make naming of all internal names consistent:
...
1. Add internal scheduler functions should begin with nxsched_, not sched_
2. Follow the consistent naming patter of https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions
2020-05-09 14:19:08 -03:00
Xiang Xiao
7fa20cf40e
board/sim: Change CONFIG_SYSTEM_USRSOCK_RPMSG to CONFIG_NETUTILS_USRSOCK_RPMSG
...
follow up the apps side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-06 08:59:07 -06:00
YAMAMOTO Takashi
19cc84ed4a
sim: Suppress no symbol warnings for macOS
2020-05-05 21:40:16 +08:00
YAMAMOTO Takashi
1195228109
Revert "sim: Suppress "has no symbols" warnings for macOS"
...
This reverts commit c1beda50f8 .
IMO, it's too ugly hack just to surpress warnings.
2020-05-05 21:40:16 +08:00
Xiang Xiao
c1beda50f8
sim: Suppress "has no symbols" warnings for macOS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-01 10:48:17 -06:00
Xiang Xiao
2ec8f60e53
Run refresh.sh --silent all
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-18 07:17:38 -06:00
YAMAMOTO Takashi
0e9b0d7603
sim: Don't generate romfs image if CONFIG_NSH_CUSTOMROMFS=y
2020-04-18 19:32:08 +08:00
YAMAMOTO Takashi
15d328c3ab
sim: Fix config check for romfs image generation
2020-04-18 19:32:08 +08:00
chao.an
43989ee36f
sim/nsh2: fix nxserver stack overflow
...
increase nxserver stack size to 4K
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-17 09:24:49 -06:00
chao.an
3776bf6850
sim/configs: update the defconfig
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-17 09:24:49 -06:00
chao.an
3dd094520c
sim/nsh2: remove the specific Make.defs
...
Change-Id: If9204619c343993cecbf92c1b8d64a48480110e8
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-17 09:24:49 -06:00
chao.an
c758cb8341
sim/romfs: add etctmp into ignore list
...
Signed-off-by: chao.an <anchao@xiaomi.com>
Change-Id: I8d6828882a7a52cb7ec61af8f288c1910167cd0b
2020-04-17 09:24:49 -06:00
YAMAMOTO Takashi
366c446003
sim: Provide MODULESTRIP for macOS
2020-04-16 16:04:11 -06:00
YAMAMOTO Takashi
c61d959655
sim: macOS's strip doesn't have --strip-unneeded option
2020-04-16 16:04:11 -06:00
chao.an
0668a1552d
sim/nsh: dynamic rcS/rcRAW generation support
...
1. RCSRCS: Remove the fixed array definition and preprocessing
dynamic configuration makes the RC script more flexible.
2. RCRAWS: Add preinstalled file support.
Change-Id: Id7c1640962b12101fb85013bc2cfbd60ee08cd2f
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-16 13:20:56 -06:00
chao.an
c3b0848284
misc/Kconfig: enable LIBC_IOCTL_VARIADIC by default
...
Change-Id: I7bc23a6552af7b443eb433e4d2e3c2c8784b3956
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-12 09:27:41 -06:00
liuhaitao
459ad99373
Use EXTRAFLAGS instead of EXTRADEFINES to be used by make via command line
...
So call 'make EXTRAFLAGS=-Wno-cpp' could suppress the warnings with pre-processor
directive #warning in GCC.
Change-Id: Iaa618238924c9969bf91db22117b39e6d2fc9bb6
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-11 08:31:08 -06:00
Gregory Nutt
9c7841aff1
boards/sim/sim/sim/configs/ostest: Enable cancellation tests.
2020-04-07 19:59:13 +01:00
Nakamura, Yuuichi
2ca9681b00
Remove type casting to wdentry_t (boards/)
2020-04-07 06:23:15 -06:00
YAMAMOTO Takashi
4311e5e724
sim: Enable RTC stuff in vpnkit config
...
To avoid surprises with wrong timestamps for some network applications.
2020-04-02 14:16:54 +08:00
YAMAMOTO Takashi
a7415058e5
sim: Update vpnkit config
...
* Enable CONFIG_NETINIT_DHCPC as it's simpler to use
the configuration from vpnkit's dhcp server
* Refresh after the recent STACKSIZE changes
2020-04-01 19:50:22 +08:00
YAMAMOTO Takashi
80c05979fe
sim: enable CONFIG_TESTING_OSTEST_POWEROFF in ostest config
...
To make it easier to run on CI jobs.
2020-03-30 22:10:56 -05:00
YAMAMOTO Takashi
23e2c17a0f
sim: Remove CONFIG_SIM_M32 and CONFIG_ELF where unnecessary
...
Namely these defconfig files:
boards/sim/sim/sim/configs/mtdpart/defconfig
boards/sim/sim/sim/configs/mtdrwb/defconfig
boards/sim/sim/sim/configs/rpproxy/defconfig
boards/sim/sim/sim/configs/rpserver/defconfig
boards/sim/sim/sim/configs/tcpblaster/defconfig
Because the recent versions of macOS is 64-bit only and thus
incompatible with CONFIG_SIM_M32=y.
The following defconfig files are left intact as these configs
are important for them:
boards/sim/sim/sim/configs/loadable/defconfig
boards/sim/sim/sim/configs/module32/defconfig
2020-03-30 02:26:01 -05:00
YAMAMOTO Takashi
2b139625bb
sim: Add a config to test examples/{module,sotest} with -m32
2020-03-29 14:16:14 +01:00
YAMAMOTO Takashi
4ae8e435d1
sim: Add a config to test examples/{module,sotest}
2020-03-29 14:16:14 +01:00
YAMAMOTO Takashi
01c91e8af8
sim: Remove CONFIG_RAW_BINARY=y from configs
...
Because:
* A raw binary doesn't make sense for sim, where ./nuttx is
a host OS executable.
* It breaks test builds on macOS, where native objcopy
is not available.
2020-03-28 10:47:43 -05:00
YAMAMOTO Takashi
2f6d458bcf
sim/README: Mention macOS
2020-03-27 02:42:11 -05:00
YAMAMOTO Takashi
748777e3f5
sim: MODULE definitions for macOS
2020-03-27 00:04:36 -05:00
YAMAMOTO Takashi
f8077022bd
Introduce CONFIG_DEFAULT_TASK_STACKSIZE
...
* The appropriate size of stack varies among archs.
E.g. for 64-bit sim, 2048 is way too small, especially when the task
happens to use host OS functionalities.
I plan to allow an arch provide its own default.
* I plan to use this to replace hardcoded "STACKSIZE = 2048" in APPDIR.
2020-03-26 22:30:13 -05:00
YAMAMOTO Takashi
f19355132a
sim: Mention vpnkit docker image
2020-03-24 20:49:19 -05:00
YAMAMOTO Takashi
702d82d052
vpnkit: Add a config to specify the socket
2020-03-23 14:37:56 -05:00
YAMAMOTO Takashi
1ffa009c8b
Revert "Don't generate .depend anymore"
...
This reverts commit 79af7fbf4e .
Because:
* btashton reported some issues in local builds:
https://github.com/apache/incubator-nuttx/pull/603#issuecomment-602264860
* this might be related to the current CI breakage:
> /bin/sh: 1: /__w/incubator-nuttx/incubator-nuttx/nuttx/tools/mkdeps: not found
2020-03-22 23:07:29 -05:00
Xiang Xiao
79af7fbf4e
Don't generate .depend anymore
2020-03-22 18:15:29 +00:00
YAMAMOTO Takashi
5d5878d52d
NETWORK-VPNKIT.txt: Fix a typo
2020-03-20 02:44:31 -05:00