Detect overlay capability from uboot boot.cmd (#2628)
This commit is contained in:
parent
4e25b7257b
commit
37c324975f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user