2 # Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
4 # This work is licensed under the terms of the GNU GPL, version 2 or later.
5 # See the COPYING file in the top-level directory.
8 TARGET_LIST = i386 aarch64
12 override define __note
13 /* This file is automatically generated from the assembly file in
14 * tests/migration/$@. Edit that file and then run "make all"
15 * inside tests/migration to update, and then remember to send both
16 * the header and the assembler differences in your patch submission.
21 find-arch-cross-cc = $(lastword $(shell grep -h "CROSS_CC_GUEST=" $(wildcard $(SRC_PATH)/$(patsubst i386,*86*,$(1))-softmmu/config-target.mak) /dev/null))
22 parse-cross-prefix = $(subst gcc,,$(patsubst cc,gcc,$(patsubst CROSS_CC_GUEST="%",%,$(call find-arch-cross-cc,$(1)))))
23 gen-cross-prefix = $(patsubst %-,CROSS_PREFIX=%-,$(call parse-cross-prefix,$(1)))
25 .PHONY: all $(TARGET_LIST)
30 $(MAKE) -C $@ $(call gen-cross-prefix,$@)
33 for target in $(TARGET_LIST); do \
34 $(MAKE) -C $$target clean; \