From 3fd2ce439dda613a56e3d130c192040a88817787 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 18 Dec 2019 15:23:10 +0000 Subject: update-kernel: fix dtbs dir --- update-kernel.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update-kernel.in b/update-kernel.in index 0079182..3d13d25 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -264,7 +264,7 @@ fi KVER_FLAVOR= [ "$FLAVOR" = vanilla ] || KVER_FLAVOR=-$FLAVOR KVER=$(basename $(ls -d $ROOT/lib/modules/*"$KVER_FLAVOR")) -DTBDIR=$ROOT/usr/lib/linux-$KVER +DTBDIR=$ROOT/boot/dtbs-$FLAVOR depmod -b $ROOT "$KVER" @@ -341,8 +341,8 @@ if [ -d "$DTBDIR" ]; then _opwd=$PWD case "$MEDIA,$FLAVOR" in yes,rpi*) _dtb="$DESTDIR/" ;; - yes,*) _dtb="$DESTDIR/boot/dtbs" ;; - *,*) _dtb="$DESTDIR/dtbs" ;; + yes,*) _dtb="$DESTDIR/boot/dtbs-$FLAVOR" ;; + *,*) _dtb="$DESTDIR/dtbs/dtbs-$FLAVOR" ;; esac mkdir -p "$_dtb" _dtb=$(realpath "$_dtb") -- cgit v1.2.3