Mingkai Hu | e04004b | 2013-07-04 17:33:43 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2013 Freescale Semiconductor, Inc. |
| 3 | # |
York Sun | b33ba9a | 2013-08-12 14:57:12 -0700 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Mingkai Hu | e04004b | 2013-07-04 17:33:43 +0800 | [diff] [blame] | 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
| 8 | LIB = $(obj)lib$(BOARD).o |
| 9 | |
| 10 | COBJS-y += $(BOARD).o |
| 11 | COBJS-y += cpld.o |
| 12 | COBJS-y += ddr.o |
| 13 | COBJS-y += law.o |
| 14 | COBJS-y += tlb.o |
| 15 | |
| 16 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 18 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 19 | |
| 20 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 21 | $(call cmd_link_o_target, $(OBJS)) |
| 22 | |
| 23 | ######################################################################### |
| 24 | |
| 25 | # defines $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |