diff options
author | Kai Kang <kai.kang@windriver.com> | 2014-12-18 16:50:57 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-23 10:18:17 +0000 |
commit | 28ba4d349e1b096f9f7e5f11a22d613de8ffa948 (patch) | |
tree | 8ea7ec293aad27b8a66259ca76532b56cce45d20 | |
parent | 2ca18705bc5159bd58cadb7100fcf83c1fa7d9f2 (diff) | |
download | poky-28ba4d349e1b096f9f7e5f11a22d613de8ffa948.tar.gz |
linux-yocto: depend on libgcc for aarch64
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)
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.
(From OE-Core rev: 69ab638adcd8d30f35bb863254d9b112ad12b925)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index 4ed318886f..90189857c6 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" | |||
7 | INC_PR = "r4" | 7 | INC_PR = "r4" |
8 | 8 | ||
9 | DEPENDS += "xz-native bc-native" | 9 | DEPENDS += "xz-native bc-native" |
10 | DEPENDS_append_aarch64 = " libgcc" | ||
10 | 11 | ||
11 | # A KMACHINE is the mapping of a yocto $MACHINE to what is built | 12 | # A KMACHINE is the mapping of a yocto $MACHINE to what is built |
12 | # by the kernel. This is typically the branch that should be built, | 13 | # by the kernel. This is typically the branch that should be built, |