[fuchsia_upload] add Copybara support

Adds support for flushing source to the external repo at the same time
we upload new prebuilts, so that the public source matches the ToT
binaries.

Bug: b/213950490
Test: `./fuchsia_upload.py --last-rev cd8e2e7 --dry-run` seemed like
      it should do the right thing when run for real.
Change-Id: I56710de55a7b6046a45b45926a08efd7818ccef5
Reviewed-on: https://turquoise-internal-review.googlesource.com/c/third_party/u-boot/+/509453
Reviewed-by: Yecheng Zhao <zyecheng@google.com>
GitOrigin-RevId: 188098a6ec227a7d11fa2823aa94b0093d35b3b7
1 file changed
tree: bc5235d621fa27520d912d47fd39618946c24f69
  1. api/
  2. arch/
  3. bl2/
  4. bl30/
  5. bl31/
  6. bl31_1.3/
  7. board/
  8. common/
  9. configs/
  10. disk/
  11. doc/
  12. drivers/
  13. dts/
  14. examples/
  15. fip/
  16. fs/
  17. include/
  18. lib/
  19. Licenses/
  20. net/
  21. post/
  22. scripts/
  23. test/
  24. tools/
  25. vim3_aml_tools/
  26. .checkpatch.conf
  27. .gitignore
  28. .mailmap
  29. amlogic_help.sh
  30. build_uboot_vim3_zircon.sh
  31. check_compile.sh
  32. config.mk
  33. fuchsia_upload.py
  34. Kbuild
  35. Kconfig
  36. MAINTAINERS
  37. MAKEALL
  38. Makefile
  39. mk
  40. README
  41. README.md
  42. snapshot.commit
README.md

SPDX-License-Identifier: GPL-2.0+

u-boot

This is a version of u-boot, modified to support Fuchsia on the Khadas vim3

Building vim3 Bootloader for Fuchsia

To build the vim3 bootloader for Fuchsia:

Prerequisites - arm and aarch64 toolchains. On Debian/Ubuntu systems, for example:

apt-get install gcc-arm-none-eabi gcc-aarch64-linux-gnu

Run the build script from repo root

./build_uboot_vim3_zircon.sh

You now have a build/u-boot.bin.unsigned that you can flash to a target using fastboot.