BaseTools: Barf on unknown HOST_ARCH in C Makefile
I was getting `HOST_ARCH` set using the linux arch name ("x86_64"), which is different from the MS one ("X64"). It is not clear anyway we can proceed without valid build variables (`ARCH_INCLUDE`, `BIN_PATH`, `LIB_PATH`, `SYS_BIN_PATH`, and `SYS_LIB_PATH`). Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chema Gonzalez <chemag@gmail.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
committed by
Liming Gao
parent
42e8bc7d16
commit
9d5aab0554
@@ -29,18 +29,18 @@ BUILD_LD ?= ld
|
||||
LINKER ?= $(BUILD_CC)
|
||||
ifeq ($(HOST_ARCH), IA32)
|
||||
ARCH_INCLUDE = -I $(MAKEROOT)/Include/Ia32/
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_ARCH), X64)
|
||||
else ifeq ($(HOST_ARCH), X64)
|
||||
ARCH_INCLUDE = -I $(MAKEROOT)/Include/X64/
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_ARCH), ARM)
|
||||
else ifeq ($(HOST_ARCH), ARM)
|
||||
ARCH_INCLUDE = -I $(MAKEROOT)/Include/Arm/
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_ARCH), AARCH64)
|
||||
else ifeq ($(HOST_ARCH), AARCH64)
|
||||
ARCH_INCLUDE = -I $(MAKEROOT)/Include/AArch64/
|
||||
|
||||
else
|
||||
$(error Bad HOST_ARCH)
|
||||
endif
|
||||
|
||||
INCLUDE = $(TOOL_INCLUDE) -I $(MAKEROOT) -I $(MAKEROOT)/Include/Common -I $(MAKEROOT)/Include/ -I $(MAKEROOT)/Include/IndustryStandard -I $(MAKEROOT)/Common/ -I .. -I . $(ARCH_INCLUDE)
|
||||
|
Reference in New Issue
Block a user