[U-Boot] VCMA9 build fails: ARM board references PPC4xx header

Dear David & Peter,
since Stefan's ppc4xx reorganization patches (commit b36df561: "ppc4xx: Move ppc4xx headers to powerpc include directory") the building of the VCMA9 breaks with this error message:
../common/memtst.c:51:28: error: asm/ppc4xx-i2c.h: No such file or directory
The problem comes from board/mpl/common/memtst.c which contains an unconditional "#include <asm/ppc4xx-i2c.h>" which is obviously wrong when the file gets compiled for an ARM board as VCMA9.
Can you please provide a fix?
Best regards,
Wolfgang Denk

Wolfgang Denk schrieb:
The problem comes from board/mpl/common/memtst.c which contains an unconditional "#include <asm/ppc4xx-i2c.h>" which is obviously wrong when the file gets compiled for an ARM board as VCMA9.
Can you please provide a fix?
The solution is to remove the include completely as it is not needed at all.
Dave

On Wed, 2010-10-06 at 09:38 +0200, "David Müller (ELSOFT AG)" wrote:
Wolfgang Denk schrieb:
The problem comes from board/mpl/common/memtst.c which contains an unconditional "#include <asm/ppc4xx-i2c.h>" which is obviously wrong when the file gets compiled for an ARM board as VCMA9.
Can you please provide a fix?
The solution is to remove the include completely as it is not needed at all.
Is there any reason to not remove the memtst.c file altogether as in this patch: http://lists.denx.de/pipermail/u-boot/2010-October/078649.html ?
Best, Peter
participants (3)
-
"David Müller (ELSOFT AG)"
-
Peter Tyser
-
Wolfgang Denk