Enable user overlays on rockchip64 based boards (#1931)

User overlays are working fine on this boards (I have already tested on rock64).
Added the possibility to use on rockchip64 based boards.
Changed "if" to "case" to facilitate adding more supported boards.
This commit is contained in:
useful64 2020-05-01 08:57:01 +02:00 committed by GitHub
parent b85d698da8
commit b37d63a481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,10 +35,14 @@ fi
. /etc/armbian-release
if [[ $LINUXFAMILY != sunxi && $LINUXFAMILY != sunxi64 ]]; then
echo >&2 "Overlays are supported only on A10, A20, H3, H5 and A64 based boards"
exit -1
fi
case "${LINUXFAMILY}" in
sunxi|sunxi64|rockchip64)
:;;
*)
echo >&2 "Overlays are not supported on ${LINUXFAMILY^} based boards."
exit -1
;;
esac
if [[ -d /lib/modules/$(uname -r)/build/scripts/dtc ]]; then
if [[ ! -x /lib/modules/$(uname -r)/build/scripts/dtc/dtc ]]; then