On 05/09/2013 02:28 PM, Jeroen Roovers wrote: > On Thu, 9 May 2013 01:08:35 -0400 > Mike Frysinger <vapier@xxxxxxxxxx> wrote: > >> People/distros vary how they prefix the toolchain name for 64bit >> builds. Rather than enforce one convention over another, add a for >> loop which does a search for all the general prefixes. This code >> will run for both native and cross builds when CROSS_COMPILE isn't >> explicitly set. > > Several architectures appear to use a scriptlet called > cc-cross-prefix for this. See scripts/Kbuild.include. That's cool :-) Basically this +ifneq ($(SUBARCH),$(ARCH)) + ifeq ($(CROSS_COMPILE),) + CROSS_COMPILE := $(call cc-cross-prefix, hppa$(WIDTH)-linux- hppa$(WIDTH)-linux-gnu-) + endif endif should then be enough. Do we really need to search for: hppa1.1-unknown-linux-gnu hppa1.1-linux-gnu hppa1.1-linux hppa2.0-unknown-linux-gnu hppa2.0-linux-gnu hppa2.0-linux on 32bit? Helge -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html