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