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 26tests += $(TEST_DIR)/micro-bench.flat 27 28include $(SRCDIR)/$(TEST_DIR)/Makefile.common 29 30arch_clean: arm_clean 31 $(RM) lib/arm64/.*.d 32