I am not sure if this is only for CONFIG_ANY_TOOLCHAIN=y, but builds are
not working again for me.
This time I don't think it is some addition I am missing:
The first problem seems to be that the wrong libgcc.a is found. I think
toolchain.inc is missing flags:
LIBGCC_FILE_NAME_$(1) = $(wildcard $(shell $(CC_$(2)) $(CFLAGS_$(2))
-print-libgcc-file-name))
Next, it would appear that the smm stage is still using 64-bit code:
/usr/bin/ld: Relocatable linking with relocations from format elf32-i386
(build/arch/x86/lib/memcpy.smm.o) to format elf64-x86-64
(build/cpu/x86/smm/smm.o) is not supported
Looks like in src/cpu/x86/smm/Makefile.inc the CC_smm is not correct.
$(obj)/cpu/x86/smm/smm.o: $$(smm-objs) $(LIBGCC_FILE_NAME_smm)
$(CC_smm) $(LDFLAGS) -nostdlib -r -o $@ -Wl,--wrap,__divdi3
-Wl,--wrap,__udivdi3 -Wl,--wrap,__moddi3 -Wl,--wrap,__umoddi3
-Wl,--start-group $(smm-objs) $(LIBGCC_FILE_NAME_smm) -Wl,--end-group
Cheers,
Sean