Re: [PATCH 5/8] kbuild: move definitions from top-level Makefileto scripts/Kbuild.config

From: Michal Marek
Date: Tue Jun 26 2012 - 05:37:10 EST


Hi Sam,

Sorry for the delay. I hope you still remember what you submitted ;)

On 5.5.2012 10:18, Sam Ravnborg wrote:
> +# Tools to build for the target
> +export AS := $(CROSS_COMPILE)as
> +export LD := $(CROSS_COMPILE)ld
> +export CC := $(CROSS_COMPILE)gcc
> +export CPP := $(CC) -E
> +export AR := $(CROSS_COMPILE)ar
> +export NM := $(CROSS_COMPILE)nm
> +export STRIP := $(CROSS_COMPILE)strip
> +export OBJCOPY := $(CROSS_COMPILE)objcopy
> +export OBJDUMP := $(CROSS_COMPILE)objdump

The := assignments do not work if CROSS_COMPILE is set in .config or in
the arch Makefile. You have to use the deferred from here.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/