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 22cflatobjs += lib/arm64/gic-v3-its.o lib/arm64/gic-v3-its-cmd.o 23 24OBJDIRS += lib/arm64 25 26# arm64 specific tests 27tests = $(TEST_DIR)/timer.flat 28tests += $(TEST_DIR)/micro-bench.flat 29tests += $(TEST_DIR)/cache.flat 30 31include $(SRCDIR)/$(TEST_DIR)/Makefile.common 32 33arch_clean: arm_clean 34 $(RM) lib/arm64/.*.d 35