Commit 3fd2ce43 authored by Natanael Copa's avatar Natanael Copa

update-kernel: fix dtbs dir

parent 5358f24b
...@@ -264,7 +264,7 @@ fi ...@@ -264,7 +264,7 @@ fi
KVER_FLAVOR= KVER_FLAVOR=
[ "$FLAVOR" = vanilla ] || KVER_FLAVOR=-$FLAVOR [ "$FLAVOR" = vanilla ] || KVER_FLAVOR=-$FLAVOR
KVER=$(basename $(ls -d $ROOT/lib/modules/*"$KVER_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" depmod -b $ROOT "$KVER"
...@@ -341,8 +341,8 @@ if [ -d "$DTBDIR" ]; then ...@@ -341,8 +341,8 @@ if [ -d "$DTBDIR" ]; then
_opwd=$PWD _opwd=$PWD
case "$MEDIA,$FLAVOR" in case "$MEDIA,$FLAVOR" in
yes,rpi*) _dtb="$DESTDIR/" ;; yes,rpi*) _dtb="$DESTDIR/" ;;
yes,*) _dtb="$DESTDIR/boot/dtbs" ;; yes,*) _dtb="$DESTDIR/boot/dtbs-$FLAVOR" ;;
*,*) _dtb="$DESTDIR/dtbs" ;; *,*) _dtb="$DESTDIR/dtbs/dtbs-$FLAVOR" ;;
esac esac
mkdir -p "$_dtb" mkdir -p "$_dtb"
_dtb=$(realpath "$_dtb") _dtb=$(realpath "$_dtb")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment