Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 1 | # |
Wolfgang Denk | 03e069d | 2009-05-16 10:47:37 +0200 | [diff] [blame] | 2 | # (C) Copyright 2007-2009 DENX Software Engineering |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
Wolfgang Denk | de26ef9 | 2009-05-16 10:47:38 +0200 | [diff] [blame] | 9 | $(shell mkdir -p $(OBJTREE)/board/freescale/common) |
| 10 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 11 | LIB = $(obj)lib$(CPU).o |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 12 | |
| 13 | START = start.o |
Wolfgang Denk | 7629f1c | 2009-06-14 20:58:47 +0200 | [diff] [blame] | 14 | COBJS-y := cpu.o |
| 15 | COBJS-y += traps.o |
| 16 | COBJS-y += cpu_init.o |
| 17 | COBJS-y += fixed_sdram.o |
| 18 | COBJS-y += i2c.o |
| 19 | COBJS-y += interrupts.o |
| 20 | COBJS-y += iopin.o |
| 21 | COBJS-y += serial.o |
| 22 | COBJS-y += speed.o |
Kumar Gala | 6ece255 | 2010-05-21 04:17:48 -0500 | [diff] [blame] | 23 | COBJS-$(CONFIG_FSL_DIU_FB) += diu.o |
Kumar Gala | 6ece255 | 2010-05-21 04:17:48 -0500 | [diff] [blame] | 24 | COBJS-$(CONFIG_CMD_IDE) += ide.o |
Wolfgang Denk | de26ef9 | 2009-05-16 10:47:38 +0200 | [diff] [blame] | 25 | COBJS-$(CONFIG_PCI) += pci.o |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 26 | |
Marek Vasut | 2531568 | 2012-05-25 16:14:46 +0200 | [diff] [blame] | 27 | # Stub implementations of cache management functions for USB |
| 28 | COBJS-$(CONFIG_USB_EHCI) += cache.o |
| 29 | |
Wolfgang Denk | 03e069d | 2009-05-16 10:47:37 +0200 | [diff] [blame] | 30 | COBJS := $(COBJS-y) |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 31 | SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 32 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 33 | START := $(addprefix $(obj),$(START)) |
| 34 | |
| 35 | all: $(obj).depend $(START) $(LIB) |
| 36 | |
| 37 | $(LIB): $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 38 | $(call cmd_link_o_target, $(OBJS)) |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 39 | |
| 40 | ######################################################################### |
| 41 | |
| 42 | # defines $(obj).depend target |
| 43 | include $(SRCTREE)/rules.mk |
| 44 | |
| 45 | sinclude $(obj).depend |
| 46 | |
| 47 | ######################################################################### |