Signed-off-by: Ricardo Salveti de Araujo <ricardo...@canonical.com>
---
board/igep0020/Makefile | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/board/igep0020/Makefile b/board/igep0020/Makefile
index 8c45438..c9a4dad 100644
--- a/board/igep0020/Makefile
+++ b/board/igep0020/Makefile
@@ -23,25 +23,29 @@
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
+LIB = $(obj)lib$(BOARD).a
-OBJS := igep0020.o
+COBJS := igep0020.o
SOBJS := platform.o
-$(LIB): $(OBJS) $(SOBJS)
- $(AR) crv $@ $^
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
+
+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
+ $(AR) crv $@ $(OBJS) $(SOBJS)
clean:
rm -f $(SOBJS) $(OBJS)
distclean: clean
- rm -f $(LIB) core *.bak .depend
+ rm -f $(LIB) core *.bak $(obj).depend
#########################################################################
-.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
--include .depend
+sinclude $(obj).depend
#########################################################################
--
1.7.2.3
Thanks for catching this. Applied and pushed out, thanks!
That's the end of all patches submitted so far. Let me know
if I've missed something.
Next on my TODO list:
- bug-fix for JTAG connection on Panda (I'm debugging this right now)
- Blaze/OMAP4SDP support
I'll post these this weekend, unless someone beats me to it.
- Anand