2012/9/15 Georg-Johann Lay <a...@gjlay.de>: > Canadian cross build fails because the wrong compiler is used to compile > gen-avr-mmcu-texi. This small tool must run on build and not on host, thus > the right compiler is CC_FOR_BUILD. > > Just changing the compiler is not enough because files like system.h were > dragged in that were configured for host, not for build. > > Therefore the patch factors out the structures/enums that are shared between > the programs that run on host (compiler proper, driver) and gen-avr-mmcu-texi > that runs on build. > > With the patch the compiler build fine, both as native cross > (build=host!=target) and as canadian cross (build!=host!=target!=build). > > Moreover, I changed the string comparator in gen-avr-mmcu-texi.c to that > it prints the devices in a more appropriate order with the AVR device name > nomenclature. > > Ok to apply? >
Approved. Denis.