| 1 | # |
| 2 | # Copyright (c) 2018 Red Hat, Inc. and/or its affiliates |
| 3 | # |
| 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. |
| 6 | # |
| 7 | |
| 8 | TARGET_LIST = i386 aarch64 s390x ppc64 loongarch64 |
| 9 | |
| 10 | SRC_PATH = ../../../.. |
| 11 | |
| 12 | .PHONY: help $(TARGET_LIST) |
| 13 | help: |
| 14 | @echo "Create migration guest includes. We generate a binary." |
| 15 | @echo "And then convert that binary to an include file that can be" |
| 16 | @echo "run in a guest." |
| 17 | @echo "Possible operations are:" |
| 18 | @echo |
| 19 | @echo " $(MAKE) clean Remove all intermediate files" |
| 20 | @echo " $(MAKE) target Generate for that target" |
| 21 | @echo " $(MAKE) CROSS_PREFIX=... target" |
| 22 | @echo " Cross-compile than target" |
| 23 | @echo " Possible targets are: $(TARGET_LIST)" |
| 24 | |
| 25 | override define __note |
| 26 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 27 | |
| 28 | /* |
| 29 | * This file is automatically generated from the assembly file in |
| 30 | * tests/qtest/migration/$@. Edit that file and then run "make" |
| 31 | * inside tests/qtest/migration to update, and then remember to send both |
| 32 | * the header and the assembler differences in your patch submission. |
| 33 | */ |
| 34 | endef |
| 35 | export __note |
| 36 | |
| 37 | $(TARGET_LIST): |
| 38 | $(MAKE) SRC_PATH=$(SRC_PATH) CROSS_PREFIX=$(CROSS_PREFIX) -C $@ |
| 39 | |
| 40 | clean: |
| 41 | for target in $(TARGET_LIST); do \ |
| 42 | $(MAKE) -C $$target clean; \ |
| 43 | done |