post-build.sh 485 B

1234567891011
  1. #!/bin/sh
  2. BOARD_DIR=$(dirname $0)
  3. # Bring the extlinux.conf file in.
  4. install -D -m 0644 ${BOARD_DIR}/extlinux.conf \
  5. ${TARGET_DIR}/boot/extlinux/extlinux.conf
  6. # To be reflashed through Xmodem, the bootloader needs to be prepended
  7. # with a 4-byte header that contains the total size of the file.
  8. perl -e 'print pack("l", (stat @ARGV[0])[7])' ${BINARIES_DIR}/fw_payload.bin > ${BINARIES_DIR}/fw_payload.bin.out
  9. cat ${BINARIES_DIR}/fw_payload.bin >> ${BINARIES_DIR}/fw_payload.bin.out