2 # (C) Copyright 2000-2008
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 LIB = $(obj)lib$(SOC).o
12 COBJS-$(CONFIG_AT91CAP9) += at91cap9_devices.o
13 COBJS-$(CONFIG_AT91SAM9260) += at91sam9260_devices.o
14 COBJS-$(CONFIG_AT91SAM9G20) += at91sam9260_devices.o
15 COBJS-$(CONFIG_AT91SAM9XE) += at91sam9260_devices.o
16 COBJS-$(CONFIG_AT91SAM9261) += at91sam9261_devices.o
17 COBJS-$(CONFIG_AT91SAM9G10) += at91sam9261_devices.o
18 COBJS-$(CONFIG_AT91SAM9263) += at91sam9263_devices.o
19 COBJS-$(CONFIG_AT91SAM9RL) += at91sam9rl_devices.o
20 COBJS-$(CONFIG_AT91SAM9M10G45) += at91sam9m10g45_devices.o
21 COBJS-$(CONFIG_AT91SAM9G45) += at91sam9m10g45_devices.o
22 COBJS-$(CONFIG_AT91SAM9N12) += at91sam9n12_devices.o
23 COBJS-$(CONFIG_AT91SAM9X5) += at91sam9x5_devices.o
24 COBJS-$(CONFIG_AT91_EFLASH) += eflash.o
25 COBJS-$(CONFIG_AT91_LED) += led.o
31 ifndef CONFIG_SKIP_LOWLEVEL_INIT
32 SOBJS-y := lowlevel_init.o
35 SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
36 OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
38 all: $(obj).depend $(LIB)
41 $(call cmd_link_o_target, $(OBJS))
43 #########################################################################
45 # defines $(obj).depend target
46 include $(SRCTREE)/rules.mk
48 sinclude $(obj).depend
50 #########################################################################