Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 1 | # |
Marek Vasut | f905432 | 2010-07-22 16:51:52 +0200 | [diff] [blame] | 2 | # Voipac PXA270 Support |
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 3 | # |
Marek Vasut | f905432 | 2010-07-22 16:51:52 +0200 | [diff] [blame] | 4 | # Copyright (C) 2010 Marek Vasut <marek.vasut@gmail.com> |
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 5 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 7 | # |
8 | |||||
9 | include $(TOPDIR)/config.mk | ||||
10 | |||||
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 11 | LIB = $(obj)lib$(BOARD).o |
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 12 | |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 13 | ifndef CONFIG_SPL_BUILD |
Marek Vasut | 68e8a28 | 2010-08-08 15:55:50 +0200 | [diff] [blame] | 14 | COBJS := vpac270.o |
Marek Vasut | 411b9ea | 2011-10-31 14:17:21 +0100 | [diff] [blame] | 15 | else |
16 | COBJS := onenand.o | ||||
17 | endif | ||||
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 18 | |
Marek Vasut | 720a650 | 2010-09-28 15:50:49 +0200 | [diff] [blame] | 19 | SRCS := $(COBJS:.o=.c) |
Marek Vasut | 68e8a28 | 2010-08-08 15:55:50 +0200 | [diff] [blame] | 20 | OBJS := $(addprefix $(obj),$(COBJS)) |
Marek Vasut | 68e8a28 | 2010-08-08 15:55:50 +0200 | [diff] [blame] | 21 | |
Marek Vasut | 720a650 | 2010-09-28 15:50:49 +0200 | [diff] [blame] | 22 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 23 | $(call cmd_link_o_target, $(OBJS)) |
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 24 | |
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 25 | ######################################################################### |
26 | |||||
Marek Vasut | 68e8a28 | 2010-08-08 15:55:50 +0200 | [diff] [blame] | 27 | # defines $(obj).depend target |
28 | include $(SRCTREE)/rules.mk | ||||
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 29 | |
Marek Vasut | 68e8a28 | 2010-08-08 15:55:50 +0200 | [diff] [blame] | 30 | sinclude $(obj).depend |
Marek Vasut | 18a00df | 2010-03-07 23:35:48 +0100 | [diff] [blame] | 31 | |
32 | ######################################################################### |