1d54927efSWei Huang# 2d54927efSWei Huang# Copyright (c) 2018 Red Hat, Inc. and/or its affiliates 3d54927efSWei Huang# 4d54927efSWei Huang# This work is licensed under the terms of the GNU GPL, version 2 or later. 5d54927efSWei Huang# See the COPYING file in the top-level directory. 6d54927efSWei Huang# 7d54927efSWei Huang 8*34cc54fbSNicholas PigginTARGET_LIST = i386 aarch64 s390x ppc64 9d54927efSWei Huang 10d54927efSWei HuangSRC_PATH = ../.. 11fe730774SWei Huang 1236bd9e3cSJuan Quintela.PHONY: help $(TARGET_LIST) 1336bd9e3cSJuan Quintelahelp: 1436bd9e3cSJuan Quintela @echo "Create migration guest includes. We generate a binary." 1536bd9e3cSJuan Quintela @echo "And then convert that binary to an include file that can be" 1636bd9e3cSJuan Quintela @echo "run in a guest." 1736bd9e3cSJuan Quintela @echo "Possible operations are:" 1836bd9e3cSJuan Quintela @echo 1936bd9e3cSJuan Quintela @echo " $(MAKE) clean Remove all intermediate files" 2036bd9e3cSJuan Quintela @echo " $(MAKE) target Generate for that target" 2136bd9e3cSJuan Quintela @echo " $(MAKE) CROSS_PREFIX=... target" 2236bd9e3cSJuan Quintela @echo " Cross-compile than target" 2336bd9e3cSJuan Quintela @echo " Possible targets are: $(TARGET_LIST)" 2436bd9e3cSJuan Quintela 25fe730774SWei Huangoverride define __note 26d54927efSWei Huang/* This file is automatically generated from the assembly file in 27d54927efSWei Huang * tests/migration/$@. Edit that file and then run "make all" 28d54927efSWei Huang * inside tests/migration to update, and then remember to send both 29d54927efSWei Huang * the header and the assembler differences in your patch submission. 30fe730774SWei Huang */ 31fe730774SWei Huangendef 32fe730774SWei Huangexport __note 33fe730774SWei Huang 34d54927efSWei Huang$(TARGET_LIST): 3536bd9e3cSJuan Quintela $(MAKE) CROSS_PREFIX=$(CROSS_PREFIX) -C $@ 36fe730774SWei Huang 37fe730774SWei Huangclean: 38d54927efSWei Huang for target in $(TARGET_LIST); do \ 39d54927efSWei Huang $(MAKE) -C $$target clean; \ 40d54927efSWei Huang done 41