post-build.sh 325 B

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