Absolute path inclusion in the FreeBSD Drivers.

Sivakumar Subramani Sivakumar.Subramani at neterion.com
Fri Sep 22 00:45:20 PDT 2006


Hi,

 

I could see that all the file inclusion in all the driver use absolute
path. Can we use relative path and a CFLAG inclusion like this in the
Makefile?

 

For example,

 

In if_ixgb.h file,

#include <dev/ixgb/ixgb_hw.h>

#include <dev/ixgb/ixgb_ee.h>

#include <dev/ixgb/ixgb_ids.h>

 

Instead can we have following lines in the
/usr/src/sys/modules/ixgb/Makfile file as

 

.PATH: ${.CURDIR}/../../dev/ixgb

IXGB=   ${.CURDIR}/../../dev/ixgb

 CFLAGS+= -I. -I${IXGB}

 

In if_ixgb.h file,

#include <ixgb_hw.h>

#include <ixgb_ee.h>

#include <ixgb_ids.h>

 

Please advice.

 

Thanks,

~Siva



More information about the freebsd-net mailing list