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