> If you want to build a v3 driver I would *seriously* recommend that you
> build under the ON tree (i.e. create a patch to ON for your code and
> makefiles). This is what I do, and it avoids many problems keeping
> header files up-to-date and in sync.
> If you want to find the actual build and lint rules though then go look
> in usr/src/uts/common/Makefile.rules

Its possible to build GLDv3 drivers outside of the build tree - you just
have to be vigilant on keeping both trees synchronized.

The emancipation driver-gate repo does exactly this:
  http://hg.opensolaris.org/sc/src/emancipation/driver-gate/

There are a number of supplementary rules for building out of tree
packages, however the makefiles here are designed to simulate building
within ON as closely as possible (this was intended to narrow the
integration gap).

It may help to examine the re driver; this is a modern driver using simple
hardware (RTL8029AS) to illustrate GLDv3 and Project Brussels integration.

Cheers,

Steve

_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to