Hi,
There are some instructions for it used to be done here:
https://github.com/apache/incubator-nuttx/blob/master/boards/arm/sama5/sama5d4-ek/README.txt#L4018
However, a lot has changed in the apps/ build so you will probably need
to get updates from Xiao Xiang. Those instructions were valid up to a
couple of years ago. But probably not now.
Getting updated instructions there would be a great thing. A PR to do
that would be welcome!
Greg
On 2/25/2020 9:18 PM, Takashi Yamamoto wrote:
hi,
how can i build userspace for CONFIG_BUILD_KERNEL?
using sama5d4-ek:knsh config,
i tried "make TOPDIR=$(pwd) APPDIR=$(pwd)/../apps -C ../apps install".
it generated some binaries like the following.
but i don't see how it will get nsh_consolemain etc.
spacetanuki% nm ../apps/bin/init
000000c0 B _ebss
000000c0 D _edata
000000c0 N _edtors
000000c0 N _enoinit
000000bf R _erodata
00000098 T _etext
000000c0 B _sbss
000000c0 N _sctors
000000bf D _sdata
000000c0 N _sdtors
000000c0 N _snoinit
00000098 R _srodata
00000000 T _stext
U fprintf
00000000 T main
U nsh_consolemain
U nsh_initialize
U sched_getparam
U sched_getstreams
U sched_setparam
spacetanuki%