Just to explain, what the problem is:
This particular problem could be solved with a installation of the uuid package:
$ sudo apt install uuid-dev
There was a follow-up issue, I also had to install gnutls-dev.
But in general, I also recommend to do the compilation of the repositories from NXP with the toolchain generated by Yocto. The build tools which we use in our Makefiles are included in this toolchain, so it is a one-stop-shop.
On the other hand, if you take u-boot from https://github.com/u-boot/u-boot, then you should work with the generic GNU toolchain from the Arm website, because the Makefile in this repository is written for this toolchain.
If you exactly know what you're doing, then of course you can always adapt things to each other, but if you want to work out of the box, then don't mix up things.
Regards,
Bernhard.