[PATCH] IGEPV2: Fixing Makefile to properly save objects in a different path

5 views
Skip to first unread message

Ricardo Salveti de Araujo

unread,
Jan 25, 2011, 10:07:07 PM1/25/11
to x-lo...@googlegroups.com, Ricardo Salveti de Araujo
Now it follows the same as we have with other boards.

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

Anand Gadiyar

unread,
Jan 26, 2011, 9:08:45 AM1/26/11
to x-lo...@googlegroups.com
Ricardo Salveti de Araujo wrote:
> Now it follows the same as we have with other boards.
>
> Signed-off-by: Ricardo Salveti de Araujo <ricardo...@canonical.com>

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

Reply all
Reply to author
Forward
0 new messages