Detect overlay capability from uboot boot.cmd (#2628)

This commit is contained in:
tparys 2021-02-22 15:50:50 -05:00 committed by GitHub
parent 4e25b7257b
commit 37c324975f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,14 +35,10 @@ fi
. /etc/armbian-release
case "${LINUXFAMILY}" in
sunxi|sunxi64|rk3399|rockchip64|rockpis)
:;;
*)
echo >&2 "Overlays are not supported on ${LINUXFAMILY^} based boards."
exit -1
;;
esac
if ! grep -q '^setenv overlay_error' /boot/boot.cmd; then
echo >&2 "Overlays are not supported on ${LINUXFAMILY^} based boards."
exit -1
fi
if [[ -d /lib/modules/$(uname -r)/build/scripts/dtc ]]; then
if [[ ! -x /lib/modules/$(uname -r)/build/scripts/dtc/dtc ]]; then