lkml.org 
[lkml]   [2019]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] kbuild: Fix cross compile link with ccache
Hi Krzysztof,


On Mon, May 6, 2019 at 9:41 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> Fix calling objcopy in case of cross compile environments:
>
> ARCH="arm" CROSS_COMPILE="ccache arm-linux-gnueabi-" make
> scripts/link-vmlinux.sh: line 211: ccache arm-linux-gnueabi-objcopy: command not found
>
> Fixes: 6a26793a7891 ("moduleparam: Save information about built-in modules in separate file")


Thanks for the report.

I need to drop this commit from my tree for now
and re-spin as Stephen reported some build breakage:

https://lkml.org/lkml/2019/5/5/269


I will squash this when I re-add the former patch.

Thanks.





> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
> ---
> scripts/link-vmlinux.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
> index 62b9fc561af7..42ea6f9264ef 100755
> --- a/scripts/link-vmlinux.sh
> +++ b/scripts/link-vmlinux.sh
> @@ -208,7 +208,7 @@ modpost_link vmlinux.o
> ${MAKE} -f "${srctree}/scripts/Makefile.modpost" vmlinux.o
>
> info MODINFO modules.builtin.modinfo
> -"${OBJCOPY}" -j .modinfo -O binary vmlinux.o modules.builtin.modinfo
> +${OBJCOPY} -j .modinfo -O binary vmlinux.o modules.builtin.modinfo
>
> kallsymso=""
> kallsyms_vmlinux=""
> --
> 2.7.4
>


--
Best Regards
Masahiro Yamada

\
 
 \ /
  Last update: 2019-05-06 16:12    [W:1.505 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site