blob: a138aa4da716ee61d9d8a5306987283f710e5229 [file] [log] [blame]
Marek Vasut18a00df2010-03-07 23:35:48 +01001#
Marek Vasutf9054322010-07-22 16:51:52 +02002# Voipac PXA270 Support
Marek Vasut18a00df2010-03-07 23:35:48 +01003#
Marek Vasutf9054322010-07-22 16:51:52 +02004# Copyright (C) 2010 Marek Vasut <marek.vasut@gmail.com>
Marek Vasut18a00df2010-03-07 23:35:48 +01005#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Marek Vasut18a00df2010-03-07 23:35:48 +01007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
Marek Vasut18a00df2010-03-07 23:35:48 +010012
Marek Vasut411b9ea2011-10-31 14:17:21 +010013ifndef CONFIG_SPL_BUILD
Marek Vasut68e8a282010-08-08 15:55:50 +020014COBJS := vpac270.o
Marek Vasut411b9ea2011-10-31 14:17:21 +010015else
16COBJS := onenand.o
17endif
Marek Vasut18a00df2010-03-07 23:35:48 +010018
Marek Vasut720a6502010-09-28 15:50:49 +020019SRCS := $(COBJS:.o=.c)
Marek Vasut68e8a282010-08-08 15:55:50 +020020OBJS := $(addprefix $(obj),$(COBJS))
Marek Vasut68e8a282010-08-08 15:55:50 +020021
Marek Vasut720a6502010-09-28 15:50:49 +020022$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Marek Vasut18a00df2010-03-07 23:35:48 +010024
Marek Vasut18a00df2010-03-07 23:35:48 +010025#########################################################################
26
Marek Vasut68e8a282010-08-08 15:55:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
Marek Vasut18a00df2010-03-07 23:35:48 +010029
Marek Vasut68e8a282010-08-08 15:55:50 +020030sinclude $(obj).depend
Marek Vasut18a00df2010-03-07 23:35:48 +010031
32#########################################################################