2007-07-05 16:01:13 +00:00
|
|
|
|
2007-07-05 16:01:14 +00:00
|
|
|
CPPFLAGS += -fno-builtin -ffreestanding -nostdinc -Wall \
|
2007-07-05 16:01:20 +00:00
|
|
|
-isystem $(gccincdir) -pipe -D __ARM__ -D CONFIG_ARM \
|
|
|
|
-ffixed-r8
|
2007-07-05 16:01:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
machine-$(CONFIG_ARCH_IMX) := imx
|
2007-07-05 16:01:17 +00:00
|
|
|
machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200
|
2007-07-05 16:01:14 +00:00
|
|
|
board-$(CONFIG_MACH_MX1ADS) := mx1ads
|
2007-07-05 16:01:17 +00:00
|
|
|
board-$(CONFIG_MACH_ECO920) := eco920
|
2007-07-05 16:01:24 +00:00
|
|
|
board-$(CONFIG_MACH_SCB9328) := scb9328
|
2007-07-05 16:01:14 +00:00
|
|
|
cpu-$(CONFIG_ARM920T) := arm920t
|
|
|
|
|
2007-07-05 16:01:24 +00:00
|
|
|
TEXT_BASE = $(CONFIG_TEXT_BASE)
|
2007-07-05 16:01:14 +00:00
|
|
|
|
|
|
|
CPPFLAGS += -mabi=apcs-gnu -DTEXT_BASE=$(TEXT_BASE)
|
2007-07-05 16:01:23 +00:00
|
|
|
CFLAGS := -fno-common -msoft-float -Os
|
2007-07-05 16:01:17 +00:00
|
|
|
LDFLAGS_vmlinux :=-L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -Ttext $(TEXT_BASE)
|
2007-07-05 16:01:14 +00:00
|
|
|
|
|
|
|
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),)
|
|
|
|
$(Q)mkdir -p include/asm-arm
|
|
|
|
$(Q)ln -fsn $(srctree)/include/asm-arm/$(INCDIR) include/asm-arm/arch
|
|
|
|
else
|
|
|
|
$(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
|
|
|
|
|
2007-07-05 16:01:17 +00:00
|
|
|
common-y += $(BOARD) $(CPU)
|
2007-07-05 16:01:14 +00:00
|
|
|
common-y += arch/arm/lib/
|
2007-07-05 16:01:17 +00:00
|
|
|
|
2007-07-05 16:01:20 +00:00
|
|
|
MRPROPER_FILES += include/asm-arm/arch
|