You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Daniel Pereira Carvalho <da...@gmail.com> on 2022/10/03 19:02:12 UTC
dummy folders in nuttx tree
Hi guys,
Looking at nuttx folders I saw two folders called "dummy", specifically
nuttx/dummy and nuttx/drivers/dummy. The last one is referenced by the
symbolic link nuttx/drivers/platform. What is the reason for this?
Thanks
Daniel Pereira de Carvalho
RE: dummy folders in nuttx tree
Posted by "Alin.Jerpelea@sony.com" <Al...@sony.com>.
Hi Daniel,
I think that it is possible to replicate the changes from Spresense for your own board
Please check:
tool/Unix.mk
boards/arm/cxd56xx/drivers/Kconfig
drivers/Kconfig
Best regards
Alin
-----Original Message-----
From: Daniel Pereira Carvalho <da...@gmail.com>
Sent: den 4 oktober 2022 20:34
To: dev@nuttx.apache.org
Subject: Re: dummy folders in nuttx tree
Hi Alin,
So, I suppose that if I have a custom driver that I have no reason to share and I want to keep it outside the NuttX folder tree, I can point the nuttx/driver/platform symlink to the custom driver folder. Doing this the Kconfig will appear on menuconfig. Is this correct?
If this is correct I am doing something wrong because it does not work for me. When I configure the board the symlink I just created is overwritten to original configuration, and restoring the symlink does not work either.
How should I proceed to build a custom driver outside the NuttX folder tree using this approach?
Thanks
Daniel Pereira de Carvalho
Em ter., 4 de out. de 2022 às 04:25, Alin.Jerpelea@sony.com < Alin.Jerpelea@sony.com> escreveu:
> Hi Daniel,
>
> There are boards (ex Spresense) that use drivers that are unique for
> those platforms In this case we use the symlinks to drivers folder but
> keep the drivers under the specific board that uses them
>
> Best regards
> Alin
>
>
> -----Original Message-----
> From: Daniel Pereira Carvalho <da...@gmail.com>
> Sent: den 3 oktober 2022 21:02
> To: dev@nuttx.apache.org
> Subject: dummy folders in nuttx tree
>
> Hi guys,
>
> Looking at nuttx folders I saw two folders called "dummy",
> specifically nuttx/dummy and nuttx/drivers/dummy. The last one is
> referenced by the symbolic link nuttx/drivers/platform. What is the reason for this?
>
> Thanks
>
> Daniel Pereira de Carvalho
>
Re: dummy folders in nuttx tree
Posted by Daniel Pereira Carvalho <da...@gmail.com>.
Hi Alin,
So, I suppose that if I have a custom driver that I have no reason to share
and I want to keep it outside the NuttX folder tree, I can point the
nuttx/driver/platform symlink to the custom driver folder. Doing this the
Kconfig will appear on menuconfig. Is this correct?
If this is correct I am doing something wrong because it does not work for
me. When I configure the board the symlink I just created is overwritten to
original configuration, and restoring the symlink does not work either.
How should I proceed to build a custom driver outside the NuttX folder tree
using this approach?
Thanks
Daniel Pereira de Carvalho
Em ter., 4 de out. de 2022 às 04:25, Alin.Jerpelea@sony.com <
Alin.Jerpelea@sony.com> escreveu:
> Hi Daniel,
>
> There are boards (ex Spresense) that use drivers that are unique for those
> platforms
> In this case we use the symlinks to drivers folder but keep the drivers
> under the specific board that uses them
>
> Best regards
> Alin
>
>
> -----Original Message-----
> From: Daniel Pereira Carvalho <da...@gmail.com>
> Sent: den 3 oktober 2022 21:02
> To: dev@nuttx.apache.org
> Subject: dummy folders in nuttx tree
>
> Hi guys,
>
> Looking at nuttx folders I saw two folders called "dummy", specifically
> nuttx/dummy and nuttx/drivers/dummy. The last one is referenced by the
> symbolic link nuttx/drivers/platform. What is the reason for this?
>
> Thanks
>
> Daniel Pereira de Carvalho
>
RE: dummy folders in nuttx tree
Posted by "Alin.Jerpelea@sony.com" <Al...@sony.com>.
Hi Daniel,
There are boards (ex Spresense) that use drivers that are unique for those platforms
In this case we use the symlinks to drivers folder but keep the drivers under the specific board that uses them
Best regards
Alin
-----Original Message-----
From: Daniel Pereira Carvalho <da...@gmail.com>
Sent: den 3 oktober 2022 21:02
To: dev@nuttx.apache.org
Subject: dummy folders in nuttx tree
Hi guys,
Looking at nuttx folders I saw two folders called "dummy", specifically nuttx/dummy and nuttx/drivers/dummy. The last one is referenced by the symbolic link nuttx/drivers/platform. What is the reason for this?
Thanks
Daniel Pereira de Carvalho