xref: /kvm-unit-tests/arm/Makefile.arm64 (revision cd5d420894c807ef152fc6b7018f5d281f0b9e2d)
1#
2# arm64 makefile
3#
4# Authors: Andrew Jones <drjones@redhat.com>
5#
6bits = 64
7ldarch = elf64-littleaarch64
8
9arch_LDFLAGS = -pie -n
10CFLAGS += -mstrict-align
11
12define arch_elf_check =
13	$(if $(shell ! $(OBJDUMP) -R $(1) >&/dev/null && echo "nok"),
14		$(error $(shell $(OBJDUMP) -R $(1) 2>&1)))
15	$(if $(shell $(OBJDUMP) -R $(1) | grep R_ | grep -v R_AARCH64_RELATIVE),
16		$(error $(1) has unsupported reloc types))
17endef
18
19cstart.o = $(TEST_DIR)/cstart64.o
20cflatobjs += lib/arm64/processor.o
21cflatobjs += lib/arm64/spinlock.o
22
23OBJDIRS += lib/arm64
24
25# arm64 specific tests
26tests = $(TEST_DIR)/timer.flat
27tests += $(TEST_DIR)/micro-bench.flat
28
29include $(SRCDIR)/$(TEST_DIR)/Makefile.common
30
31arch_clean: arm_clean
32	$(RM) lib/arm64/.*.d
33