Skip to content

Build fails for u-boot jpg driver using defconfig sg2002_licheea53nano_sd #108

@Nefarious19

Description

@Nefarious19

Title says everything. Build for risc-v works ok. But for a53 there is an error as below:

/workdir/u-boot-2021.10/drivers/jpeg/jpurun.c: In function ‘copy_to_dest_addr’: /workdir/u-boot-2021.10/drivers/jpeg/jpurun.c:113:2: error: implicit declaration of function ‘flush_dcache_range’ [-Werror=implicit-function-declaration] flush_dcache_range((unsigned long)pRefYuv, (unsigned long)pRefYuv + lumaSize + chromaSize + chromaSize); ^~~~~~~~~~~~~~~~~~ CC drivers/video/panel-uclass.o /workdir/u-boot-2021.10/drivers/jpeg/jdi.c: In function ‘jdi_write_register’: /workdir/u-boot-2021.10/drivers/jpeg/jdi.c:226:2: error: implicit declaration of function ‘flush_dcache_range’ [-Werror=implicit-function-declaration] flush_dcache_range(reg_addr, reg_addr + sizeof(unsigned int)); ^~~~~~~~~~~~~~~~~~ /workdir/u-boot-2021.10/drivers/jpeg/jdi.c: In function ‘jdi_read_register’: /workdir/u-boot-2021.10/drivers/jpeg/jdi.c:237:2: error: implicit declaration of function ‘invalidate_dcache_range’ [-Werror=implicit-function-declaration] invalidate_dcache_range(reg_addr, reg_addr + sizeof(unsigned int)); ^~~~~~~~~~~~~~~~~~~~~~~ /workdir/u-boot-2021.10/drivers/jpeg/jdi_osal.c: In function ‘josal_memcpy’: /workdir/u-boot-2021.10/drivers/jpeg/jdi_osal.c:107:2: error: implicit declaration of function ‘flush_dcache_range’ [-Werror=implicit-function-declaration] flush_dcache_range((unsigned long)dst, count); ^~~~~~~~~~~~~~~~~~ CC drivers/video/simple_panel.o /workdir/u-boot-2021.10/drivers/jpeg/jdi_osal.c: In function ‘jinv_dcache_range’: /workdir/u-boot-2021.10/drivers/jpeg/jdi_osal.c:409:2: error: implicit declaration of function ‘invalidate_dcache_range’ [-Werror=implicit-function-declaration] invalidate_dcache_range(start, size); ^~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions