On 7/6/2021 04:45, Chris Johns wrote:
On 3/7/21 11:16 am, Kinsey Moore wrote:
network-config.h is now required for application compilation when using
nexus-devices.h. This makes sure that it gets installed to resolve build
errors.
I think it is a mistake to install this file. It is an internal file generated
by config.inc to ease creating the tests.
I am concerned the internals of how tests are built will leaking to applications
and this creates a new set interfaces.
I need to look at Peter's question that created this request. The preferred way
of doing this is to use rc.conf or craft your set of calls using BSd interfaces.
Chris
I had that thought as well which leads me to the question: Is
nexus-devices.h meant for test configuration or for application usage?
It is very clearly being used by applications as a place to store
default configurations that should work for most hardware and I'm not
sure we can (or should) change that. It would likely also be painful to
change and raise the barrier to entry. On the other hand, recent
conversations on this subject have pointed me toward nexus-devices.h
being primarily for test usage while applications should provide their
own set of definitions similar to nexus-devices.h
Maybe it would be better to have a test-specific include that goes into
all tests and supplements nexus-devices.h. This would force things to be
left out of the default-application-configuration-style nexus-devices.h
to accomodate test needs, but would still provide a good starter
configuration for applications.
Kinsey
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel