9
0
Fork 0
barebox/arch/arm/Makefile

103 lines
2.8 KiB
Makefile
Raw Normal View History

2007-07-05 16:01:13 +00:00
CPPFLAGS += -D__ARM__ -fno-strict-aliasing
2007-07-05 16:01:14 +00:00
machine-$(CONFIG_ARCH_IMX) := imx
2007-09-05 10:52:24 +00:00
machine-$(CONFIG_ARCH_NETX) := netx
machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200
machine-$(CONFIG_ARCH_OMAP) := omap
machine-$(CONFIG_ARCH_AT91SAM9) := at91sam9
2007-07-05 16:01:14 +00:00
board-$(CONFIG_MACH_MX1ADS) := mx1ads
board-$(CONFIG_MACH_ECO920) := eco920
2007-07-05 16:01:24 +00:00
board-$(CONFIG_MACH_SCB9328) := scb9328
board-$(CONFIG_MACH_PCM038) := pcm038
board-$(CONFIG_MACH_IMX27ADS) := imx27ads
2007-09-05 10:52:24 +00:00
board-$(CONFIG_MACH_NXDB500) := netx
board-$(CONFIG_MACH_PCM037) := pcm037
board-$(CONFIG_MACH_OMAP) := omap
board-$(CONFIG_MACH_AT91SAM9260_EK):= at91sam9260ek
2007-10-17 15:57:55 +00:00
# FIXME "cpu-y" never used on ARM!
2007-07-05 16:01:14 +00:00
cpu-$(CONFIG_ARM920T) := arm920t
2007-09-05 10:52:24 +00:00
cpu-$(CONFIG_ARM926EJS) := arm926ejs
2007-07-05 16:01:14 +00:00
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) -P
CFLAGS += -msoft-float
2007-07-05 16:01:14 +00:00
# Add cleanup flags
CPPFLAGS += -fdata-sections -ffunction-sections
LDFLAGS_uboot += -static --gc-sections
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
2007-07-12 09:51:29 +00:00
@echo ' SYMLINK include/asm-arm/proc -> include/asm-arm/proc-armv'
ifneq ($(KBUILD_SRC),)
$(Q)mkdir -p include/asm-arm
$(Q)ln -fsn $(srctree)/include/asm-arm/proc-armv include/asm-arm/proc
else
2007-07-12 09:51:29 +00:00
$(Q)ln -fsn proc-armv include/asm-arm/proc
endif
2007-07-05 16:01:14 +00:00
@touch $@
uboot.netx: uboot.bin
$(Q)scripts/gen_netx_image -i uboot.bin -o uboot.netx \
--sdramctrl=$(CONFIG_NETX_SDRAM_CTRL) \
--sdramtimctrl=$(CONFIG_NETX_SDRAM_TIMING_CTRL) \
--memctrl=$(CONFIG_NETX_MEM_CTRL) \
--entrypoint=$(CONFIG_TEXT_BASE) \
--cookie=$(CONFIG_NETX_COOKIE);
ifeq ($(machine-y),netx)
2007-09-22 14:00:01 +00:00
KBUILD_IMAGE := uboot.netx
endif
all: $(KBUILD_IMAGE)
2007-07-05 16:01:14 +00:00
archprepare: maketools
PHONY += maketools
maketools: include/asm-arm/.arch
# Add architecture specific flags
ifeq ($(CONFIG_ARMCORTEXA8),y)
CPPFLAGS += -march=armv7a
endif
2007-07-05 16:01:14 +00:00
ifneq ($(board-y),)
BOARD := board/$(board-y)/
else
BOARD :=
endif
2007-10-17 15:57:55 +00:00
ifneq ($(machine-y),)
2007-07-05 16:01:59 +00:00
MACH := arch/arm/mach-$(machine-y)/
2007-07-05 16:01:14 +00:00
else
2007-07-05 16:01:59 +00:00
MACH :=
2007-07-05 16:01:14 +00:00
endif
2007-07-05 16:01:59 +00:00
common-y += $(BOARD) $(MACH)
common-y += arch/arm/lib/ arch/arm/cpu/
lds-$(CONFIG_GENERIC_LINKER_SCRIPT) := arch/arm/lib/u-boot.lds
lds-$(CONFIG_BOARD_LINKER_SCRIPT) := $(BOARD)/u-boot.lds
CLEAN_FILES += arch/arm/lib/u-boot.lds
2007-07-12 09:51:29 +00:00
MRPROPER_FILES += include/asm-arm/arch include/asm-arm/proc