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