rpi3: don't strip kernel8.img

In one of the final build stages, buildroot will strip [1] binaries by
running the following on all binaries under ./out-br/target:

  $ aarch64-linux-gnu-strip --remove-section=.comment \
    --remove-section=.note

When doing that on kernel8.img (which should be a 1:1 copy of
./linux/arch/arm64/boot/Image), the expected "magic" from the kernel
header disappears and so does a few other things as well. In short, the
kernel image becomes corrupt. Without the magic, U-boot won't pass
execution to Linux and will instead fail with the error message: "Bad
Linux ARM64 Image magic!"

To prevent kernel8.img from being stripped, we include it in the
BR2_STRIP_EXCLUDE_FILES Makefile parameter.

Why this suddenly started to show, I haven't been able to figure out.

Link: [1] https://github.com/buildroot/buildroot/blob/71a2706320dbc22b16397b70b2d53b903bde0752/Makefile#L620-L650
Fixes: https://github.com/OP-TEE/optee_os/issues/5891

Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
Tested-by: Joakim Bech <joakim.bech@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
1 file changed
tree: a672fe63eb2e00a3675443598b43888dd1689102
  1. .github/
  2. br-ext/
  3. fvp/
  4. imx/
  5. kconfigs/
  6. qemu_v8/
  7. rpi3/
  8. ti/
  9. versal/
  10. zynqmp/
  11. .gitignore
  12. am43xx.mk
  13. am57xx.mk
  14. common.mk
  15. dra7xx.mk
  16. fvp-psa-sp.mk
  17. fvp.mk
  18. get_clang.sh
  19. hikey.mk
  20. hikey960.mk
  21. imx.mk
  22. juno.mk
  23. poplar.mk
  24. qemu-check.exp
  25. qemu.mk
  26. qemu_v8.mk
  27. README.md
  28. rockpi4.mk
  29. rpi3.mk
  30. soc_term.py
  31. stm32mp1.mk
  32. synquacer.mk
  33. toolchain.mk
  34. trusted-keys.exp
  35. trusted-services.mk
  36. verdin.mk
  37. versal.mk
  38. zynqmp.mk
README.md

OP-TEE build.git

This git contains makefiles etc to be able to build a full OP-TEE developer setup for the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The pages that used to be here in this git can be found under build and Device specific information at he new location for the OP-TEE documentation.

// OP-TEE core maintainers