summaryrefslogtreecommitdiff
path: root/board/keymile/kmeter1/Makefile
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2008-11-21 08:29:40 +0100
committerKim Phillips <kim.phillips@freescale.com>2008-11-24 18:41:34 -0600
commit9482a8e3d6ac766d90e5059dce777b1e4c868a30 (patch)
treecf56b880b353feae0765d987112070c75c30ea33 /board/keymile/kmeter1/Makefile
parentfed36ac5ae613773b6cd90e61e292c45440e10c8 (diff)
downloadu-boot-imx-9482a8e3d6ac766d90e5059dce777b1e4c868a30.zip
u-boot-imx-9482a8e3d6ac766d90e5059dce777b1e4c868a30.tar.gz
u-boot-imx-9482a8e3d6ac766d90e5059dce777b1e4c868a30.tar.bz2
powerpc: keymile: Add a check for the PIGGY debug board
Check the presence of the PIGGY on the keymile boards mgcoge, mgsuvd and kmeter1. If the PIGGY is not present, dont register this Ethernet device. Signed-off-by: Heiko Schocher <hs@denx.de> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'board/keymile/kmeter1/Makefile')
-rw-r--r--board/keymile/kmeter1/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/keymile/kmeter1/Makefile b/board/keymile/kmeter1/Makefile
index 88b79f3..12a1518 100644
--- a/board/keymile/kmeter1/Makefile
+++ b/board/keymile/kmeter1/Makefile
@@ -22,12 +22,14 @@
#
include $(TOPDIR)/config.mk
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
LIB = $(obj)lib$(BOARD).a
-COBJS-y += $(BOARD).o
+COBJS += $(BOARD).o ../common/common.o
-COBJS := $(COBJS-y)
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
SOBJS := $(addprefix $(obj),$(SOBJS))