From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mail.openembedded.org (Postfix) with ESMTP id BA1577680E for ; Fri, 18 Sep 2015 01:41:31 +0000 (UTC) Received: from mail.nefkom.net (unknown [192.168.8.184]) by mail-out.m-online.net (Postfix) with ESMTP id 3nHHvG46Zvz3hj3d; Fri, 18 Sep 2015 03:41:30 +0200 (CEST) X-Auth-Info: TO/tnXtr9tOblWzKxy+1hQpYFyMt9E6ObIBEdQzhEBA= Received: from chi.localnet (unknown [195.140.253.167]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mnet-online.de (Postfix) with ESMTPSA id 3nHHvF6QpWzvdWS; Fri, 18 Sep 2015 03:41:29 +0200 (CEST) From: Marek Vasut To: Khem Raj Date: Fri, 18 Sep 2015 03:41:42 +0200 User-Agent: KMail/1.13.7 (Linux/3.14-2-amd64; KDE/4.13.1; x86_64; ; ) References: <1442500317-9064-1-git-send-email-marex@denx.de> <1442500317-9064-4-git-send-email-marex@denx.de> <02670CD0-39E3-4C94-9FB6-CFC19B3AB6E6@gmail.com> In-Reply-To: <02670CD0-39E3-4C94-9FB6-CFC19B3AB6E6@gmail.com> MIME-Version: 1.0 Message-Id: <201509180341.43070.marex@denx.de> Cc: lftan@altera.com, waltergoossens@home.nl, openembedded-core@lists.openembedded.org Subject: Re: [PATCH 3/8] linux-yocto: depend on libgcc for nios2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2015 01:41:34 -0000 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Friday, September 18, 2015 at 03:40:11 AM, Khem Raj wrote: Hi! > > On Sep 17, 2015, at 7:31 AM, Marek Vasut wrote: > >=20 > > Make nios2 kernel depend on libgcc. > >=20 > > In arch/nios2/Makefile, it adds LIBGCC to libs-y: > >=20 > > LIBGCC :=3D $(shell $(CC) $(KBUILD_CFLAGS) > > -print-libgcc-file-name) libs-y +=3D $(LIBGCC) > >=20 > > In file Makefile in top directory, libs-y is assigned to to var > > KBUILD_VMLINUX_MAIN. It uses script link-vmlinux.sh to link vmlinux.o, > > and when execute function vmlinux_link() in link-vmlinux.sh, > > KBUILD_VMLINUX_MAIN is passed to ${LD}. > >=20 > > If build without libgcc, the value of LIBGCC is just libgcc.a without > >=20 > > parent directory. linux-yocto fails to build: > > | LD vmlinux.o > > |=20 > > | nios2-poky-linux-ld.bfd: cannot find libgcc.a: No such file or > > | directory > >=20 > > Add libgcc to nios2 kernel dependency. > >=20 > > Signed-off-by: Marek Vasut > > --- > > meta/recipes-kernel/linux/linux-yocto.inc | 4 ++++ > > 1 file changed, 4 insertions(+) > >=20 > > diff --git a/meta/recipes-kernel/linux/linux-yocto.inc > > b/meta/recipes-kernel/linux/linux-yocto.inc index 3b41a61..81ffa24 > > 100644 > > --- a/meta/recipes-kernel/linux/linux-yocto.inc > > +++ b/meta/recipes-kernel/linux/linux-yocto.inc > > @@ -11,6 +11,10 @@ DEPENDS_append_aarch64 =3D " libgcc" > > KERNEL_CC_append_aarch64 =3D " ${TOOLCHAIN_OPTIONS}" > > KERNEL_LD_append_aarch64 =3D " ${TOOLCHAIN_OPTIONS}" > >=20 > > +DEPENDS_append_nios2 =3D " libgcc" > > +KERNEL_CC_append_nios2 =3D " ${TOOLCHAIN_OPTIONS}" > > +KERNEL_LD_append_nios2 =3D " ${TOOLCHAIN_OPTIONS}=E2=80=9D >=20 > Please try bitbake virtual/kernel build from scratch with this change. What do you mean, does it break anything or what should I expect ? Best regards, Marek Vasut