From 2e31fbb24234b259bc8274cf15edce918cec661a Mon Sep 17 00:00:00 2001 From: hacker12455 Date: Fri, 7 Jun 2019 11:17:38 +0200 Subject: [PATCH] Add WiFi firmware and enable it. (!419) --- device/device-htc-k2ul/APKBUILD | 10 +++++++++- firmware/firmware-htc-k2ul/APKBUILD | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 firmware/firmware-htc-k2ul/APKBUILD diff --git a/device/device-htc-k2ul/APKBUILD b/device/device-htc-k2ul/APKBUILD index 341b2c966..1f4c84e72 100644 --- a/device/device-htc-k2ul/APKBUILD +++ b/device/device-htc-k2ul/APKBUILD @@ -2,13 +2,14 @@ pkgname="device-htc-k2ul" pkgdesc="HTC One SV" pkgver=0.1 -pkgrel=0 +pkgrel=1 url="https://postmarketos.org" license="MIT" arch="armv7" options="!check !archcheck" depends="postmarketos-base linux-htc-k2ul mkbootimg mesa-dri-swrast msm-fb-refresher" makedepends="devicepkg-dev" +subpackages="$pkgname-nonfree-firmware:nonfree_firmware" source="deviceinfo initfs-hook.sh 90-android-touch-dev.rules" build() { @@ -22,6 +23,13 @@ package() { "$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules } +nonfree_firmware() { + pkgdesc="Wifi firmware" + depends="firmware-htc-k2ul" + mkdir "$subpkgdir" +} + + sha512sums="82d2659d9d1711ff4451f5041c1e0fa51fc869461e6bfa1741ff9819b743ab62676e8386a5c428214ed0f1e7a98d7ab532beb479f868496a21dd1e3197bfd091 deviceinfo e1fa365c75602eb3144ef36f0b1f1c622fea092c758064355c277daf58848655e51ed9db6cbef57a6fe605378a97f778a0b5e3ffca80797257369dc3064419de initfs-hook.sh f0f69ab3b5b3fed11ec5049f37c71c4e9dcf87dc1f238199a3917dd61957d46783a8798d63d400cc5d3983987e750e3fec6d7117561ad5005f28131ae4821d66 90-android-touch-dev.rules" diff --git a/firmware/firmware-htc-k2ul/APKBUILD b/firmware/firmware-htc-k2ul/APKBUILD new file mode 100644 index 000000000..1406e265e --- /dev/null +++ b/firmware/firmware-htc-k2ul/APKBUILD @@ -0,0 +1,22 @@ +pkgname=firmware-htc-k2ul +pkgver=1 +pkgrel=0 +pkgdesc="Firmware files for HTC One SV" +url="https://postmarketos.org" +arch="armv7" +license="proprietary" +options="!check !strip !archcheck" + + +# Source +_commit="c822f224447f013232ec72061610e454f6e63167" +_repo="firmware-htc-k2ul" +_url="https://github.com/Hacker1245/$_repo/" +source="$pkgname-$_commit.tar.gz::$_url/archive/${_commit}.tar.gz" +builddir="$srcdir/$_repo-$_commit" + +package() { + install -dm755 "$pkgdir"/lib/firmware/postmarketos + cp -r * "$pkgdir"/lib/firmware/postmarketos/ +} +sha512sums="73ae3529ecc7cd881774c11e7e6b7672646b80138fec27824b89071386a4d3f79bf0559e2f91c6a93285f0bd65a90a5509669bf400db7a0ab66babe25a202a56 firmware-htc-k2ul-c822f224447f013232ec72061610e454f6e63167.tar.gz"