]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/avr32/cpu/Makefile
Merge branch 'u-boot/master' into u-boot-arm/master
[karo-tx-uboot.git] / arch / avr32 / cpu / Makefile
1 #
2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # Copyright (C) 2005-2006 Atmel Corporation.
6 #
7 # SPDX-License-Identifier:      GPL-2.0+
8 #
9
10 include $(TOPDIR)/config.mk
11
12 LIB     := $(obj)lib$(CPU).o
13
14 START-y                 += start.o
15
16 COBJS-y                 += cpu.o
17 COBJS-$(CONFIG_SYS_HSDRAMC) += hsdramc.o
18 COBJS-y                 += exception.o
19 COBJS-y                 += cache.o
20 COBJS-y                 += interrupts.o
21 COBJS-$(CONFIG_PORTMUX_PIO) += portmux-pio.o
22 COBJS-$(CONFIG_PORTMUX_GPIO) += portmux-gpio.o
23
24 SRCS    := $(START-y:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
25 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
26 START   := $(addprefix $(obj),$(START-y))
27
28 all: $(obj).depend $(START) $(LIB)
29
30 $(LIB): $(OBJS)
31         $(call cmd_link_o_target, $^)
32
33 #########################################################################
34
35 # defines $(obj).depend target
36 include $(SRCTREE)/rules.mk
37
38 sinclude $(obj).depend
39
40 #########################################################################