Fixing radxa u-boot for GCC 9

I tried to cherry-pick the 12 latest commits from https://github.com/u-boot/u-boot/search?q=address-of-packed-member&type=Commits, but failed.

I don’t know C programming language beyond basic constructs. I don’t understand u-boot.

I’d appreciate help. A quick fix would be to disable address-of-packed-member warning although I don’t know whether it is a good idea to disable the warning.

mainline u-boot disabled address-of-packed-member warning for clang in its Makefile.

I cherry-picked all relevant commits that I could cherry-pick and created two pull requests.

After applying a trick I learned from one of the cherry-picked commits to the last build error, it now builds.

It helps others if you detail what you did to make it work.

I modified the pull requests to explain how I fixed it.

1 Like

Ah, thank you very much!