blob: f389767fb92cf8906b501adbe80221afa9dd075a [file] [log] [blame]
wdenk591dda52002-11-18 00:14:45 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2002-2006
wdenk591dda52002-11-18 00:14:45 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk591dda52002-11-18 00:14:45 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(ARCH).o
wdenk591dda52002-11-18 00:14:45 +000011
Dirk Eibachd2df8112013-06-26 15:55:16 +020012COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
Graeme Russac52e472011-12-23 10:16:11 +110013COBJS-y += cmd_boot.o
Gabe Black1662cf12011-11-16 23:01:37 +000014COBJS-y += gcc.o
Graeme Russa875dda2011-12-23 16:51:29 +110015COBJS-y += init_helpers.o
Graeme Russ4b804e12009-11-24 20:04:15 +110016COBJS-y += interrupts.o
17COBJS-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o
Simon Glass3e8b6052013-04-17 16:13:39 +000018COBJS-$(CONFIG_SYS_PCAT_TIMER) += pcat_timer.o
Graeme Russ296b5e22009-08-23 12:59:57 +100019COBJS-$(CONFIG_PCI) += pci_type1.o
Graeme Russ6ae6dd82011-12-23 15:57:58 +110020COBJS-y += relocate.o
Gabe Blackd64c6ad2012-10-23 18:04:46 +000021COBJS-y += physmem.o
Gabe Black0e499052011-11-14 14:47:18 +000022COBJS-y += string.o
Simon Glass11d7a5b2013-04-17 16:13:36 +000023COBJS-$(CONFIG_SYS_X86_TSC_TIMER) += tsc_timer.o
Simon Glass54df8ce2012-12-03 13:59:47 +000024COBJS-$(CONFIG_VIDEO_VGA) += video.o
Graeme Russ19fc0d52011-11-08 02:33:20 +000025COBJS-$(CONFIG_CMD_ZBOOT) += zimage.o
wdenk57b2d802003-06-27 21:31:46 +000026
Wolfgang Denka1be4762008-05-20 16:00:29 +020027SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
Marian Balakowicz699ffe52008-02-27 11:00:47 +010028OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
wdenk591dda52002-11-18 00:14:45 +000029
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010031 $(call cmd_link_o_target, $(OBJS))
wdenk591dda52002-11-18 00:14:45 +000032
Gabe Black1662cf12011-11-16 23:01:37 +000033$(PREFIXED_LIBGCC): $(NORMAL_LIBGCC)
34 $(OBJCOPY) $< $@ --prefix-symbols=__normal_
35
36$(LIB): $(PREFIXED_LIBGCC)
37
wdenk591dda52002-11-18 00:14:45 +000038#########################################################################
39
Marian Balakowiczd62379d2006-09-01 19:49:50 +020040# defines $(obj).depend target
41include $(SRCTREE)/rules.mk
wdenk591dda52002-11-18 00:14:45 +000042
Marian Balakowiczd62379d2006-09-01 19:49:50 +020043sinclude $(obj).depend
wdenk591dda52002-11-18 00:14:45 +000044
45#########################################################################