Re: how to build userspace for CONFIG_BUILD_KERNEL

2020-02-25 Thread Xiang Xiao
On Wed, Feb 26, 2020 at 12:57 PM Takashi Yamamoto wrote: > > hi, > > On Wed, Feb 26, 2020 at 1:36 PM Xiang Xiao wrote: > > > > For kernel build, all symbols need be resolved: > > 1.We need add libapps.a into LDLIBS to resolve nsh_*, which remove > > accidentally in commit 4ee39e208048f075860 > >

Re: how to build userspace for CONFIG_BUILD_KERNEL

2020-02-25 Thread Takashi Yamamoto
hi, On Wed, Feb 26, 2020 at 1:36 PM Xiang Xiao wrote: > > For kernel build, all symbols need be resolved: > 1.We need add libapps.a into LDLIBS to resolve nsh_*, which remove > accidentally in commit 4ee39e208048f075860 it removed only "ifneq ($(CONFIG_BUILD_KERNEL),y)" block. it should not affe

Re: how to build userspace for CONFIG_BUILD_KERNEL

2020-02-25 Thread Xiang Xiao
For kernel build, all symbols need be resolved: 1.We need add libapps.a into LDLIBS to resolve nsh_*, which remove accidentally in commit 4ee39e208048f075860 2.LDLIBS should contain libproxy.a to resolve sched_*, and libc.a for fprintf, but these library should in LDLIBS automatically. Thanks Xia

Re: how to build userspace for CONFIG_BUILD_KERNEL

2020-02-25 Thread Gregory Nutt
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 vali

how to build userspace for CONFIG_BUILD_KERNEL

2020-02-25 Thread Takashi Yamamoto
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 00c