]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/x86/cpu/coreboot/Makefile
x86: coreboot: Move non-board specific files to coreboot arch directory
[karo-tx-uboot.git] / arch / x86 / cpu / coreboot / Makefile
1 #
2 # Copyright (c) 2011 The Chromium OS Authors.
3 #
4 # (C) Copyright 2008
5 # Graeme Russ, graeme.russ@gmail.com.
6 #
7 # (C) Copyright 2006
8 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
9 #
10 # (C) Copyright 2002
11 # Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
12 #
13 # See file CREDITS for list of people who contributed to this
14 # project.
15 #
16 # This program is free software; you can redistribute it and/or
17 # modify it under the terms of the GNU General Public License as
18 # published by the Free Software Foundation; either version 2 of
19 # the License, or (at your option) any later version.
20 #
21 # This program is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 # GNU General Public License for more details.
25 #
26 # You should have received a copy of the GNU General Public License
27 # along with this program; if not, write to the Free Software
28 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 # MA 02111-1307 USA
30 #
31
32 include $(TOPDIR)/config.mk
33
34 LIB     := $(obj)lib$(SOC).o
35
36 COBJS-$(CONFIG_SYS_COREBOOT) += coreboot.o
37 COBJS-$(CONFIG_SYS_COREBOOT) += tables.o
38 COBJS-$(CONFIG_SYS_COREBOOT) += ipchecksum.o
39 COBJS-$(CONFIG_SYS_COREBOOT) += sdram.o
40 COBJS-$(CONFIG_SYS_COREBOOT) += sysinfo.o
41 COBJS-$(CONFIG_PCI) += pci.o
42
43 SOBJS-$(CONFIG_SYS_COREBOOT) += coreboot_car.o
44
45 SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
46 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
47
48 all: $(obj).depend $(LIB)
49
50 $(LIB): $(OBJS)
51         $(call cmd_link_o_target, $(OBJS))
52
53 #########################################################################
54
55 # defines $(obj).depend target
56 include $(SRCTREE)/rules.mk
57
58 sinclude $(obj).depend
59
60 #########################################################################