xref: /kvm-unit-tests/arm/Makefile.arm64 (revision 6163f75d09a0a96a5c3db82dd768b13f79629c00)
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
28tests += $(TEST_DIR)/cache.flat
29
30include $(SRCDIR)/$(TEST_DIR)/Makefile.common
31
32arch_clean: arm_clean
33	$(RM) lib/arm64/.*.d
34