We attempt to bring the Fuchsa Firmware SDK in with as few modifications as possible, but at the moment there are a few small changes that are necessary.
Standard library includes are a bit tricky, for example
stdint.h. We can‘t include
stdint.h directly because it uses the toolchain’s built-in mplementation which conflicts with u-boot's custom
However, we also can't create a fake
stdint.h that just redirects to
common.h because the
scp_task sub-build does use the built-in
stdint.h, so replacing it breaks that build.
The current approach is just to modify the SDK files directly as needed to point to u-boot's custom headers instead of the standard library ones.
static const char* kAbrMagic = "\0AB0";to
#define kAbrMagic "\0AB0"