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