Hi Jorge, I tried compiling a kernel using the PTF file you provided and I didn't have any problems creating the nios2_system.h file. There were no# warning pre-processor directives within the file.
Could you e-mail me the results of your kernel build using the original "opencores_ethernet_mac.pm" file (instead of using the one that you modified). I need more context surrounding the# warning message that you got.
One other question... Are you using the
Opencores.org Ethernet MAC that we provide? Or did you get yours from somewhere else? I only ask because there were some differences in how the opencores_ethernet_mac name was spelled out in your PTF file than from what we provide in our kits.