post-build.sh 343 B

12345678910111213141516
  1. #!/bin/sh
  2. # genimage will need to find the extlinux.conf
  3. # in the binaries directory
  4. BOARD_DIR="$(dirname $0)"
  5. CONSOLE=$2
  6. ROOT=$3
  7. mkdir -p "${BINARIES_DIR}"
  8. cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf"
  9. label linux
  10. kernel /Image
  11. devicetree /system.dtb
  12. append console=${CONSOLE} root=/dev/${ROOT} rw rootwait
  13. __HEADER_EOF