post-build.sh 360 B

123456789
  1. #!/bin/bash
  2. BOARD_DIR="$CONFIG_DIR"/board/pine64/star64
  3. # Add header to the SPL
  4. "$HOST_DIR"/bin/spl_tool -c -f "$BINARIES_DIR"/u-boot-spl.bin
  5. # Create the u-boot FIT image
  6. cp "$BOARD_DIR"/star64-uboot-fit-image.its "$BINARIES_DIR"
  7. mkimage -f "$BINARIES_DIR"/star64-uboot-fit-image.its -A riscv -O u-boot -T firmware "$BINARIES_DIR"/opensbi_uboot_payload.img