I am trying to compile u-boot for qemu_ppce500 target. But it fails with the following errors:
arch/powerpc/cpu/mpc85xx/built-in.o:(.got2+0xfc): undefined reference to `tlb_table'
arch/powerpc/cpu/mpc85xx/built-in.o:(.got2+0x100): undefined reference to `num_tlb_entries'
make: *** [u-boot] Error 1
The steps I followed.
git reset --hard 2072e7262965bb48d7fffb1e283101e6ed8b21a8
### this follows the direction from qemu-2.3.0/pc-bios/README
make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- qemu-ppce500_config
make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-
Then I have:
...
OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/sched.srec
OBJCOPY examples/standalone/hello_world.bin
OBJCOPY examples/standalone/sched.bin
LDS u-boot.lds
LD u-boot
arch/powerpc/cpu/mpc85xx/built-in.o:(.got2+0xfc): undefined reference to `tlb_table'
arch/powerpc/cpu/mpc85xx/built-in.o:(.got2+0x100): undefined reference to `num_tlb_entries'
make: *** [u-boot] Error 1