aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/0001-update-kernel-fix-dtbs-dir.patch
blob: a117698c5f5c4c916b8a0c863784045a46506258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 3fd2ce439dda613a56e3d130c192040a88817787 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 18 Dec 2019 15:23:10 +0000
Subject: [PATCH] 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")
-- 
2.24.1