diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:14 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:14 +0200 |
commit | 3e83b8358a3ebd5965a4b432e6ad7aa82250db3a (patch) | |
tree | 4a715253ce2d6e5fc21b91d66eafcd9f1f1a1711 /arch/arm/Makefile | |
parent | c3bb685cd835a0a3585dbe013adde150f4731c98 (diff) | |
download | barebox-3e83b8358a3ebd5965a4b432e6ad7aa82250db3a.tar.gz barebox-3e83b8358a3ebd5965a4b432e6ad7aa82250db3a.tar.xz |
svn_rev_021
first compile success
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 0b6dd39652..76b72c19e6 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -1,3 +1,57 @@ -CPPFLAGS += -fno-builtin -ffreestanding -nostdinc \ +CPPFLAGS += -fno-builtin -ffreestanding -nostdinc -Wall \ -isystem $(gccincdir) -pipe -D __ARM__ -D CONFIG_ARM + + +machine-$(CONFIG_ARCH_IMX) := imx +board-$(CONFIG_MACH_MX1ADS) := mx1ads +cpu-$(CONFIG_ARM920T) := arm920t + +TEXT_BASE = 0x08400000 + +CPPFLAGS += -mabi=apcs-gnu -DTEXT_BASE=$(TEXT_BASE) +CFLAGS := -fno-common -ffreestanding -nostdinc -msoft-float +LDFLAGS_vmlinux :=-L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc + +ifeq ($(incdir-y),) +incdir-y := $(machine-y) +endif +INCDIR := arch-$(incdir-y) + +# Update machine arch and proc symlinks if something which affects +# them changed. We use .arch to indicate when they were updated +# last, otherwise make uses the target directory mtime. + +include/asm-arm/.arch: $(wildcard include/config/arch/*.h) include/config/auto.conf + @echo ' SYMLINK include/asm-arm/arch -> include/asm-arm/$(INCDIR)' +ifneq ($(KBUILD_SRC),) + echo incdir1: $(INCDIR) + $(Q)mkdir -p include/asm-arm + $(Q)ln -fsn $(srctree)/include/asm-arm/$(INCDIR) include/asm-arm/arch +else + echo incdir: $(INCDIR) + $(Q)ln -fsn $(INCDIR) include/asm-arm/arch +endif + @touch $@ + +archprepare: maketools + +PHONY += maketools +maketools: include/asm-arm/.arch + + +ifneq ($(board-y),) +BOARD := board/$(board-y)/ +else +BOARD := +endif + +ifneq ($(cpu-y),) +CPU := cpu/$(cpu-y)/ +else +CPU := +endif + +common-y += $(BOARD) $(CPU) + +common-y += arch/arm/lib/ |