summaryrefslogtreecommitdiff
path: root/board/isee/igep00x0/Makefile
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2012-12-27 01:35:56 +0000
committerTom Rini <trini@ti.com>2013-02-07 10:36:25 -0500
commit77eea280744c8adf040d5949c677d905a70d3cf3 (patch)
treea0507c86a87d1f9607545dc0860856f303d2d3eb /board/isee/igep00x0/Makefile
parent5bedf884a8508f1b2f5b8f74e67d987a81ff05ed (diff)
downloadu-boot-imx-77eea280744c8adf040d5949c677d905a70d3cf3.zip
u-boot-imx-77eea280744c8adf040d5949c677d905a70d3cf3.tar.gz
u-boot-imx-77eea280744c8adf040d5949c677d905a70d3cf3.tar.bz2
OMAP3: use a single board file for IGEP devices
Even when the IGEPv2 board and the IGEP Computer-on-Module are different from a form factor point of view, they are very similar in the fact that share many components and how they are wired. So, it is possible (and better) to have a single board file for both devices and just use the CONFIG_MACH_TYPE to make a differentiation between each board when needed. This change avoids code duplication by removing 298 lines of code and makes future maintenance easier. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'board/isee/igep00x0/Makefile')
-rw-r--r--board/isee/igep00x0/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/board/isee/igep00x0/Makefile b/board/isee/igep00x0/Makefile
new file mode 100644
index 0000000..f595954
--- /dev/null
+++ b/board/isee/igep00x0/Makefile
@@ -0,0 +1,43 @@
+#
+# (C) Copyright 2000, 2001, 2002
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB = $(obj)lib$(BOARD).o
+
+COBJS := igep00x0.o
+
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+
+$(LIB): $(obj).depend $(OBJS)
+ $(call cmd_link_o_target, $(OBJS))
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################