As far as I can tell it's the same, current master[1], 9.1[2], 9.0[3], 8.1[4] I do have some flashes about the necessity of a drivers folder alongside the board folder with custom boards, but I can't remember. That was an issue, it's now resolved.
> 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: You need CONFIG_SPECIFIC_DRIVERS set. It's the drivers/Kconfig that defines it (i.e. you add it), you can then enable it from menuconfig. 1. https://github.com/apache/incubator-nuttx/tree/master/boards/arm/cxd56xx 2. https://github.com/apache/incubator-nuttx/tree/releases/9.1/boards/arm/cxd56xx 3. https://github.com/apache/incubator-nuttx/tree/releases/9.0/boards/arm/cxd56xx 4. https://github.com/apache/incubator-nuttx/tree/nuttx-8.1/boards/arm/cxd56xx On Wed, Aug 12, 2020 at 10:57 AM Fotis Panagiotopoulos <f.j.pa...@gmail.com> wrote: > > > 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 < > xiaoxiang781...@gmail.com> έγραψε: > > > 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 <hartman.nat...@gmail.com> > > > Sent: Wednesday, August 12, 2020 5:34 AM > > > To: dev@nuttx.apache.org > > > Subject: Re: Board-specific drivers in NuttX 9.1.0. > > > > > > On Tue, Aug 11, 2020 at 1:14 PM Fotis Panagiotopoulos < > > f.j.pa...@gmail.com> > > > 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 > > > >