blob: 0f2018d734cb2f91a5ac586303064cff510ed008 [file] [log] [blame]
Heiko Schocher67fa8c22010-02-22 16:43:02 +05301#
2# (C) Copyright 2009
3# Marvell Semiconductor <www.marvell.com>
4# Prafulla Wadaskar <prafulla@marvell.com>
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Heiko Schocher67fa8c22010-02-22 16:43:02 +05307#
8
9include $(TOPDIR)/config.mk
Heiko Schochercc0b53c2010-03-01 15:58:18 +010010ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)../common)
12endif
Heiko Schocher67fa8c22010-02-22 16:43:02 +053013
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
Heiko Schocher67fa8c22010-02-22 16:43:02 +053015
Holger Brunck4f745bf2011-06-05 22:22:18 +000016COBJS := $(BOARD).o ../common/common.o ../common/ivm.o
Heiko Schocher67fa8c22010-02-22 16:43:02 +053017
Valentin Longchampb37f7722012-07-05 05:05:05 +000018ifdef CONFIG_KM_FPGA_CONFIG
19COBJS += fpga_config.o
20endif
21
Heiko Schocher67fa8c22010-02-22 16:43:02 +053022SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS))
24SOBJS := $(addprefix $(obj),$(SOBJS))
25
26$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Heiko Schocher67fa8c22010-02-22 16:43:02 +053028
Heiko Schocher67fa8c22010-02-22 16:43:02 +053029#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################