[U-Boot] Build breaks on some OMAP3 configs

Nishanth Menon menon.nishanth at gmail.com
Fri Oct 30 21:34:13 CET 2009


Gadiyar, Anand said the following on 10/30/2009 06:54 PM:
>> Hi,
>>
>> I was trying to build u-boot for omap3_3430sdp and
>> omap3_zoom2, and the build fails with the error below.
>>
>> I'm on commit f2b4bc0 from the master branch. I'm
>> using CodeSourcery's 2008q3 toolchain.
>> The commands I ran were:
>>
>> make CROSS_COMPILE=arm-none-linux-gnueabi- 
>> omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-
>>
>> Any ideas what I'm doing wrong?
>>
>> make -C examples/standalone all
>> make[1]: Entering directory `/data/git/denx-uboot/u-boot/examples/standalone'
>> arm-none-linux-gnueabi-gcc -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -I.. -Bstatic -T u-boot.lds  -Ttext 0x80e80000     -o .c
>> arm-none-linux-gnueabi-gcc: no input files
>> make[1]: *** [.c] Error 1
>> make[1]: Leaving directory `/data/git/denx-uboot/u-boot/examples/standalone'
>> make: *** [examples/standalone] Error 2
>>     
>
>
> I took a look at examples/standalone/Makefile:
>
> The patch below gets things going again. So looks like something
> clobbered $(ELF-y). Any ideas what it could be?
>
> Thanks in advance,
> Anand
>
> diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
> index 5e2f2bc..73b19e9 100644
> --- a/examples/standalone/Makefile
> +++ b/examples/standalone/Makefile
> @@ -39,6 +39,7 @@ ELF-ppc                          += sched
>  ELF-oxc                          += eepro100_eeprom
>  
>  ELF := $(ELF-y) $(ELF-$(ARCH)) $(ELF-$(BOARD)) $(ELF-$(CPU))
> +ELF := hello_world
>  SREC = $(addsuffix .srec,$(ELF))
>  BIN  = $(addsuffix .bin,$(ELF))
>   
The build command i use is this:
alias mymake='make ARCH=ARM CROSS_COMPILE=arm-none-linux-gnueabi- V=1 -j2'


though on a fresh clone, I seem to have run into a wierd issue ->
MAKEALL seems to build things fine, but if I:
mymake distclean
rm -rvf *
git reset --hard
mymake omap3_sdp3430_config
mymake
[....]
arm-none-linux-gnueabi-gcc  -g  -Os   -fno-common -ffixed-r8
-msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000
-I/home/nmenon/Src/r/x/u-boot/include -fno-builtin -ffreestanding
-nostdinc -isystem
/home/opt/tools/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include
-pipe  -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector   -o
hello_world.o hello_world.c -c
In file included from /home/nmenon/Src/r/x/u-boot/include/common.h:113,
                 from hello_world.c:24:
/home/nmenon/Src/r/x/u-boot/include/image.h:507:3: error: #error Unknown
CPU type

for some wierd reason, it does not seem to take the include/config.mk
file (where the defines are present)..

now, if i do a local clone of the cloned directory, it builds just fine!
gotta dig at it a little more..
Regards,
Nishanth Menon


More information about the U-Boot mailing list