From 2f2d10c04a1114d194b6684275566885d7086352 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Mon, 7 Feb 2022 11:36:22 +0100 Subject: [PATCH] rpi: copy DTBs to Debian/Ubuntu standard location /lib/firmware/$version/device-tree; remove build-time-only hacks (#3462) - this allows us to remove the most horrible hack - should allow for correctly working DTB upgrades - should NOT impact other families --- packages/armbian/builddeb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/armbian/builddeb b/packages/armbian/builddeb index 9e65ab502..6c97a1ce3 100755 --- a/packages/armbian/builddeb +++ b/packages/armbian/builddeb @@ -74,12 +74,13 @@ create_package() { exit 0 EOT - # for Ubuntu/Debian compatiblity, symlink in /lib/firmware/$version/device-tree + # for Ubuntu/Debian compatiblity, copy DTBs to /lib/firmware/$version/device-tree cat >> $pdir/DEBIAN/postinst <<- EOT cd /boot ln -sfT dtb-$version dtb 2> /dev/null || mv dtb-$version dtb mkdir -p /lib/firmware/$version - [ ! -L /lib/firmware/$version/device-tree ] && ln -s /boot/dtb-$version /lib/firmware/$version/device-tree + rm -rf /lib/firmware/$version/device-tree + cp -rp /boot/dtb-$version /lib/firmware/$version/device-tree exit 0 EOT