I'm trying to compile the illumos-kvm driver for AMD now.

So far I made the following changes to the Makefile:
- KERNEL_SOURCE =        $(PWD)/../../illumos
+ KERNEL_SOURCE = /code/omnios-151004/illumos-omnios

- CC =           $(PROTO_AREA)/usr/bin/gcc
+ CC =            /opt/gcc-4.6.3/bin/gcc

But one thing I can't figure out is how to set the "PROTO_AREA" variable.  The original Makefile has:
PROTO_AREA =   $(PWD)/../../../proto
and uses it on the following lines:
$ grep PROTO_AREA Makefile
PROTO_AREA =    $(PWD)/../../../proto
CC =        $(PROTO_AREA)/usr/bin/gcc    (I explicitly set the CC variable above)
LD =        $(PROTO_AREA)/usr/bin/ld
    -isystem $(PROTO_AREA)/usr/include \
    -isystem $(PROTO_AREA)/usr/include \
    -L$(PROTO_AREA)/lib \
    -L$(PROTO_AREA)/usr/lib
    -L$(PROTO_AREA)/lib \
    -L$(PROTO_AREA)/usr/lib \

Searching /code for "proto" directories, I find:
$ find /code -type d -name proto
/code/omnios-151004/illumos-omnios/usr/src/tools/proto
/code/omnios-151004/illumos-omnios/usr/src/cmd/sgs/proto
/code/omnios-151004/illumos-omnios/proto
But none of /usr/include, /lib, /usr/lib, or /usr/bin/ld exist under any of these "proto" directories

Any advice how to set this PROTO_AREA variable?


FWIW: I think this is an OmniOS question since it's regarding the "illumos-omnios" build directory

Thanks,
Kent






_______________________________________________
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss

Reply via email to