diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-06-19 18:08:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-06-19 18:12:40 +0000 |
commit | a4bd808e00e38f1bfead1608c9f72f7616dd5ae3 (patch) | |
tree | 55fca5aa10eb7d19338fa59887e3b206ed40fe44 | |
parent | 31739cc4e65b61adb1f186a54732e37b6268186a (diff) | |
download | alpine_aports-a4bd808e00e38f1bfead1608c9f72f7616dd5ae3.tar.bz2 alpine_aports-a4bd808e00e38f1bfead1608c9f72f7616dd5ae3.tar.xz alpine_aports-a4bd808e00e38f1bfead1608c9f72f7616dd5ae3.zip |
main/alpine-conf: update-kernel firmware
backport patch that includes needed files for firmware
needed for rpi
-rw-r--r-- | main/alpine-conf/0001-update-kernel-add-additional-firmware-files.patch | 37 | ||||
-rw-r--r-- | main/alpine-conf/APKBUILD | 6 |
2 files changed, 41 insertions, 2 deletions
diff --git a/main/alpine-conf/0001-update-kernel-add-additional-firmware-files.patch b/main/alpine-conf/0001-update-kernel-add-additional-firmware-files.patch new file mode 100644 index 0000000000..45f0b321d1 --- /dev/null +++ b/main/alpine-conf/0001-update-kernel-add-additional-firmware-files.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 96b29f5dd64111b9d063a327e24247ced02c1427 Mon Sep 17 00:00:00 2001 | ||
2 | From: Carlo Landmeter <clandmeter@alpinelinux.org> | ||
3 | Date: Tue, 19 Jun 2018 15:32:51 +0000 | ||
4 | Subject: [PATCH] update-kernel: add additional firmware files | ||
5 | |||
6 | --- | ||
7 | update-kernel.in | 12 ++++++++++++ | ||
8 | 1 file changed, 12 insertions(+) | ||
9 | |||
10 | diff --git a/update-kernel.in b/update-kernel.in | ||
11 | index 0d20371..aaf1cff 100644 | ||
12 | --- a/update-kernel.in | ||
13 | +++ b/update-kernel.in | ||
14 | @@ -251,8 +251,20 @@ mkdir -p $MODLOOP/modules/firmware | ||
15 | find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -u | while read FW; do | ||
16 | if [ -e "$ROOT/lib/firmware/$FW" ]; then | ||
17 | install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW | ||
18 | + # include nvram files if firmware is needed. | ||
19 | + [ -e "$ROOT/lib/firmware/${FW%.*}.txt" ] && install -pD \ | ||
20 | + $ROOT/lib/firmware/${FW%.*}.txt $MODLOOP/modules/firmware/${FW%.*}.txt | ||
21 | fi | ||
22 | done | ||
23 | + | ||
24 | +# include bluetooth firmware in modloop | ||
25 | +if [ -d "$MODLOOP/modules/firmware/brcm" ]; then | ||
26 | + for _btfw in "$ROOT"/lib/firmware/brcm/*.hcd; do | ||
27 | + install -pD "$_btfw" \ | ||
28 | + "$MODLOOP"/modules/firmware/brcm/"${_btfw##*/}" | ||
29 | + done | ||
30 | +fi | ||
31 | + | ||
32 | mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz -exit-on-error | ||
33 | |||
34 | mkinitfs $MKINITFS_ARGS -q -b $ROOT -F "$features base squashfs" \ | ||
35 | -- | ||
36 | 2.17.1 | ||
37 | |||
diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD index 05aaa265f3..45ec59f46f 100644 --- a/main/alpine-conf/APKBUILD +++ b/main/alpine-conf/APKBUILD | |||
@@ -1,13 +1,14 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=alpine-conf | 2 | pkgname=alpine-conf |
3 | pkgver=3.8.0_rc2 | 3 | pkgver=3.8.0_rc2 |
4 | pkgrel=0 | 4 | pkgrel=1 |
5 | pkgdesc="Alpine configuration management scripts" | 5 | pkgdesc="Alpine configuration management scripts" |
6 | url=http://git.alpinelinux.org/cgit/$pkgname | 6 | url=http://git.alpinelinux.org/cgit/$pkgname |
7 | arch="all" | 7 | arch="all" |
8 | license="MIT" | 8 | license="MIT" |
9 | depends="openrc>=0.24.1-r6 busybox>=1.26.1-r3" | 9 | depends="openrc>=0.24.1-r6 busybox>=1.26.1-r3" |
10 | source="http://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-$pkgver.tar.xz | 10 | source="http://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-$pkgver.tar.xz |
11 | 0001-update-kernel-add-additional-firmware-files.patch | ||
11 | " | 12 | " |
12 | 13 | ||
13 | builddir="$srcdir"/$pkgname-$pkgver | 14 | builddir="$srcdir"/$pkgname-$pkgver |
@@ -24,4 +25,5 @@ package() { | |||
24 | done | 25 | done |
25 | } | 26 | } |
26 | 27 | ||
27 | sha512sums="3b5224c2484b47c858fcea9fca0d2a1a73db7151ae8ed02480ae05dea35eb6f5ed4c2ffd887686cd43ac701948319c74e2cb8ccb1ada4f64ab9c8c350a241208 alpine-conf-3.8.0_rc2.tar.xz" | 28 | sha512sums="3b5224c2484b47c858fcea9fca0d2a1a73db7151ae8ed02480ae05dea35eb6f5ed4c2ffd887686cd43ac701948319c74e2cb8ccb1ada4f64ab9c8c350a241208 alpine-conf-3.8.0_rc2.tar.xz |
29 | faffb4d2e6da15f631211e36fdd8cdaedae91e8c00e09055f17130fef7ce073fadfa78deebedb1877768c1707fc1e0a2741496dea5b0831b2f2b12cef23555de 0001-update-kernel-add-additional-firmware-files.patch" | ||