I'd like to build coreboot for HP Elitebook 8570w but I keep running into trouble.

I'm trying to build coreinfo, following the 1st part of the tutorial to the letter, but it simply doesn't work.

Initially I'd get an error involving libpayload; I got it compiled and installed following instructions in README  and now I'm getting the following:

     ...               ...
   AR         /home/gabriel/coreboot/payloads/coreinfo/libpayload/libpayload.a
   CC         arch/x86/head.head.o.o
   CP         /home/gabriel/coreboot/payloads/coreinfo/libpayload/head.o
   LPGCC      coreinfo.bin
/home/gabriel/coreboot/util/crossgcc/xgcc/i386-elf/bin/ld.bfd: cannot find -lpayload
/home/gabriel/coreboot/util/crossgcc/xgcc/i386-elf/bin/ld.bfd: cannot find libgcc.a: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [../libpayload/Makefile.payload:93: build/coreinfo.bin] Error 1
make: Leaving directory '/home/gabriel/coreboot/payloads/coreinfo

I'd guess it's a matter of unsatisfied dependencies but  I don't understand make files, as of yet at least.

Anyone that could point me in any direction?