wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2002-2006 |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | # | ||||
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 6 | # |
7 | |||||
8 | include $(TOPDIR)/config.mk | ||||
9 | |||||
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB = $(obj)lib$(ARCH).o |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 11 | |
Dirk Eibach | b8eee43 | 2013-06-26 15:55:16 +0200 | [diff] [blame] | 12 | COBJS-$(CONFIG_CMD_BOOTM) += bootm.o |
Graeme Russ | d13640b | 2011-12-23 10:16:11 +1100 | [diff] [blame] | 13 | COBJS-y += cmd_boot.o |
Gabe Black | 36b2409 | 2011-11-16 23:01:37 +0000 | [diff] [blame] | 14 | COBJS-y += gcc.o |
Graeme Russ | d47ab0e | 2011-12-23 16:51:29 +1100 | [diff] [blame] | 15 | COBJS-y += init_helpers.o |
Graeme Russ | 4ee4e41 | 2009-11-24 20:04:15 +1100 | [diff] [blame] | 16 | COBJS-y += interrupts.o |
17 | COBJS-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o | ||||
Simon Glass | d0b6f24 | 2013-04-17 16:13:39 +0000 | [diff] [blame] | 18 | COBJS-$(CONFIG_SYS_PCAT_TIMER) += pcat_timer.o |
Graeme Russ | f50b619 | 2009-08-23 12:59:57 +1000 | [diff] [blame] | 19 | COBJS-$(CONFIG_PCI) += pci_type1.o |
Graeme Russ | b156ff0 | 2011-12-23 15:57:58 +1100 | [diff] [blame] | 20 | COBJS-y += relocate.o |
Gabe Black | ac31a7b | 2012-10-23 18:04:46 +0000 | [diff] [blame] | 21 | COBJS-y += physmem.o |
Gabe Black | dbaef6e | 2011-11-14 14:47:18 +0000 | [diff] [blame] | 22 | COBJS-y += string.o |
Simon Glass | e761ecd | 2013-04-17 16:13:36 +0000 | [diff] [blame] | 23 | COBJS-$(CONFIG_SYS_X86_TSC_TIMER) += tsc_timer.o |
Simon Glass | 058d59b | 2012-12-03 13:59:47 +0000 | [diff] [blame] | 24 | COBJS-$(CONFIG_VIDEO_VGA) += video.o |
Graeme Russ | a76fc70 | 2011-11-08 02:33:20 +0000 | [diff] [blame] | 25 | COBJS-$(CONFIG_CMD_ZBOOT) += zimage.o |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 26 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 27 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 28 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 29 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 30 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 31 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 32 | |
Gabe Black | 36b2409 | 2011-11-16 23:01:37 +0000 | [diff] [blame] | 33 | $(PREFIXED_LIBGCC): $(NORMAL_LIBGCC) |
34 | $(OBJCOPY) $< $@ --prefix-symbols=__normal_ | ||||
35 | |||||
36 | $(LIB): $(PREFIXED_LIBGCC) | ||||
37 | |||||
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 38 | ######################################################################### |
39 | |||||
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 40 | # defines $(obj).depend target |
41 | include $(SRCTREE)/rules.mk | ||||
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 42 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 43 | sinclude $(obj).depend |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 44 | |
45 | ######################################################################### |