> NB: You'll need this patch too:
> https://github.com/apache/incubator-nuttx/pull/1480
<https://github.com/apache/incubator-nuttx/pull/1480>
Oh, I didn't realize that I had to patch v9.1.0 with this. I thought it was
already included in the latest releases. After patching, linking of my
drivers folder into nuttx/drivers/platform works.
Kconfig is parsed, and the new options appear in menuconfig.
But the code is not included in the build. I checked my Make.defs, and it
is similar to other Make.defs of the other drivers:
CSRCS += driver.c
DEPPATH += --dep-path platform
VPATH += :platform
CFLAGS += $(shell $(INCDIR) "$(CC)"
$(TOPDIR)$(DELIM)drivers$(DELIM)platform)
> The structure has not changed, Xiang patch made it possible to omit
> the "drivers" folder when it's not needed, in that case a dummy folder
> is linked
As I see, in v9.0.0, the structure was:
└── boards_dir
└── board1
└── drivers
but in v9.1.0 it is
└── boards_dir
├── board1
└── drivers
or am I missing anything?
Στις Τετ, 12 Αυγ 2020 στις 5:22 π.μ., ο/η Xiang Xiao <
[email protected]> έγραψε:
> You can try
> https://github.com/apache/incubator-nuttx/tree/master/boards/arm/cxd56xx
> and compare the difference with yours.
>
> > -----Original Message-----
> > From: Nathan Hartman <[email protected]>
> > Sent: Wednesday, August 12, 2020 5:34 AM
> > To: [email protected]
> > Subject: Re: Board-specific drivers in NuttX 9.1.0.
> >
> > On Tue, Aug 11, 2020 at 1:14 PM Fotis Panagiotopoulos <
> [email protected]>
> > wrote:
> >
> > The structure proposed by Xiang Xiao is not working for me.
> > >
> > > By looking in the Makefiles, I did understand that the structure has
> > > changed a bit.
> > > Now my structure is:
> > >
> > > ├── CustomBoard
> > > │ ├── defconfig
> > > │ ├── include
> > > │ ├── Kconfig
> > > │ ├── Make.defs
> > > │ ├── scripts
> > > │ └── src
> > > └── drivers
> > > ├── driver.c
> > > ├── driver.h
> > > ├── Kconfig
> > > └── Make.defs
> > >
> > > But still it does not work.
> > >
> > > Any ideas what may break it?
> >
> >
> > Maybe need to make distclean, followed by tools/configure.sh, to refresh
> NuttX's symbolic links?
> >
> > Nathan
>
>