[U-Boot] Is it OK to use target code from host tools
Charles Manning
cdhmanning at gmail.com
Tue Mar 4 23:30:26 CET 2014
Hello All
I am currently reworking a socfpga signer patch which is part of mkimage.
One thing I need to do is to stuff some bytes into a header ensuring the
endianism is correct.
This is a trivial thing to do in C, but I have been instructed to use the
existing functions put_unaligned_le32() etc.
These are part of Linux in linux/unaligned/access_ok.h. But this includes
<asm/*>
It seems to me that this mixing of host space and target space is
potentially problematic.
Is this a safe thing to do?
Thanks
Charles
More information about the U-Boot
mailing list