Browse Source

rpi: rename device tree overlays to use static loading, no DDTK

Waldemar Brodkorb 7 years ago
parent
commit
b0f1a77b0d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      scripts/install.sh

+ 3 - 2
scripts/install.sh

@@ -552,10 +552,11 @@ case $target {
 		[[ -e "$x" ]] && cp "$fwdir"/*.dtb "$B/"
 		break
 	done
+        # use static dtoverlay, rename to *.dtb
 	mkdir "$B/"overlays
 	for x in "$fwdir"/overlays/*.dtbo; do
-		[[ -e "$x" ]] && cp "$fwdir"/overlays/*.dtbo "$B/"overlays
-		break
+		y=$(basename ${x} .dtbo)
+		[[ -e "$x" ]] && cp "$fwdir"/overlays/${y}.dtbo "$B/"overlays/${y}.dtb
 	done
 	umount_fs "$B"
 	;;