2011/2/3 Nobuhiro Iwamatsu <iwama...@debian.org>:
> Source: u-boot
> Version: 2010.12-2
> Severity: wishlist
> Tags: patch
>
> Hi,
>
> u-boot FTBFS on sh7785lcr board.
> When user built outside source directory, this fail in build
> by deficiency of Makefile.
>
> http://buildd.debian-ports.org/fetch.php?pkg=u-boot&arch=sh4&ver=2010.12-2&stamp=1295830546&file=log&as=raw
> -----
> gcc -g  -Os   -ffixed-r13 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x8FF80000 
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include2
>  
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include
>  -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/include 
> -fno-builtin -ffreestanding -nostdinc -isystem 
> /usr/lib/gcc/sh4-linux-gnu/4.4.5/include -pipe  -DCONFIG_SH -D__SH__ 
> -m4-nofpu -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   
> -ffixed-r13 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x8FF80000 
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include2
>  
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include
>  -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/include 
> -fno-builtin -ffreestanding -nostdinc -isystem 
> /usr/lib/gcc/sh4-linux-gnu/4.4.5/include -pipe  -DCONFIG_SH -D__SH__ 
> -m4-nofpu  -c -o sh7785lcr.o sh7785lcr.c
> gcc -g  -Os   -ffixed-r13 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x8FF80000 
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include2
>  
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include
>  -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/include 
> -fno-builtin -ffreestanding -nostdinc -isystem 
> /usr/lib/gcc/sh4-linux-gnu/4.4.5/include -pipe  -DCONFIG_SH -D__SH__ 
> -m4-nofpu -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   
> -ffixed-r13 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x8FF80000 
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include2
>  
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include
>  -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/include 
> -fno-builtin -ffreestanding -nostdinc -isystem 
> /usr/lib/gcc/sh4-linux-gnu/4.4.5/include -pipe  -DCONFIG_SH -D__SH__ 
> -m4-nofpu  -c -o selfcheck.o selfcheck.c
> gcc -g  -Os   -ffixed-r13 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x8FF80000 
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include2
>  
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include
>  -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/include 
> -fno-builtin -ffreestanding -nostdinc -isystem 
> /usr/lib/gcc/sh4-linux-gnu/4.4.5/include -pipe  -DCONFIG_SH -D__SH__ 
> -m4-nofpu -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   
> -ffixed-r13 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x8FF80000 
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include2
>  
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include
>  -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/include 
> -fno-builtin -ffreestanding -nostdinc -isystem 
> /usr/lib/gcc/sh4-linux-gnu/4.4.5/include -pipe  -DCONFIG_SH -D__SH__ 
> -m4-nofpu  -c -o rtl8169_mac.o rtl8169_mac.c
> gcc  -g  -Os   -ffixed-r13 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x8FF80000 
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include2
>  
> -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/debian/build/sh7785lcr_32bit/include
>  -I/build/buildd-u-boot_2010.12-2-sh4-q7El8f/u-boot-2010.12/include 
> -fno-builtin -ffreestanding -nostdinc -isystem 
> /usr/lib/gcc/sh4-linux-gnu/4.4.5/include -pipe  -DCONFIG_SH -D__SH__ 
> -m4-nofpu  -c -o lowlevel_init.o lowlevel_init.S
> lowlevel_init.S: Assembler messages:
> lowlevel_init.S:32: Error: unknown opcode
> lowlevel_init.S:33: Error: unknown opcode
> lowlevel_init.S:36: Error: unknown opcode
> lowlevel_init.S:39: Error: unknown opcode
> lowlevel_init.S:40: Error: unknown opcode
> -----
>
> I attached the patch which revised this bug.
> This patch was already sent to upstream and applied in sh repository.
>  http://patchwork.ozlabs.org/patch/81624/
>

I forgot attach the patch.....

Best regards,
  Nobuhiro
From fd4083e9aac7f91136e73da2c596cf391d37ed2d Mon Sep 17 00:00:00 2001
From: Nobuhiro Iwamatsu <nobuhiro.iwamatsu...@renesas.com>
Date: Thu, 3 Feb 2011 16:27:45 +0900
Subject: [PATCH] sh: sh7785lcr: Fix out of tree building

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu...@renesas.com>
---
 board/renesas/sh7785lcr/Makefile |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/board/renesas/sh7785lcr/Makefile b/board/renesas/sh7785lcr/Makefile
index b5c496f..e404fa6 100644
--- a/board/renesas/sh7785lcr/Makefile
+++ b/board/renesas/sh7785lcr/Makefile
@@ -23,8 +23,12 @@ LIB	= $(obj)lib$(BOARD).o
 COBJS	:= sh7785lcr.o selfcheck.o rtl8169_mac.o
 SOBJS	:= lowlevel_init.o
 
-$(LIB):	$(obj).depend $(COBJS) $(SOBJS)
-	$(call cmd_link_o_target, $(COBJS) $(SOBJS))
+SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS))
+SOBJS	:= $(addprefix $(obj),$(SOBJS))
+
+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
+	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
-- 
1.7.2.3

Reply via email to