[U-Boot-Users] build errors on DMA or SPI driver
Ben Warren
biggerbadderben at gmail.com
Wed Jan 30 23:24:42 CET 2008
On Jan 30, 2008 4:30 PM, Shinya Kuribayashi <skuribay at ruby.dti.ne.jp> wrote:
> Current DMA or SPI driver breaks MIPS builds.
>
> example:
> $ make gth2_config
> $ make CROSS_COMPILE=mips-linux-
>
> leads to ...
>
> make[1]: Entering directory `/home/skuribay/devel/u-boot.git/drivers/dma'
> mips-linux-gcc -g -Os -D__KERNEL__ -DTEXT_BASE=0x90000000 -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/skuribay/devel/buildroot/build_mips/staging_dir/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.1/include -pipe -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4kc -EB -Wall -Wstrict-prototypes -c -o MCD_tasks.o MCD_tasks.c
> In file included from MCD_tasks.c:25:
> /home/skuribay/devel/u-boot.git/include/MCD_dma.h:279: error: expected specifier-qualifier-list before '$30'
> /home/skuribay/devel/u-boot.git/include/MCD_dma.h:295: error: expected specifier-qualifier-list before '$30'
> /home/skuribay/devel/u-boot.git/include/MCD_dma.h:323: error: expected declaration specifiers or '...' before '$30'
> /home/skuribay/devel/u-boot.git/include/MCD_dma.h:323: error: expected declaration specifiers or '...' before '$30'
> make[1]: *** [MCD_tasks.o] Error 1
> make[1]: Leaving directory `/home/skuribay/devel/u-boot.git/drivers/dma'
> make: *** [drivers/dma/libdma.a] Error 2
>
>
> Then I modified $(TOPDIR)/Makefile like this, but still fails on SPI:
>
> diff --git a/Makefile b/Makefile
> index 0f6cc59..619859d 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -218,7 +218,6 @@ LIBS += net/libnet.a
> LIBS += disk/libdisk.a
> LIBS += drivers/bios_emulator/libatibiosemu.a
> LIBS += drivers/block/libblock.a
> -LIBS += drivers/dma/libdma.a
> LIBS += drivers/hwmon/libhwmon.a
> LIBS += drivers/i2c/libi2c.a
> LIBS += drivers/input/libinput.a
>
> make -C drivers/spi/
> make[1]: Entering directory `/home/skuribay/devel/u-boot.git/drivers/spi'
> mpc8xxx_spi.c:26:29: error: asm/mpc8xxx_spi.h: No such file or directory
> make[1]: *** No rule to make target `.depend', needed by `libspi.a'. Stop.
> make[1]: Leaving directory `/home/skuribay/devel/u-boot.git/drivers/spi'
> make: *** [drivers/spi/libspi.a] Error 2
>
I posted a patch a couple of days ago that will fix the SPI problem.
Don't know about the DMA.
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/36039
regards,
Ben
More information about the U-Boot
mailing list