On Wed, 27 Mar 2013 00:44:57 +0100 Stefan Tauner stefan.tauner@student.tuwien.ac.at wrote:
Only Makefile changes versus v5. I still don't get this make magic at all... why does grepping in the .features file work which is only created when NEED_FTDI is set to yes, which only happens after the grepping (at least it is set one lines below NEED_FTDI...)!?
the explanation (which I seem to keep forgetting forever) is the two-phase evaluation of makefile and so-called deferred expansions: http://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.html
With v6 it is possible to compile ft2232_spi and usbblaster_spi independently. The only thing that does not work is stuff like make distclean ; make CONFIG_FT2232_SPI=yes CONFIG_USBBLASTER_SPI=no ; make CONFIG_FT2232_SPI=no CONFIG_USBBLASTER=yes because of the enum programmer, but that is not specific to this programmer, so I have committed ~this version in r1658 eventually.
Thanks Kyösti for pushing and thanks James for the initial version of the patch!