1# -*- Mode: makefile -*- 2# 3# TCG Compiler Probe 4# 5# This Makefile fragment is included multiple times in the main make 6# script to probe for available compilers. This is used to build up a 7# selection of required docker targets before we invoke a sub-make for 8# each target. 9 10# First we need the target makefile which tells us the target architecture 11-include $(BUILD_DIR)/$(PROBE_TARGET)/config-target.mak 12 13# Then we load up the target architecture makefiles which tell us 14# about the compilers 15CROSS_CC_GUEST:= 16DOCKER_IMAGE:= 17DOCKER_PREREQ:= 18 19-include $(SRC_PATH)/tests/tcg/$(TARGET_BASE_ARCH)/Makefile.include 20-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.include 21 22ifndef CROSS_CC_GUEST 23ifneq ($(DOCKER_IMAGE),) 24DOCKER_PREREQ:=docker-image-$(DOCKER_IMAGE) 25endif 26endif 27 28# Clean-up 29# undefine TARGET_NAME 30# undefine TARGET_BASE_ARCH 31# undefine TARGET_ABI_DIR 32