[Buildroot] [PATCH] package/xen: fix build failure on x86 after bump to 4.7

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Nov 1 13:54:15 UTC 2016


Hello,

On Tue,  1 Nov 2016 09:37:32 +0100, Yann E. MORIN wrote:
> Since the bump to 4.7, Xen fails to build because of a double definition
> of __OBJECT_FILE__. This is due to (who would have guessed) the weirdness
> of their buildsystem.
> 
> Fix that with a dirty hack: undefine the macro before defining it.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> Cc: Alistair Francis <alistair.francis at xilinx.com>
> [Alistair: Tested on ARMv7 (little endian) boot.]
> Tested-by: Alistair Francis <alistair.francis at xilinx.com>
> Reviewed-by: Alistair Francis <alistair.francis at xilinx.com>
> ---
>  ...mk-fix-build-with-CFLAGS-from-environment.patch | 36 ++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
>  create mode 100644 package/xen/0002-xen-Rules.mk-fix-build-with-CFLAGS-from-environment.patch

This is indeed not the prettiest solution, but it's good enough. Has
one of you reported the problem upstream to the Xen people?

I've applied Yann's patch anyway.

Thanks a lot for the investigation and workaround!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list