[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] [PATCH] microblaze: clean LDFLAGS to build kernel
Thomas Chou wrote:
> Extra LDFLAGS from user space building may cause kernel failed
> to compile.
Added to for-linus branch.
Thanks,
Michal
>
> Signed-off-by: Thomas Chou <thomas@xxxxxxxxxxxxx>
> ---
> arch/microblaze/Makefile | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile
> index aaadfa7..ab731b7 100644
> --- a/arch/microblaze/Makefile
> +++ b/arch/microblaze/Makefile
> @@ -36,6 +36,8 @@ CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
> # r31 holds current when in kernel mode
> CFLAGS_KERNEL += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2)
>
> +LDFLAGS :=
> +LDFLAGS_vmlinux :=
> LDFLAGS_BLOB := --format binary --oformat elf32-microblaze
>
> LIBGCC := $(shell $(CC) $(CFLAGS_KERNEL) -print-libgcc-file-name)
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/