1# 2# arm makefile 3# 4# Authors: Andrew Jones <drjones@redhat.com> 5# 6bits = 32 7ldarch = elf32-littlearm 8machine = -marm -mfpu=vfp 9 10# stack.o relies on frame pointers. 11KEEP_FRAME_POINTER := y 12 13CFLAGS += $(machine) 14CFLAGS += -mcpu=$(PROCESSOR) 15CFLAGS += -mno-unaligned-access 16 17ifeq ($(TARGET),qemu) 18arch_LDFLAGS = -Ttext=40010000 19else ifeq ($(TARGET),kvmtool) 20arch_LDFLAGS = -Ttext=80008000 21else 22$(error Unknown target $(TARGET)) 23endif 24 25define arch_elf_check = 26endef 27 28cstart.o = $(TEST_DIR)/cstart.o 29cflatobjs += lib/arm/spinlock.o 30cflatobjs += lib/arm/processor.o 31cflatobjs += lib/arm/stack.o 32cflatobjs += lib/ldiv32.o 33cflatobjs += lib/arm/ldivmod.o 34 35# arm specific tests 36tests = 37 38include $(SRCDIR)/$(TEST_DIR)/Makefile.common 39 40arch_clean: arm_clean 41