ARM: Add support for Versatile Express extended memory map

Also clean up how we create boot loader memory a bit.
This commit is contained in:
Ali Saidi
2012-03-01 17:26:31 -06:00
parent 3876105bdb
commit 91b737ed48
9 changed files with 130 additions and 29 deletions

View File

@@ -40,21 +40,24 @@
# Need to have CROSS_COMPILE set to /path/to/bin/arm-unknown-linux-gnu-
# or have arm-unknown-linux-gnu in your path
CROSS_COMPILE?=arm-none-linux-gnueabi-
CROSS_COMPILE?=arm-linux-gnueabi-
CC=$(CROSS_COMPILE)gcc
CPP=$(CROSS_COMPILE)g++
LD=$(CROSS_COMPILE)ld
all: boot.arm
all: boot.arm boot_emm.arm
boot.o: simple.S
$(CC) -mfloat-abi=softfp -march=armv7-a -fno-builtin -nostdinc -o boot.o -c simple.S
$(CC) -mfloat-abi=softfp -march=armv7-a -fno-builtin -nostdinc -o $@ -c $<
boot.arm: boot.o
$(LD) -o boot.arm -N -Ttext 0x80000000 boot.o -non_shared -static
$(LD) -o $@ -N -Ttext 0x80000000 $< -non_shared -static
boot_emm.arm: boot.o
$(LD) -o $@ -N -Ttext 0x00000010 $< -non_shared -static
clean:
rm *.o boot.arm
$(RM) -f *.o boot.arm boot_emm.arm
.PHONY: all clean