PXA: Fix off-the-tree build problems
PATCH v2 1/3 PXA: Fix off-the-tree build problems
Signed-off-by Marek Vasut <[email protected]>
---
V2:
Add missing $(obj) before .depend in the following line:
rm -f $(LIB) core *.bak $(obj).depend
board/colibri_pxa270/Makefile | 20 ++++++++++++-------- board/vpac270/Makefile | 20 ++++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-)
board/colibri_pxa270/Makefile +12 -8
@@ -21,25 +21,29 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a +LIB = $(obj)lib$(BOARD).a -OBJS := colibri_pxa270.o +COBJS := colibri_pxa270.o SOBJS := lowlevel_init.o -$(LIB): $(OBJS) $(SOBJS) - $(AR) crv $@ $(OBJS) $(SOBJS) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(obj).depend $(OBJS) $(SOBJS) + $(AR) $(ARFLAGS) $@ $(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 #########################################################################
board/vpac270/Makefile +12 -8
@@ -24,25 +24,29 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a +LIB = $(obj)lib$(BOARD).a -OBJS := vpac270.o +COBJS := vpac270.o SOBJS := lowlevel_init.o -$(LIB): $(OBJS) $(SOBJS) - $(AR) crv $@ $(OBJS) $(SOBJS) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB): $(obj).depend $(OBJS) $(SOBJS) + $(AR) $(ARFLAGS) $@ $(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 #########################################################################
Signature · 1 line
1.7.1
PATCH 2/3 PXA: Fix missing includes
Signed-off-by Marek Vasut <[email protected]>
--- board/colibri_pxa270/colibri_pxa270.c | 1 + board/vpac270/vpac270.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
board/colibri_pxa270/colibri_pxa270.c +1 -0
@@ -21,6 +21,7 @@#include <common.h> #include <asm/arch/hardware.h> +#include <netdev.h> DECLARE_GLOBAL_DATA_PTR ;
board/vpac270/vpac270.c +1 -0
@@ -30,6 +30,7 @@#include <common.h> #include <asm/arch/hardware.h> +#include <netdev.h> DECLARE_GLOBAL_DATA_PTR ;
Signature · 1 line
1.7.1
Wolfgang Denk
AppliedPATCH 2/3 PXA: Fix missing includes
Dear Marek Vasut,
Quoted 5 lines · In message <[email protected]> you wrote:
Signed-off-by Marek Vasut <[email protected]>--- board/colibri_pxa270/colibri_pxa270.c | 1 + board/vpac270/vpac270.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I believe you find life such a problem because you think there are the good people and the bad people. You're wrong, of course. There are, always and only, the bad people, but some of them are on oppo- site sides. - Terry Pratchett, _Guards! Guards!_
PATCH 3/3 PXA: Declare __io for vpac270 IDE
In reply to Marek VasutSigned-off-by Marek Vasut <[email protected]>
--- include/configs/vpac270.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
include/configs/vpac270.h +2 -0
@@ -228,6 +228,8 @@#undef CONFIG_IDE_LED#undef CONFIG_IDE_RESET +#define __io +#define CONFIG_SYS_IDE_MAXBUS 1#define CONFIG_SYS_IDE_MAXDEVICE 1
Signature · 1 line
1.7.1
Wolfgang Denk
AppliedPATCH 3/3 PXA: Declare __io for vpac270 IDE
Dear Marek Vasut,
Quoted 4 lines · In message <[email protected]> you wrote:
Signed-off-by Marek Vasut <[email protected]>--- include/configs/vpac270.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is dangerous to be sincere unless you are also stupid.
- George Bernard ShawWolfgang Denk
AppliedPATCH v2 1/3 PXA: Fix off-the-tree build problems
In reply to Marek VasutDear Marek Vasut,
Quoted 9 lines · In message <[email protected]> you wrote:
Signed-off-by Marek Vasut <[email protected]>---
V2:
Add missing $(obj) before .depend in the following line:
rm -f $(LIB) core *.bak $(obj).dependboard/colibri_pxa270/Makefile | 20 ++++++++++++-------- board/vpac270/Makefile | 20 ++++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All these theories, diverse as they are, have two things in common: they explain the observed facts, and they are completeley and utterly wrong. - Terry Pratchett, _The Light Fantastic_