From 245f6e6911201dc0f445864ffb956051b3fa0124 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Sat, 4 Jun 2022 16:45:55 +0100 Subject: [PATCH] soc-qcom-sdm845: add qbootctl (MR 3190) [ci:skip-build] already built successfully in CI --- device/community/soc-qcom-sdm845/APKBUILD | 10 +++++++++- .../soc-qcom-sdm845-qbootctl.post-install | 2 ++ .../soc-qcom-sdm845-qbootctl.post-upgrade | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 device/community/soc-qcom-sdm845/soc-qcom-sdm845-qbootctl.post-install create mode 120000 device/community/soc-qcom-sdm845/soc-qcom-sdm845-qbootctl.post-upgrade diff --git a/device/community/soc-qcom-sdm845/APKBUILD b/device/community/soc-qcom-sdm845/APKBUILD index ddb268018..2c0215c9c 100644 --- a/device/community/soc-qcom-sdm845/APKBUILD +++ b/device/community/soc-qcom-sdm845/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Caleb Connolly (kalube) pkgname=soc-qcom-sdm845 pkgdesc="Common package for Qualcomm SDM845 devices" -pkgver=6 +pkgver=7 pkgrel=0 url="https://postmarketos.org" license="BSD-3-Clause" @@ -15,6 +15,7 @@ depends=" subpackages=" $pkgname-nonfree-firmware:nonfree_firmware $pkgname-ucm + $pkgname-qbootctl " _ucm_commit="621c71fd5f5742c60d38766ebb2d1bd3b863a2a4" @@ -48,6 +49,13 @@ ucm() { cp -r "$srcdir/alsa-ucm-conf-$_ucm_commit"/ucm2 "$subpkgdir"/usr/share/alsa/ } +qbootctl() { + pkgdesc="Enable qbootctl mark-boot-successful service" + depends="qbootctl" + install="$subpkgname.post-install $subpkgname.post-upgrade" + mkdir "$subpkgdir" +} + sha512sums=" a1a6c6f5a6156e76e5a15b0078e3baedf07fa02b354cb025b1124ed688434a620d80aa8c0069b2d7ded1a29e2bb9318ab6e8f8a85af33a9dd2478a7b7ec6b494 alsa-ucm-conf-621c71fd5f5742c60d38766ebb2d1bd3b863a2a4.tar.gz 4f2c22a3a3fc7d380e200ad977578107d81f0e7ade7918e03bdb15b60a564e8db5f47e13cce22f636d38fd3722696bb46076b8872dae0ca2d8a3838522a1f025 90-feedbackd-pmi8998.rules diff --git a/device/community/soc-qcom-sdm845/soc-qcom-sdm845-qbootctl.post-install b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-qbootctl.post-install new file mode 100644 index 000000000..1ce77a594 --- /dev/null +++ b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-qbootctl.post-install @@ -0,0 +1,2 @@ +#!/bin/sh +rc-update add qbootctl default diff --git a/device/community/soc-qcom-sdm845/soc-qcom-sdm845-qbootctl.post-upgrade b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-qbootctl.post-upgrade new file mode 120000 index 000000000..fcd1ef1f7 --- /dev/null +++ b/device/community/soc-qcom-sdm845/soc-qcom-sdm845-qbootctl.post-upgrade @@ -0,0 +1 @@ +soc-qcom-sdm845-qbootctl.post-install \ No newline at end of file