OK i have done some more hours of building and testing. After i do buildgcc there is no .xcompile file. After doing make menuconfig i have the following .xcompile file:
|nils@debian:~/coreboot_6255$ cat .xcompile |# elf32-i386 toolchain |AS:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-as |CC:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-gcc -Wa,--divide |-fno-stack-protector -Wl,--build-id=none |CPP:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-cpp |AR:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-ar |LD:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-ld |STRIP:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-strip |NM:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-nm |OBJCOPY:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-objcopy |OBJDUMP:=/home/nils/coreboot_6255/util/crossgcc/xgcc/bin/i386-elf-objdump | |# native toolchain |HOSTCC:=gcc
After that i do make and get: -----------------------------------------------------------------8<------------------------------------------------ |Resolving deltas: 100% (4653/4653), done. |Branch 0.6.1-stable set up to track remote branch 0.6.1-stable from origin. |Switched to a new branch '0.6.1-stable' |/bin/sh: -Wa,--divide: not found | Compiling whole program out/ccode.16.s | Compiling to assembler out/asm-offsets.s | Generating offset file out/asm-offsets.h | Compiling (16bit) out/code16.o | Compiling whole program out/ccode32flat.o |src/coreboot.c: In function 'ulzma': |src/coreboot.c:329:9: warning: format '%d' expects type 'int', but argument 3 |has type 'long unsigned int' | Compiling whole program out/code32seg.o | Building ld scripts (version "0.6.1.2-20110115_210950-debian") |Fixed space: 0xe05b-0x10000 total: 8101 slack: 2 Percent slack: 0.0% |16bit size: 38896 |32bit segmented size: 2416 |32bit flat size: 51456 | Linking out/rom16.o | Stripping out/rom16.strip.o | Linking out/rom32seg.o | Stripping out/rom32seg.strip.o | Linking out/rom.o | Prepping out/bios.bin |Total size: 92768 Free space: 38304 Percent used: 70.8% (128KiB rom) | CBFS coreboot.rom | PAYLOAD SeaBIOS (internal, compression: LZMA) |Could not add the file to CBFS, it's probably too big. |File size: 46873 bytes (45 KB). |make: *** [build/coreboot.rom] Fout 1
After that i still have the same .xcompile file so the crossgcc should been used by make, right? But doesn't the " Building ld scripts (version "0.6.1.2-20110115_210950- debian") " tell us otherwise? And why does no one else gets this much to big payload size?
Also when i do a abuild the .xcompile file is removed and no new one is added. Does that mean that abuild is never using the crosscompiler ?
This is still very confusing to me. What is the pro's opinion?
Thanks, Nils.