[U-Boot] [PATCH] bugfix: all Marvell specific build fails due to undefined reference to `get_ticks'

Graeme Russ graeme.russ at gmail.com
Wed Feb 8 06:29:42 CET 2012


Hi Prafulla,

On Wed, Feb 8, 2012 at 7:49 PM, Prafulla Wadaskar <prafulla at marvell.com> wrote:
> after http://patchwork.ozlabs.org/patch/136415/ was applied. All Marvell
> build fails with below error
>
> common/libcommon.o: In function `cread_line':
> /home/uboot/src/u-boot-arm/common/main.c:717: undefined reference to `get_ticks'
> /home/uboot/src/u-boot-arm/common/main.c:717: undefined reference to `get_tbclk'
> /home/uboot/src/u-boot-arm/common/main.c:720: undefined reference to `get_ticks'
>
> The same is fixed for Kirkwood, ARMADA100, pantheon and orion5x SoCs
>
> Signed-off-by: Prafulla Wadaskar <prafulla at marvell.com>

> +ulong get_tbclk (void)
> +{
> +       ulong tbclk;
> +
> +       tbclk = CONFIG_SYS_HZ;
> +       return tbclk;
> +}

Why not "return CONFIG_SYS_HZ;'" or "return (ulong)CONFIG_SYS_HZ;" ?

Regards,

Graeme


More information about the U-Boot mailing list