>So should I describe it to change in the Makefile or do we move
>this time (only the setting of the MACRO) to the `Config' file ?
Neither. Because then you are making prloader a rloader, and przloader a
rzloader and that's a sort of a lie. The simplest way to achieve what
you want is to edit the rules for the target NIC in Roms and change
PRLOADER to RLOADER, and PRZLOADER to RZLOADER. Only 4 lines need to be
changed for a given NIC. Then you will prepend a legacy ROM header when
you make that NIC's .rom and .lzrom images. Only don't let the file
Roms be regenerated from the file NIC.
If you are keen, then you can figure out what needs to be changed in
genrules.pl so that it will not prepend PCI headers in the absence of
PCI IDs for that NIC, even if it's a PCI NIC. Then you can just delete
the IDs from the line in NIC and it will generate a rule for a legacy
ROM.
If you are really keen you could work out a way of generating the tables
in config.c from NIC. Then adding a new variant of a supported
controller should only require one edit. The genrules.pl script has
served well, but is showing its age. Now that would be a truly useful
contribution.
|