1# x86-32 toolchain 2ifeq ($(SUBARCH),x86-32) 3ifndef ARCH_x86_TOOLCHAIN_INCLUDED 4ARCH_x86_TOOLCHAIN_INCLUDED := 1 5 6ifndef ARCH_x86_TOOLCHAIN_PREFIX 7ARCH_x86_TOOLCHAIN_PREFIX := i386-elf- 8FOUNDTOOL=$(shell which $(ARCH_x86_TOOLCHAIN_PREFIX)gcc) 9endif 10 11ifeq ($(FOUNDTOOL),) 12$(warning cannot find toolchain in path, assuming i386-elf- prefix) 13ARCH_x86_TOOLCHAIN_PREFIX := i386-elf- 14endif 15 16endif 17endif 18 19# x86-64 toolchain 20ifeq ($(SUBARCH),x86-64) 21ifndef ARCH_x86_64_TOOLCHAIN_INCLUDED 22ARCH_x86_64_TOOLCHAIN_INCLUDED := 1 23 24ifndef ARCH_x86_64_TOOLCHAIN_PREFIX 25ARCH_x86_64_TOOLCHAIN_PREFIX := x86_64-elf- 26FOUNDTOOL=$(shell which $(ARCH_x86_64_TOOLCHAIN_PREFIX)gcc) 27endif 28 29ifeq ($(FOUNDTOOL),) 30$(warning cannot find toolchain in path, assuming x86_64-elf- prefix) 31ARCH_x86_64_TOOLCHAIN_PREFIX := x86_64-elf- 32endif 33 34endif 35endif 36 37