[OE-core] [PATCH 01/19] linux-yocto: depend on libgcc for aarch64
Khem Raj
raj.khem at gmail.com
Thu Jan 1 01:31:25 UTC 2015
> On Dec 18, 2014, at 12:50 AM, Kai Kang <kai.kang at windriver.com> wrote:
>
> Make aarch aarch64 kernel depend on libgcc.
>
> In arch/arm64/Makefile, it adds LIBGCC to libs-y:
>
> LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
> libs-y += $(LIBGCC)
is this a stop-gap or final solution for aarch64 ?
how do we expect it to work with clang/llvm. someone at Linaro must know
>
> 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}.
>
> If build without libgcc, the value of LIBGCC is just libgcc.a without
> parent directory. linux-yocto fails to build:
>
> | LD vmlinux.o
> | aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
>
> Add libgcc to aarch64 kernel dependency.
>
> Signed-off-by: Kai Kang <kai.kang at windriver.com>
> ---
> meta/recipes-kernel/linux/linux-yocto.inc | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
> index 4ed3188..9018985 100644
> --- a/meta/recipes-kernel/linux/linux-yocto.inc
> +++ b/meta/recipes-kernel/linux/linux-yocto.inc
> @@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> INC_PR = "r4"
>
> DEPENDS += "xz-native bc-native"
> +DEPENDS_append_aarch64 = " libgcc”
this should be added in kernel bbclass, since I assume it will be needed for all kind of variants
supporting aarch64 in addition to linux-yocto
More information about the Openembedded-core
mailing list