[U-Boot] [PATCH] sh: sh7753evb: Fix build error

Bin Meng bmeng.cn at gmail.com
Mon Jan 25 06:45:01 CET 2016


On Mon, Jan 25, 2016 at 1:45 PM, Bin Meng <bmeng.cn at gmail.com> wrote:
> Currently buildman fails to build sh7753evb and reports the following:
>
>   board/renesas/sh7753evb/built-in.o: In function 'init_gether_mdio':
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_ADDR_BASE'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_DATA_BASE'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_addr_val'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_data_val'
>   make: *** [u-boot] Error 1
>
> The fix is to wrap any codes that access these macros with CONFIG_SH_32BIT.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  board/renesas/sh7753evb/sh7753evb.c | 4 ++++
>  1 file changed, 4 insertions(+)
>

While I am here, I have no idea how to fix the other 2 warnings for
sh7785lcr_32bit and sh7785lcr.

Summary of 1 commit for 23 boards (23 threads, 2 jobs per thread)
01: sh: sh7753evb: Fix build error
        sh:  +   sh7785lcr_32bit sh7785lcr
w+../drivers/net/rtl8169.c:310:2: warning: #warning cache-line size is
larger than descriptor size [-Wcpp]

The warning comes from rtl8169.c below

#if RTL8169_DESC_SIZE < ARCH_DMA_MINALIGN
#if !defined(CONFIG_SYS_NONCACHED_MEMORY) && \
!defined(CONFIG_SYS_DCACHE_OFF) && !defined(CONFIG_X86)
#warning cache-line size is larger than descriptor size
#endif
#endif

Since I don't know anything about SH, I don't know how to eliminate
the warning correctly.

Regards,
Bin


More information about the U-Boot mailing list