On 29/06/11 03:26, Carl-Daniel Hailfinger wrote:
Autodetect target processor architecture. Enable architecture dependent compilation of individual sub-drivers for the internal programmer.
With this patch, you no longer have to edit the Makefile to compile the internal driver on MIPS/ARM/...
TODO: arch.h is not suitable for inclusion in a .c/.h file because of its last line. Any ideas how to change that (move arch.h as "here document" into the Makefile, use other trickery like more #ifdefs)?
Patch tested on PowerPC Linux. Flashrom still needs to be compiled with 'CONFIG_RAYER_SPI=0 CONFIG_NIC3COM=0 CONFIG_NICREALTEK=0 CONFIG_SATAMV=0 make' but then it works. I assume those variables can be automatically set based on the value of ARCH at a later date.
Checking for a C compiler... found. ARCH is "ppc" ...
$ uname -a
Linux mini 2.6.38-8-powerpc #42-Ubuntu Mon Apr 11 03:41:36 UTC 2011 ppc ppc ppc GNU/Linux
ps. Your post mentions ARM but arch.h doesn't.