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