On Wed, Jun 2, 2021 at 1:37 PM Kinsey Moore <kinsey.mo...@oarcorp.com> wrote:
> Hello, > > From what I’ve seen of the various BSPs supported by LibBSD that have > multiple ethernet peripherals, > > only one tends to be chosen and supported. I’ve encountered a situation > where the majority of platform > > examples (Zynq Ultrascale+ MPSoC dev boards) use CGEM3 as the only/primary > ethernet interface and I > > need to have the option of selecting a different peripheral as the primary > interface. > > > > Unfortunately, the current configuration of LibBSD/RTEMS does not allow > for easy switching among the > > available interfaces. The easy one-off option is to just create a BSP > variant with a little bit of extra logic > > to select the correct interface in LibBSD, but this problem seems more > generally applicable than just > > ethernet and just this one BSP. Is the best alternative to configure all > available devices in > > nexus-devices.h and let LibBSD figure it out? > Thinking out loud. The first order selection of the driver is the LIBBSD_ABC header guard to select a BSP. Some BSPs have a second ifdef. I think qoriq is an example. But this would require adding a BSP configure option or variant. --joel > > > Thanks, > Kinsey > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel