firmware-samsung-pxa1908: install all firmware files unconditionally
It has been found that the calibration files, while not mandatory, could be useful with the mainline mwifiex driver as well. Install those on mainline as well and leave the -downstream subpackage as a stub for -downstream-openrc. Also, switch from installing the firmware to /usr/lib instead of /lib to suppress warnings. Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8311>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
maintainer="Duje Mihanović <duje@dujemihanovic.xyz>"
|
maintainer="Duje Mihanović <duje@dujemihanovic.xyz>"
|
||||||
pkgname=firmware-samsung-pxa1908
|
pkgname=firmware-samsung-pxa1908
|
||||||
pkgver=2
|
pkgver=3
|
||||||
pkgrel=6
|
pkgrel=0
|
||||||
pkgdesc="Firmware for Samsung PXA1908 devices"
|
pkgdesc="Firmware for Samsung PXA1908 devices"
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
arch="aarch64"
|
arch="aarch64"
|
||||||
@@ -13,8 +13,7 @@ source="
|
|||||||
$pkgname-$_commit.tar.gz::https://github.com/xcover3/$_repo/archive/$_commit.tar.gz
|
$pkgname-$_commit.tar.gz::https://github.com/xcover3/$_repo/archive/$_commit.tar.gz
|
||||||
sd8x-wlan.initd
|
sd8x-wlan.initd
|
||||||
"
|
"
|
||||||
_fw_file="sd8777_uapsta.bin"
|
_fw_files="sd8777_uapsta.bin WlanCalData_ext.conf txpwrlimit_cfg.bin bt_cal_data.conf"
|
||||||
_misc_files="WlanCalData_ext.conf txpwrlimit_cfg.bin bt_cal_data.conf"
|
|
||||||
builddir="$srcdir/$_repo-$_commit"
|
builddir="$srcdir/$_repo-$_commit"
|
||||||
install="$pkgname-downstream-openrc.post-install"
|
install="$pkgname-downstream-openrc.post-install"
|
||||||
subpackages="
|
subpackages="
|
||||||
@@ -23,23 +22,18 @@ subpackages="
|
|||||||
"
|
"
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd proprietary/etc/firmware/mrvl/
|
cd "$builddir"/proprietary/etc/firmware/mrvl/
|
||||||
|
for _i in $_fw_files; do
|
||||||
install -Dm644 "$_fw_file" \
|
install -Dm644 "$_i" \
|
||||||
-t "$pkgdir/lib/firmware/postmarketos/mrvl"
|
-t "$pkgdir/usr/lib/firmware/postmarketos/mrvl"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
downstream() {
|
downstream() {
|
||||||
pkgdesc="Extra firmware files needed by downstream driver"
|
pkgdesc="Stub to pull service for enabling WLAN"
|
||||||
depends="$pkgname"
|
depends="$pkgname"
|
||||||
|
|
||||||
mkdir "$subpkgdir"
|
mkdir "$subpkgdir"
|
||||||
|
|
||||||
cd "$builddir"/proprietary/etc/firmware/mrvl/
|
|
||||||
for _i in $_misc_files; do
|
|
||||||
install -Dm644 "$_i" \
|
|
||||||
-t "$subpkgdir/lib/firmware/postmarketos/mrvl"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
downstream_openrc() {
|
downstream_openrc() {
|
||||||
|
|||||||
Reference in New Issue
Block a user