summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-09-20 00:43:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 09:53:08 +0100
commitba1e0eef99e3f4349b9d524b1cc643c67bc226c5 (patch)
tree0c1154765549ed3e9e00b96f480e8af788332360
parent8efff247752828068d3be01dd0b2e2e5a1feabd2 (diff)
downloadpoky-ba1e0eef99e3f4349b9d524b1cc643c67bc226c5.tar.gz
linux-yocto: depend on libgcc for nios2
Make nios2 kernel depend on libgcc. In arch/nios2/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 | nios2-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory Add libgcc to nios2 kernel dependency. (From OE-Core rev: d3ccab5bb717da57dcaaeb1993ae0f790ce45dcb) Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/linux/linux-yocto.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index 3b41a61c36..81ffa24d05 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -11,6 +11,10 @@ DEPENDS_append_aarch64 = " libgcc"
11KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" 11KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"
12KERNEL_LD_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" 12KERNEL_LD_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"
13 13
14DEPENDS_append_nios2 = " libgcc"
15KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
16KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
17
14# A KMACHINE is the mapping of a yocto $MACHINE to what is built 18# A KMACHINE is the mapping of a yocto $MACHINE to what is built
15# by the kernel. This is typically the branch that should be built, 19# by the kernel. This is typically the branch that should be built,
16# and it can be specific to the machine or shared 20# and it can be specific to the machine or shared