rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | ifndef ARCH_x86_TOOLCHAIN_INCLUDED |
2 | ARCH_x86_TOOLCHAIN_INCLUDED := 1 | ||||
3 | |||||
4 | ifndef ARCH_x86_TOOLCHAIN_PREFIX | ||||
5 | ARCH_x86_TOOLCHAIN_PREFIX := i386-elf- | ||||
6 | FOUNDTOOL=$(shell which $(ARCH_x86_TOOLCHAIN_PREFIX)gcc) | ||||
7 | endif | ||||
8 | |||||
9 | ifeq ($(FOUNDTOOL),) | ||||
10 | $(error cannot find toolchain, please set ARCH_x86_TOOLCHAIN_PREFIX or add it to your path) | ||||
11 | endif | ||||
12 | |||||
13 | endif |