2022-07-06 09:28:59 +02:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#
|
|
|
|
# Tests makefile
|
|
|
|
#
|
|
|
|
# Copyright Red Hat
|
|
|
|
# Author: David Gibson <david@gibson.dropbear.id.au>
|
|
|
|
|
2022-07-06 09:29:00 +02:00
|
|
|
DOWNLOAD_ASSETS = mbuto
|
2022-07-06 09:29:01 +02:00
|
|
|
LOCAL_ASSETS = mbuto.img QEMU_EFI.fd
|
2022-07-06 09:28:59 +02:00
|
|
|
|
|
|
|
ASSETS = $(DOWNLOAD_ASSETS) $(LOCAL_ASSETS)
|
|
|
|
|
|
|
|
assets: $(ASSETS)
|
|
|
|
|
2022-07-06 09:29:00 +02:00
|
|
|
mbuto:
|
|
|
|
git clone git://mbuto.sh/mbuto
|
|
|
|
|
|
|
|
mbuto.img: passt.mbuto mbuto
|
|
|
|
./mbuto/mbuto -p ./$< -c lz4 -f $@
|
|
|
|
|
2022-07-06 09:29:01 +02:00
|
|
|
QEMU_EFI.fd:
|
|
|
|
./find-arm64-firmware.sh $@
|
|
|
|
|
2022-07-06 09:28:59 +02:00
|
|
|
check: assets
|
|
|
|
./run
|
|
|
|
|
|
|
|
debug: assets
|
|
|
|
DEBUG=1 ./run
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f perf.js *~
|
|
|
|
rm -f $(LOCAL_ASSETS)
|
|
|
|
rm -rf test_logs
|
|
|
|
|
|
|
|
realclean: clean
|
|
|
|
rm -rf $(DOWNLOAD_ASSETS)
|