2008-01-30 21:15:54 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2008
|
2008-05-08 20:52:09 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
2008-01-30 21:15:54 +00:00
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2008-01-30 21:15:54 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(SOC).o
|
2008-01-30 21:15:54 +00:00
|
|
|
|
2009-05-13 19:01:13 +00:00
|
|
|
COBJS-$(CONFIG_AT91CAP9) += at91cap9_devices.o
|
|
|
|
COBJS-$(CONFIG_AT91SAM9260) += at91sam9260_devices.o
|
|
|
|
COBJS-$(CONFIG_AT91SAM9G20) += at91sam9260_devices.o
|
2010-11-03 14:39:55 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9XE) += at91sam9260_devices.o
|
2009-05-13 19:01:13 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9261) += at91sam9261_devices.o
|
2009-06-25 15:04:15 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9G10) += at91sam9261_devices.o
|
2009-05-13 19:01:13 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9263) += at91sam9263_devices.o
|
|
|
|
COBJS-$(CONFIG_AT91SAM9RL) += at91sam9rl_devices.o
|
2009-07-09 08:16:29 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9M10G45) += at91sam9m10g45_devices.o
|
|
|
|
COBJS-$(CONFIG_AT91SAM9G45) += at91sam9m10g45_devices.o
|
2013-04-16 23:42:44 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9N12) += at91sam9n12_devices.o
|
2012-07-05 17:21:46 +00:00
|
|
|
COBJS-$(CONFIG_AT91SAM9X5) += at91sam9x5_devices.o
|
2010-07-27 13:18:38 +00:00
|
|
|
COBJS-$(CONFIG_AT91_EFLASH) += eflash.o
|
2009-03-21 20:08:00 +00:00
|
|
|
COBJS-$(CONFIG_AT91_LED) += led.o
|
2009-04-16 19:30:44 +00:00
|
|
|
COBJS-y += clock.o
|
|
|
|
COBJS-y += cpu.o
|
2009-05-31 10:44:45 +00:00
|
|
|
COBJS-y += reset.o
|
2008-03-31 19:20:49 +00:00
|
|
|
COBJS-y += timer.o
|
2008-01-30 21:15:54 +00:00
|
|
|
|
2009-06-13 10:50:04 +00:00
|
|
|
ifndef CONFIG_SKIP_LOWLEVEL_INIT
|
|
|
|
SOBJS-y := lowlevel_init.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
2008-01-30 21:15:54 +00:00
|
|
|
|
2009-05-01 13:38:06 +00:00
|
|
|
all: $(obj).depend $(LIB)
|
2008-01-30 21:15:54 +00:00
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2008-01-30 21:15:54 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|