diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-11 10:15:32 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-11 10:15:32 +0200 |
commit | 97c0278dc1cdef940d837be932a284c2bd7f4d35 (patch) | |
tree | bd0de4b1543c47e6368cd3feaa4b20b2b4c20ed8 /arch/blackfin/Makefile | |
parent | 6402a7d5b747008c5b13d8e62d97493b9f852700 (diff) | |
download | barebox-97c0278dc1cdef940d837be932a284c2bd7f4d35.tar.gz barebox-97c0278dc1cdef940d837be932a284c2bd7f4d35.tar.xz |
initial blackfin support
Diffstat (limited to 'arch/blackfin/Makefile')
-rw-r--r-- | arch/blackfin/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile new file mode 100644 index 0000000000..ec9af9d94c --- /dev/null +++ b/arch/blackfin/Makefile @@ -0,0 +1,56 @@ + +CPPFLAGS += -fno-builtin -ffreestanding -nostdinc -Wall \ + -isystem $(gccincdir) -pipe \ + -fno-strict-aliasing + + +board-$(CONFIG_MACH_IPE337) := ipe337 +cpu-$(CONFIG_BF561) := bf561 + +TEXT_BASE = $(CONFIG_TEXT_BASE) + +CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -P +CFLAGS := -fno-common -Os +LDFLAGS_uboot :=-L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -Ttext $(TEXT_BASE) + +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-blackfin/.arch: $(wildcard include/config/arch/*.h) include/config/auto.conf + @echo ' SYMLINK include/asm-blackfin/arch -> include/asm-blackfin/$(INCDIR)' +ifneq ($(KBUILD_SRC),) + $(Q)mkdir -p include/asm-blackfin + $(Q)ln -fsn $(srctree)/include/asm-blackfin/$(INCDIR) include/asm-blackfin/arch +else + $(Q)ln -fsn $(INCDIR) include/asm-blackfin/arch +endif + @touch $@ + +archprepare: maketools + +PHONY += maketools +maketools: include/asm-blackfin/.arch + + +ifneq ($(board-y),) +BOARD := board/$(board-y)/ +else +BOARD := +endif + +ifneq ($(cpu-y),) +CPU := arch/blackfin/cpu-$(cpu-y)/ +else +CPU := +endif + +common-y += $(BOARD) +common-y += arch/blackfin/lib/ $(CPU) + +MRPROPER_FILES += include/asm-arm/arch include/asm-arm/proc |