mesa3d-headers: fix installation of dri.pc
[buildroot-gz.git] / board / raspberrypi / post-image.sh
blobb2bb070678359198d8742068e21cc606d6fe47ba
1 #!/bin/sh
3 BOARD_DIR="$(dirname $0)"
4 BOARD_NAME="$(basename ${BOARD_DIR})"
5 GENIMAGE_CFG="${BOARD_DIR}/genimage-${BOARD_NAME}.cfg"
6 GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
8 case "${2}" in
9 --add-pi3-miniuart-bt-overlay)
10 if ! grep -qE '^dtoverlay=' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
11 echo "Adding 'dtoverlay=pi3-miniuart-bt' to config.txt (fixes ttyAMA0 serial console)."
12 cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
14 # fixes rpi3 ttyAMA0 serial console
15 dtoverlay=pi3-miniuart-bt
16 __EOF__
19 esac
21 rm -rf "${GENIMAGE_TMP}"
23 genimage \
24 --rootpath "${TARGET_DIR}" \
25 --tmppath "${GENIMAGE_TMP}" \
26 --inputpath "${BINARIES_DIR}" \
27 --outputpath "${BINARIES_DIR}" \
28 --config "${GENIMAGE_CFG}"
30 exit $?