xref: /openbmc/qemu/tests/migration/Makefile (revision d54927ef)
1*d54927efSWei Huang#
2*d54927efSWei Huang# Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
3*d54927efSWei Huang#
4*d54927efSWei Huang# This work is licensed under the terms of the GNU GPL, version 2 or later.
5*d54927efSWei Huang# See the COPYING file in the top-level directory.
6*d54927efSWei Huang#
7*d54927efSWei Huang
8*d54927efSWei HuangTARGET_LIST = i386
9*d54927efSWei Huang
10*d54927efSWei HuangSRC_PATH = ../..
11fe730774SWei Huang
12fe730774SWei Huangoverride define __note
13*d54927efSWei Huang/* This file is automatically generated from the assembly file in
14*d54927efSWei Huang * tests/migration/$@. Edit that file and then run "make all"
15*d54927efSWei Huang * inside tests/migration to update, and then remember to send both
16*d54927efSWei Huang * the header and the assembler differences in your patch submission.
17fe730774SWei Huang */
18fe730774SWei Huangendef
19fe730774SWei Huangexport __note
20fe730774SWei Huang
21*d54927efSWei Huangfind-arch-cross-cc = $(lastword $(shell grep -h "CROSS_CC_GUEST=" $(wildcard $(SRC_PATH)/$(patsubst i386,*86*,$(1))-softmmu/config-target.mak) /dev/null))
22*d54927efSWei Huangparse-cross-prefix = $(subst gcc,,$(patsubst cc,gcc,$(patsubst CROSS_CC_GUEST="%",%,$(call find-arch-cross-cc,$(1)))))
23*d54927efSWei Huanggen-cross-prefix = $(patsubst %-,CROSS_PREFIX=%-,$(call parse-cross-prefix,$(1)))
24fe730774SWei Huang
25*d54927efSWei Huang.PHONY: all $(TARGET_LIST)
26fe730774SWei Huang
27*d54927efSWei Huangall: $(TARGET_LIST)
28fe730774SWei Huang
29*d54927efSWei Huang$(TARGET_LIST):
30*d54927efSWei Huang	$(MAKE) -C $@ $(call gen-cross-prefix,$@)
31fe730774SWei Huang
32fe730774SWei Huangclean:
33*d54927efSWei Huang	for target in $(TARGET_LIST); do \
34*d54927efSWei Huang		$(MAKE) -C $$target clean; \
35*d54927efSWei Huang	done
36