blob: 482f1181854d1ae76c92d965e850f2096d00f630 [file] [log] [blame]
Albert Aribaudce9c2272010-06-17 19:38:21 +05301#
Albert ARIBAUD57b4bce2011-04-22 19:41:02 +02002# Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
Albert Aribaudce9c2272010-06-17 19:38:21 +05303#
4# Based on original Kirkwood support which is
5# (C) Copyright 2009
6# Marvell Semiconductor <www.marvell.com>
7# Written-by: Prafulla Wadaskar <prafulla@marvell.com>
8#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Albert Aribaudce9c2272010-06-17 19:38:21 +053010#
11
12include $(TOPDIR)/config.mk
Simon Guinot77ea0712011-11-21 19:25:47 +053013ifneq ($(OBJTREE),$(SRCTREE))
14$(shell mkdir -p $(obj)../common)
15endif
Albert Aribaudce9c2272010-06-17 19:38:21 +053016
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010017LIB = $(obj)lib$(BOARD).o
Albert Aribaudce9c2272010-06-17 19:38:21 +053018
Simon Guinot77ea0712011-11-21 19:25:47 +053019COBJS := edminiv2.o ../common/common.o
Albert Aribaudce9c2272010-06-17 19:38:21 +053020
21SRCS := $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
23
24$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Albert Aribaudce9c2272010-06-17 19:38:21 +053026
Albert Aribaudce9c2272010-06-17 19:38:21 +053027#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################