2011-11-29 18:05:07 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2011 The Chromium OS Authors.
|
|
|
|
#
|
|
|
|
# (C) Copyright 2008
|
|
|
|
# Graeme Russ, graeme.russ@gmail.com.
|
|
|
|
#
|
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# (C) Copyright 2002
|
|
|
|
# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2011-11-29 18:05:07 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
LIB := $(obj)lib$(SOC).o
|
|
|
|
|
2012-11-03 11:41:38 +00:00
|
|
|
SOBJS-$(CONFIG_SYS_COREBOOT) += car.o
|
2012-10-10 13:12:56 +00:00
|
|
|
COBJS-$(CONFIG_SYS_COREBOOT) += coreboot.o
|
2011-12-05 12:09:22 +00:00
|
|
|
COBJS-$(CONFIG_SYS_COREBOOT) += tables.o
|
|
|
|
COBJS-$(CONFIG_SYS_COREBOOT) += ipchecksum.o
|
2011-11-29 18:05:07 +00:00
|
|
|
COBJS-$(CONFIG_SYS_COREBOOT) += sdram.o
|
2012-10-23 18:04:33 +00:00
|
|
|
COBJS-$(CONFIG_SYS_COREBOOT) += timestamp.o
|
2012-10-10 13:12:56 +00:00
|
|
|
COBJS-$(CONFIG_PCI) += pci.o
|
2011-11-29 18:05:07 +00:00
|
|
|
|
|
|
|
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
|
|
|
|
|
|
|
|
all: $(obj).depend $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|