2018-04-21 14:55:39 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-samsung-golden
|
2019-12-12 22:07:40 +00:00
|
|
|
pkgdesc="Samsung Galaxy S III mini"
|
2019-08-23 14:36:47 +00:00
|
|
|
pkgver=1
|
2023-02-18 23:12:21 +00:00
|
|
|
pkgrel=15
|
2018-04-21 14:55:39 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2019-11-03 18:54:55 +00:00
|
|
|
arch="armv7"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2019-12-12 21:09:59 +00:00
|
|
|
depends="postmarketos-base mkbootimg"
|
2018-04-21 14:55:39 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2019-12-12 21:09:59 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
2019-12-12 22:07:40 +00:00
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
2019-12-12 21:09:59 +00:00
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2020-06-21 12:35:57 +00:00
|
|
|
$pkgname-kwin
|
2019-12-12 21:09:59 +00:00
|
|
|
"
|
2018-04-21 14:55:39 +00:00
|
|
|
source="
|
2018-05-05 19:44:34 +00:00
|
|
|
deviceinfo
|
2019-12-12 22:07:40 +00:00
|
|
|
kwin.sh
|
2019-12-12 21:09:59 +00:00
|
|
|
downstream/init-usb-hook.sh
|
2020-04-04 14:07:49 +00:00
|
|
|
downstream/modules-load-wifi.conf
|
2019-12-12 21:09:59 +00:00
|
|
|
downstream/module-config.conf
|
2018-04-21 14:55:39 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2019-12-12 21:09:59 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="linux-samsung-golden"
|
2019-12-12 21:09:59 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
2019-08-23 14:36:47 +00:00
|
|
|
|
2019-12-12 21:09:59 +00:00
|
|
|
# USB
|
|
|
|
install -Dm644 "$srcdir"/init-usb-hook.sh \
|
2023-02-18 23:12:21 +00:00
|
|
|
"$subpkgdir"/usr/share/mkinitfs/hooks/00-init_usb.sh
|
2019-12-12 21:09:59 +00:00
|
|
|
|
|
|
|
# WiFi kernel module configuration
|
2020-04-04 14:07:49 +00:00
|
|
|
install -Dm644 "$srcdir"/modules-load-wifi.conf \
|
2018-05-05 19:44:34 +00:00
|
|
|
"$subpkgdir"/etc/modules-load.d/00-load-wifi.conf
|
|
|
|
install -Dm644 "$srcdir"/module-config.conf \
|
|
|
|
"$subpkgdir"/etc/modprobe.d/00-module-config.conf
|
|
|
|
}
|
|
|
|
|
2019-12-12 22:07:40 +00:00
|
|
|
kernel_mainline() {
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to mainline kernel"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="linux-postmarketos-stericsson"
|
2019-12-12 22:07:40 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2019-12-12 21:09:59 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi/BT firmware"
|
2020-06-21 12:31:50 +00:00
|
|
|
depends="firmware-samsung-u8500"
|
2019-12-12 21:09:59 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-06-21 12:35:57 +00:00
|
|
|
kwin() {
|
|
|
|
install_if="$pkgname-kernel-mainline kwin"
|
|
|
|
install -Dm644 "$srcdir"/kwin.sh "$subpkgdir"/etc/profile.d/kwin.sh
|
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
2021-09-18 17:06:03 +00:00
|
|
|
9c5329c37d0dfd7ff34e22c5346429692d1b8b700b84ed8ac1934f62ca54495db7200506bde5a66f1543bfb3fa10a6c5cb53a1590067d6eda01b94d666fb3bc0 deviceinfo
|
2019-12-12 22:07:40 +00:00
|
|
|
685ec71484a932c59f83f1039d4d18a010a5849342e96d9e15ae8ce64374aac15073f9c51d7d9f270c60e70d2ea15c685b8f528cdc40f991b093b9227cba6a48 kwin.sh
|
2018-05-05 19:44:34 +00:00
|
|
|
769f76b2b0dc5279c514181f6cc915c045562df0c1fe08c54b6588d11ff2c75441a3a4f78d6dde669c82e1c572a66bdde475da3e289d334e3255fcf15430c044 init-usb-hook.sh
|
2020-04-04 14:07:49 +00:00
|
|
|
61e8becbf6fa7c1c6c42e481083f5981ae7af33a48cbc53e817d8ac2c6a8e4f67a54b32ae3b8f5f25f7b412165a849dc93a629110dc47b0d16927bf2a12eb7e1 modules-load-wifi.conf
|
2021-07-07 05:06:17 +00:00
|
|
|
436900f627e4ec7e8359bfa6b5d0ac98c69cdd3f3b5e68d23354fa87d79beef866afd6c4cf27b97e9b608cce44fe8d116594f3b08520c9c05624bcf58b61c7f1 module-config.conf
|
|
|
|
"
|