4724b0f9c1
Right now we have all firmware packages under firmware/*. This is problematic for mainly two reasons: - It's not immediately clear which firmware packages we need to keep when forking a new stable branch. (Where we delete testing devices at the moment...) We might end up deleting firmware packages that are actually used by one of the devices in community. - When backporting devices to the stable we cannot just cherry-pick the commit that moved the device to community (since it does not contain the firmware package). Instead we need to cherry-pick earlier commits as well, which may touch a lot of deleted files in the testing directory. Let's make this consistent by also placing the firmware packages in the device/* directory. We already have the common firmware- prefix to distinguish them from device/kernel packages, which are already both under the device/* directory.
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
pkgname=firmware-samsung-a3ulte
|
|
pkgver=2
|
|
pkgrel=0
|
|
pkgdesc="Firmware for Samsung Galaxy A3 (SM-A300FU)"
|
|
url="https://rizzotherat.gitlab.io/firmware/"
|
|
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
|
|
arch="aarch64"
|
|
license="proprietary"
|
|
options="!check !strip !archcheck"
|
|
source="https://rizzotherat.gitlab.io/firmware/SM-A300FU.tar.xz"
|
|
|
|
_fwdir="/lib/firmware/postmarketos"
|
|
|
|
package() {
|
|
# parent package is empty
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
modem() {
|
|
pkgdesc="Samsung Galaxy A3 (SM-A300FU) modem firmware"
|
|
install -Dm644 "$srcdir"/mba.mbn -t "$subpkgdir/$_fwdir"
|
|
install -Dm644 "$srcdir"/modem.* -t "$subpkgdir/$_fwdir"
|
|
}
|
|
|
|
venus() {
|
|
pkgdesc="Samsung Galaxy A3 (SM-A300FU) video firmware"
|
|
install -Dm644 "$srcdir"/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
|
|
}
|
|
|
|
wcnss() {
|
|
pkgdesc="Samsung Galaxy A3 (SM-A300FU) WiFi/BT firmware"
|
|
cd "$srcdir"
|
|
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
|
|
install -Dm644 WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
|
|
}
|
|
|
|
sha512sums="911907209993639aaf19d09dc946edc96c86e660f936c58b4c0deeddbe1ac5d8a5404db4db78cbae9c619a3e93515460bb420a8487e0ded9efcd12da01689a08 SM-A300FU.tar.xz"
|