Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • alistair23/pmaports
  • exkc/pmaports
  • fossdd/pmaports
  • JustSoup321/pmaports
  • Eisenbahnfan/pmaports
  • raihan2000/pmaports
  • sleirsgoevy/pmaports
  • Adrian/pmaports
  • adamthiede/pmaports
  • jianhua/pmaports
  • knuxify/pmaports
  • Arnavion/pmaports
  • barni2000/pmaports
  • longnoserob/pmaports
  • smankusors/pmaports
  • Aren/pmaports
  • langfingaz/pmaports
  • sicelo/pmaports
  • kouta-kun/pmaports
  • craftyguy/pmaports
  • rdacayan/pmaports
  • rmader/pmaports
  • Haui111/pmaports
  • jakko/pmaports
  • dujem/pmaports
  • methanal/pmaports
  • WeirdTreeThing/pmaports
  • MightyM17/pmaports
  • sertonix/pmaports
  • amessier/pmaports
  • akemnade/pmaports
  • setotau/pmaports
  • kevinwidjaja21/pmaports
  • NekoCWD/pmaports
  • ollieparanoid/pmaports
  • manoedinata/pmaports
  • Drakulix/pmaports
  • grimler/pmaports
  • benpicco/pmaports
  • Frieder.Hannenheim/pmaports
  • andrisas/pmaports
  • EspiDev/pmaports
  • maze42/pmaports
  • anjandev/pmaports
  • danct12/pmaports
  • ijiki16/pmaports
  • jja2000/pmaports
  • fancsali/pmaports
  • bolilingmeng89006/pmaports
  • Minecrell/pmaports
  • chipiguay/pmaports
  • cherrypicker/pmaports
  • fortuna-mainline/pmaports
  • pevik/pmaports
  • Patriot-06/pmaports
  • JoseskVolpe/pmaports
  • verdre/pmaports
  • proycon/pmaports
  • AutumnSpark1226/pmaports
  • PsychoGame/pmaports
  • fraolt/pmaports
  • VaporGame/pmaports
  • pugzarecute/pmaports
  • CalcProgrammer1/pmaports
  • hexaheximal/pmaports
  • dabao1955/pmaports
  • HenriDellal/pmaports
  • semfault/pmaports
  • strobo5/pmaports
  • andrewgigena/pmaports
  • Athozus/pmaports
  • 1peter10/pmaports
  • vixalien/pmaports
  • Tooniis/pmaports
  • adomerle/pmaports
  • bjorn3/pmaports
  • StacyHarper/pmaports
  • Jack_Kekzoz/pmaports
  • Ceddicedced/pmaports
  • Justin_Zobel/pmaports
  • airtower-luna/pmaports
  • f-izzo/pmaports
  • cosmo/pmaports
  • 9lore/pmaports
  • postmarketOS/pmaports
  • Johnnynator/pmaports
  • iAboothahir/pmaports
  • N1kroks/pmaports
  • neuschaefer/pmaports
  • DylanVanAssche/pmaports
  • yehiashamaa987/pmaports
  • Operachi/pmaports
  • faveoled/pmaports
  • ilpianista/pmaports
  • johkra/pmaports
  • HDDTHR/pmaports
  • zsoltiv/pmaports
  • Justin/pmaports
  • Kaloyan501/pmaports_huawei_p8_lite_2015_fix
  • joelselvaraj/pmaports
  • rontti/pmaports
  • dsankouski/pmaports
  • StandaSK/pmaports
  • paricbat/pmaports
  • asdfugil/pmaports
  • komaru-yml/pmaports
  • MasterPlexus/pmaports
  • Felix/pmaports
  • ayakael/pmaports
  • feisuzhu/pmaports
  • AJ-RR/pmaports
  • SzczurekYT/pmaports
  • mediaberry/pmaports
  • justsomeguy/pmaports
  • Augis154/pmaports
  • hrdl/pmaports
  • sib0ndt/pmaports
  • 19atlas/pmaports
  • vipaoL/pmaports
  • wannjanjic/pmaports
  • dh/pmaports
  • LogicalErzor/pmaports
  • halamix2/pmaports
  • Shamilkv34/pmaports
  • Cogitri/pmaports
  • fallenritemonk/pmaports
  • user0-07161/pmaports
  • rock3tsprocket/pmaports
  • ellyq/pmaports
  • rodent/pmaports
  • mkorpershoek/pmaports
  • candrew/pmaports
  • fallaciousreasoning/pmaports
  • chalkin/pmaports
  • ungeskriptet/pmaports
  • r00t/pmaports
  • panpanpanpan/pmaports
  • celiffe/pmaports
  • davidfurey/pmaports
  • kidd/pmaports
  • tpikonen/pmaports
  • camelCaseNick/pmaports
  • ermine/pmaports
  • lgh/pmaports
  • sajattack/pmaports
  • StephanieBread/pmaports
  • M0Rf30/pmaports
  • notfound405/pmaports
  • samueldr/pmaports
  • r10nw7fd3/pmaports
  • treid998/pmaports-merge
  • denysvitali/pmaports
  • rodriguezst/pmaports
  • puppiestdoggo1/pmaports
  • donihalim/pmaports
  • EDKPiepaint/pmaports-apple-tonga-test
  • SanyaPilot/pmaports
  • spyraks/pmaports
  • HAKANKOKCU/pmaports
159 results
Show changes
Showing
with 5508 additions and 53 deletions
[quirks]
fbdev_force_refresh=true
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-olive
pkgdesc="Xiaomi Redmi 8"
pkgver=2
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
......@@ -11,12 +11,12 @@ depends="
linux-xiaomi-olive
mkbootimg
postmarketos-base
unl0kr-fbforcerefresh
"
makedepends="devicepkg-dev"
source="
deviceinfo
etc-lightdm-lightdm.conf
10-unl0kr.conf
"
subpackages="
......@@ -30,10 +30,6 @@ build() {
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/10-unl0kr.conf \
"$pkgdir"/etc/unl0kr.conf.d/10-unl0kr.conf
}
nonfree_firmware() {
......@@ -56,5 +52,4 @@ fix_lightdm() {
sha512sums="
b9db26b33c455047d2659a36d3b231b4808aea75a46e34136926e8fb0201e001fb722c67dc0a0a322b87983dbb4220e52ce6dc6ba04c830a72b683ffc5fbabc1 deviceinfo
861270c6bc0b2a3e6cd389c21c8c895e62de8cf8bec6fcf23c178f8cbaae855d62b0ee98692671ab4f518d84cb43dd0b2fe46f5a609f65af6a6c06e0fdbb6d0c etc-lightdm-lightdm.conf
f700af3145b79d1ef9edfb22982899b25cabfb212f9620dcbd3a2e6f44b5ad591e0a66056c6fcd66c3fde89a2b5f551e8a8fe2e65cf0e2a48adec57c027d7825 10-unl0kr.conf
"
......@@ -2,7 +2,7 @@
# Kernel config based on: arch/arm64/configs/defconfig
pkgname=linux-next
pkgver=6.14_git20250214
pkgver=6.14_git20250218
pkgrel=0
_nextver="${pkgver#*_git}"
pkgdesc="Linux next kernel"
......@@ -69,7 +69,7 @@ package() {
}
sha512sums="
54f46916c166aad0866811168c58b17859f79fde9d425bfb9ad470313a587642dd736af7d46c3f3071cc1149cc95691f67bb860d7a24b2ca0a3d4c9ca6065c81 linux-next-next-20250214.tar.gz
3b878144d43200c3424ee361541f1617fe0ef042e3dac3aa96048f907addd2a70aa338f006ccf52abb5c28bd822156708c7e0688f28de2cad1fd113281958126 linux-next-next-20250218.tar.gz
8de0a3791ea671528a9fc753071683dfea68ea4f4c22060fc0ca8a4b1b3d76eaa2a3fd40bb013173f0e55da15dde91cf285902779beb35781b6c90f39244ce11 devices.config
eaceb011997e5f19ad8c5e9b4d291ebe264d83953f9b21d5b1a0c479602edb235252657f297b1a59c7a11dd2205d40360197489a3337ba6f8e040ecf2b51f527 pmos.config
"
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/ANT_defconfig
pkgname=linux-nokia-ant
pkgver=4.14.186
pkgrel=0
pkgdesc="HMD Global Nokia 1 kernel fork"
arch="armv7"
_carch="arm"
_flavor="nokia-ant"
url="https://nokiaphones-opensource.azureedge.net/download/phones/Nokia1Plus_V3.13B_OSS.tar.bz2"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
android-tools
bash
bc
bison
devicepkg-dev
findutils
flex
gcompat
linux-headers
openssl-dev
perl
xz
"
# Source: backup of https://nokiaphones-opensource.azureedge.net/download/phones/Nokia1Plus_V3.13B_OSS.tar.bz2
_repository="linux-nokia-ant"
_commit="f34b871adebfd992293dc385640efeec8aaa92e4"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/halamix2/$_repository/archive/$_commit.tar.gz
$_config
fix-check-lxdialog.patch
fix-assembly-flags.patch
float-division.patch
double-definiton.patch
inline-functions.patch
fix-dtb-generation.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
# Remove -Werror from all makefiles
local i
local makefiles="$(find . -type f -name Makefile)"
for i in $makefiles; do
sed -i 's/-Werror-/-W/g' "$i"
sed -i 's/-Werror//g' "$i"
done
REPLACE_GCCH=0 . downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
"$_flavor" "$_outdir"
make modules_install dtbs_install \
O="$_outdir" \
ARCH="$_carch" \
INSTALL_PATH="$pkgdir"/boot \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
mv "$pkgdir"/boot/dtbs/mt6739.dtb "$pkgdir"/boot/dtbs/mt6739.dtb.orig
mkdtboimg create "$pkgdir"/boot/dtbs/mt6739.dtb "$pkgdir"/boot/dtbs/mt6739.dtb.orig
rm "$pkgdir"/boot/dtbs/mt6739.dtb.orig
}
sha512sums="
9ff6976ebb12c056efe2944afa0fedcc0bc78a3b50a6e0556a0c9acf6051511b29c90307c4a9c36044870f7daac46ac168a9fd5d48a8252a4d33220254e7ee37 linux-nokia-ant-f34b871adebfd992293dc385640efeec8aaa92e4.tar.gz
c1abfd2c5c16600a90b2960fc7a0a80658913f80d19fa8bbb1aa1c7782e56854e92a9631f3f109fe5cd1e74b233189808b5680a07a50d09855d625e34e71d0b2 config-nokia-ant.armv7
182be3c596b9cc267ac108d7cf03fc8c328ccc6b36770800e4dcedea8d1bb65e3f5eacf590c2948f58b1418cc60a1670ba77dde8c259e428d158c31b6e1dbaf5 fix-check-lxdialog.patch
ab05f64fb8335e3470359dfcf7e11bf545e7800b350cf19ee722c714f2072cb3ebbd898717eeac98de745bd71926285be349188fd8c9d65b9c73197cb1e93ff7 fix-assembly-flags.patch
b2b351e861de81004238897a181ec687e7d2e51b43021ec4be319b99c8e6c1e64ebe8c80ad46f49a53f79185fff72db17336c1b5e4e53123967560f2c23693cd float-division.patch
61a533dc854469a9ef25a6ce6df9e35342688c27927592e3ea9d2cee262dcf342953fb071e9c623577f42e84bd108cb56745ec6ec3ee9c28c91e8fde8d3373b3 double-definiton.patch
9d799b4fabe1965bc547a50e3962a7cf2325b020a5ce800f7812e5358ba345a9727f30e55d8cf1107a346d8edf53350facf5c318d1c8fe851c3aa45a760d7697 inline-functions.patch
a7df8f35a946f68120fa9165089477b56e36458472fe5f5e3305093a91eede2aac36845bf20876886db9956e4c4f65c851f286089860efef86fc0fce3f3906cb fix-dtb-generation.patch
"
This diff is collapsed.
diff --git a/drivers/tty/vt/selection.c b/drivers/tty/vt/selection.c
index 8d7ab8809..c7bfd0010 100644
--- a/drivers/tty/vt/selection.c
+++ b/drivers/tty/vt/selection.c
@@ -347,7 +347,7 @@ int set_selection(const struct tiocl_selection __user *v, struct tty_struct *tty
return ret;
}
-
+/*
int set_selection(const struct tiocl_selection __user *v,
struct tty_struct *tty)
{
@@ -359,7 +359,7 @@ int set_selection(const struct tiocl_selection __user *v,
return ret;
}
-
+*/
/* Insert the contents of the selection buffer into the
* queue of the tty associated with the current console.
* Invoked by ioctl().
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
index f0de0b356..bf62afe34 100644
--- a/arch/arm/boot/compressed/head.S
+++ b/arch/arm/boot/compressed/head.S
@@ -114,7 +114,7 @@
#endif
.endm
- .section ".start", #alloc, #execinstr
+ .section ".start", "ax"
/*
* sort out different calling conventions
*/
diff --git a/arch/arm/boot/compressed/piggy.S b/arch/arm/boot/compressed/piggy.S
index 0284f84dc..3f43ab14a 100644
--- a/arch/arm/boot/compressed/piggy.S
+++ b/arch/arm/boot/compressed/piggy.S
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 */
- .section .piggydata,#alloc
+ .section .piggydata,"a"
.globl input_data
input_data:
.incbin "arch/arm/boot/compressed/piggy_data"
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
index d8d90cf65..0281140a1 100644
--- a/arch/arm/mm/proc-v7.S
+++ b/arch/arm/mm/proc-v7.S
@@ -636,7 +636,7 @@ __v7_setup_stack:
string cpu_elf_name, "v7"
.align
- .section ".proc.info.init", #alloc
+ .section ".proc.info.init", "ax"
/*
* Standard v7 proc info content
Fix pre-ANSI C code in check-lxdialog.sh.
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 9d2a4c58..364eaecb 100644
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -43,7 +43,7 @@ trap "rm -f $tmp" 0 1 2 3 15
check() {
$cc -x c - -o $tmp 2>/dev/null <<'EOF'
#include CURSES_LOC
-main() {}
+int main() { return 0; }
EOF
if [ $? != 0 ]; then
echo " *** Unable to find the ncurses libraries or the" 1>&2
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 86e591cc2..7cdfc71ff 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1069,6 +1069,7 @@ dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
aspeed-bmc-opp-romulus.dtb \
aspeed-ast2500-evb.dtb
+dtb-$(CONFIG_MACH_MT6739) += mt6739.dtb
endif
dtstree := $(srctree)/$(src)
diff --git a/drivers/misc/mediatek/eccci/hif/net_speed_monitor.c b/drivers/misc/mediatek/eccci/hif/net_speed_monitor.c
index 9cbb21987..a5b51f9f4 100644
--- a/drivers/misc/mediatek/eccci/hif/net_speed_monitor.c
+++ b/drivers/misc/mediatek/eccci/hif/net_speed_monitor.c
@@ -262,7 +262,7 @@ static int get_speed_str(u64 speed, char buf[], int size)
rem = do_div(speed, 1000);
ret = snprintf(buf, size, "%llu.%03lluGbps", speed, rem);
} else if (speed >= 1000000LL) {
- speed = speed / 1000LL;
+ speed = do_div(speed, 1000LL);
rem = do_div(speed, 1000);
ret = snprintf(buf, size, "%llu.%03lluMbps", speed, rem);
} else if (speed >= 1000LL) {
diff --git a/include/linux/blk-crypto.h b/include/linux/blk-crypto.h
index 43d0dbbeb..33e11d73e 100644
--- a/include/linux/blk-crypto.h
+++ b/include/linux/blk-crypto.h
@@ -32,7 +32,7 @@ int blk_crypto_start_using_mode(enum blk_crypto_mode_num crypto_mode,
int blk_crypto_evict_key(struct request_queue *q,
const struct blk_crypto_key *key);
-inline void blk_crypto_flock(struct keyslot_manager *ksm, unsigned int flags);
+void blk_crypto_flock(struct keyslot_manager *ksm, unsigned int flags);
#else /* CONFIG_BLK_INLINE_ENCRYPTION */
diff --git a/include/linux/keyslot-manager.h b/include/linux/keyslot-manager.h
index e247be8a5..631d8e311 100644
--- a/include/linux/keyslot-manager.h
+++ b/include/linux/keyslot-manager.h
@@ -98,7 +98,7 @@ int keyslot_manager_derive_raw_secret(struct keyslot_manager *ksm,
unsigned int wrapped_key_size,
u8 *secret, unsigned int secret_size);
-inline void ksm_flock(struct keyslot_manager *ksm, unsigned int flags);
+void ksm_flock(struct keyslot_manager *ksm, unsigned int flags);
#endif /* CONFIG_BLK_INLINE_ENCRYPTION */
[quirks]
fbdev_force_refresh=true
......@@ -3,8 +3,8 @@
pkgname=soc-qcom-sm7150
pkgdesc="Common package for Qualcomm SM7150 devices"
pkgver=2
pkgrel=1
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="aarch64"
......@@ -20,15 +20,14 @@ depends="
msm-modem-uim-selection
swclock-offset
tqftpserv
unl0kr-fbforcerefresh
"
subpackages="
$pkgname-libssc-180-degrees:libssc_180_degrees
$pkgname-openrc
$pkgname-unl0kr-quirk:unl0kr_quirk
"
source="
10-unl0kr.conf
30-initramfs-firmware.files
81-libssc-180-degrees.rules
90-feedbackd-aw8695.rules
......@@ -62,14 +61,7 @@ openrc() {
mkdir -p "$subpkgdir"
}
unl0kr_quirk() {
# With fbdev emulation enabled, unl0kr needs to force refresh on some panels
install -Dm644 "$srcdir"/10-unl0kr.conf -t \
"$subpkgdir"/etc/unl0kr.conf.d
}
sha512sums="
f700af3145b79d1ef9edfb22982899b25cabfb212f9620dcbd3a2e6f44b5ad591e0a66056c6fcd66c3fde89a2b5f551e8a8fe2e65cf0e2a48adec57c027d7825 10-unl0kr.conf
73438ceec8ca76dec24a92718d456d17b01a23510ee0b0e6c1263e3f6c2ca82263a3e41298c0a8ebf3dd8439da354fc1c914fd475ad1cf5c669c200770df62fa 30-initramfs-firmware.files
2c16ba75e0077b2b1eaefa4c73b287475505a1aeb291ec29316d41cc094277320f9d2aaabfd91eb1dc0f488ab2d61a94faef16e7afe0f1e226779113761b9a37 81-libssc-180-degrees.rules
2974ccc172bf1299daeb0bc746879b3a1db1fbc3a2b163a02a6554fed6ed9f733144bcf976cd2441c5664d496dcce3ae943f4314c653470dc07dda0de5ad632b 90-feedbackd-aw8695.rules
......
# Maintainer: Caleb Connolly <caleb@postmarketos.org>
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=postmarketos-initramfs
pkgver=3.7.4
pkgver=3.7.5
pkgrel=0
pkgdesc="Base files for the postmarketOS initramfs / initramfs-extra"
url="https://postmarketos.org"
......@@ -109,9 +109,9 @@ sha512sums="
c0233d22858a5901db64e1d2fe1f6d39a2e2cfd1b94a10932483f55fed9461e9b8aa2d73b154b9d99a7a8b49ee02abfbddfe917ce0c6d7576601ba2668589c01 00-initramfs-base.files
d0f35562365756d93066ce45924d17fb347b54095179c3262daa2f073e12743505cd5d9372ad30485915ca754d95a8edba9a74314e7949e0b3cf6978a87d03a5 00-initramfs-extra-base.files
c497ace6f3d183c48722b9e4fd2b6fed21338d68a9e729c1423d3c3de3eaae7366d8dd75a11f78b7072a6795dcc5380c10d8b390738372ede6dc78074ae87a76 init.sh
9f581b8ba94a2f9e4ca005c195c3ebbcfb4ffab6a89f376a27bcf316942b9246a8e7f47c8282c7033041e673d5409ad4df0b2bfd5b99a957e11e53f7b4513bf0 init_functions.sh
b7fe2fb320831c2b482ed6f8299b3fd8bfe993cdf437c6d2d6161bc3f37d93d1959224809e776db6a3017737b97c4a7250c8a4f9eb0f57bbd42c3f21b1d34abd init_functions.sh
1edba1de85505cf74f1d1639d8dc0f79764397643aa58b63e0beb7b97d8b67a4f604d90c4efafff0e75e36a3a88bf9d590eb5c29bce5711fc0fc6ffd4d4b617b init_2nd.sh
1d3e3ca37a14c7e3d4b600cb0bcd389e467bd4e08aa33990b589ec5a3e42a59ffc38b2c2ed18972095ca96b14e8abe6df296f1a6615e8bb0dabfbd20fabe17e1 init_functions_2nd.sh
3f750f2d963bdff97b662d220e9dc8092ce482b799695d27ae038f2c8b39ed442082931dfd19ed4833ec3e754f8877860df724f3d860845dc8793353b289e750 init_functions_2nd.sh
675e7d5bee39b2df7d322117f8dcaccc274d61beaf4d50ead19bbf2109446d64b1c0aa0c5b4f9846eb6c1c403418f28f6364eff4537ba41120fbfcbc484b7da7 mdev.conf
ba3275a9af788c7c782322a22a0f144d5e50e3498ea6886486a29331f23ae89cd32d500a3635cfa7cab369afba92edc18aeca64ccbf0cd589061cce23d15b46c unudhcpd.conf
"
......@@ -524,23 +524,6 @@ has_unallocated_space() {
head -n1 | grep -qi "free space"
}
unlock_root_partition() {
command -v cryptsetup >/dev/null || return
partition="$(find_root_partition)"
if cryptsetup isLuks "$partition"; then
# Make sure the splash doesn't interfere
hide_splash
tried=0
until cryptsetup status root | grep -qwi active; do
fde-unlock "$partition" "$tried"
tried=$((tried + 1))
done
PMOS_ROOT=/dev/mapper/root
# Show again the loading splashscreen
show_splash "Loading..."
fi
}
mount_root_partition() {
# Don't mount root if it is already mounted
if mountpoint -q /sysroot; then
......
......@@ -86,6 +86,23 @@ resize_root_partition() {
fi
}
unlock_root_partition() {
command -v cryptsetup >/dev/null || return
partition="$(find_root_partition)"
if cryptsetup isLuks "$partition"; then
# Make sure the splash doesn't interfere
hide_splash
tried=0
until cryptsetup status root | grep -qwi active; do
fde-unlock "$partition" "$tried"
tried=$((tried + 1))
done
PMOS_ROOT=/dev/mapper/root
# Show again the loading splashscreen
show_splash "Loading..."
fi
}
# resize2fs and resize.f2fs are too big
resize_root_filesystem() {
partition="$(find_root_partition)"
......
# Maintainer: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
pkgname=unl0kr
pkgver=3.2.0
pkgrel=5
pkgrel=7
_commit_lvgl=ceadda8a468b7d5fa6ba973bd82cf610166278d8
pkgdesc="Framebuffer-based disk unlocker for the initramfs based on LVGL"
url="https://gitlab.postmarketos.org/postmarketOS/buffybox"
......@@ -30,13 +30,14 @@ source="
unl0kr.conf
unl0kr.files
unlock.sh
10-fb-force-refresh.conf
30-unl0kr-test.sh
"
options="!check" # No tests
# "providing" osk-sdl, since it was dropped from pmaports
provides="postmarketos-fde-unlocker osk-sdl=$pkgver-r$pkgrel"
provider_priority=1000
subpackages="$pkgname-doc $pkgname-pmtest"
subpackages="$pkgname-doc $pkgname-fbforcerefresh $pkgname-pmtest"
builddir="$srcdir/buffybox-$pkgver/unl0kr"
prepare() {
......@@ -53,8 +54,7 @@ build() {
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C build
install -Dm644 "$srcdir"/unl0kr.conf \
"$pkgdir"/etc/unl0kr.conf
install -Dm644 "$srcdir"/unl0kr.conf -t "$pkgdir"/etc/
install -Dm755 "$srcdir"/unlock.sh \
"$pkgdir"/usr/bin/fde-unlock
......@@ -63,30 +63,36 @@ package() {
install -Dm644 unl0kr \
"$pkgdir"/usr/share/mkinitfs-triggers/unl0kr
# TODO: Figure out why this is needed
touch dummy
install -Dm644 dummy \
"$pkgdir"/etc/unl0kr.conf.d/dummy
install -dm755 "$pkgdir"/etc/unl0kr.conf.d/
install -Dm644 "$srcdir"/unl0kr.files \
"$pkgdir"/usr/share/mkinitfs/files-extra/30-unl0kr.files
}
fbforcerefresh() {
pkgdesc="$pkgdesc (force refresh quirk)"
install -Dm644 "$srcdir"/10-fb-force-refresh.conf \
-t "$subpkgdir"/etc/unl0kr.conf.d/
}
pmtest() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-mkinitfs-hook-ci"
install -Dm755 "$srcdir"/30-unl0kr-test.sh \
"$subpkgdir"/usr/libexec/pmos-tests-initramfs/30-unl0kr-test.sh
-t "$subpkgdir"/usr/libexec/pmos-tests-initramfs/
# We need the files in the core initramfs for this, no -extra in CI
install -Dm644 "$srcdir"/unl0kr.files \
"$subpkgdir"/usr/share/mkinitfs/files/30-unl0kr.files
}
sha512sums="
83d6724750e6f7e048063863e78251d32a23b1c7aa9e3529a0b176c415bda70c91b83924f6a71cc7f5ca29f019e7a974b406f6e83ff038dae92430b53183d5fa buffybox-3.2.0.tar.gz
d3611fe9d55ed105d9567b6019dc49fc0510ac4ed6ca6e15ba0c1bae47f2833d8784b3e008a4dec76dce55bf3809531d07c62e4ba24bafad69c6c54fdd0b70c0 lvgl-ceadda8a468b7d5fa6ba973bd82cf610166278d8.tar.gz
7155c2f95dcf3716c0f392cf5717e96f1414c383a1f7c2ed30a1f8518dfe0b17c3c0e0e93f6476a342504aa855404099e2f5444eeb099023491c9a9a26fa3d90 unl0kr.conf
b57260da131a4f40a0a3ee045e8394d4ab79caede9926d77f241afe79c1813fa77f4e312fa3b5e2e5c9fc1b9af082e7c59717abdaf30d512a7eb838a5f623ef8 unl0kr.files
5386f434cd4f1fb9e0d561a8689e5e85d6a8b3c562823122c082d4932d2fb0ad4edcd635f14f0c61e5c8b5e53648c9937b042409c21683007700faea8894c750 unlock.sh
f700af3145b79d1ef9edfb22982899b25cabfb212f9620dcbd3a2e6f44b5ad591e0a66056c6fcd66c3fde89a2b5f551e8a8fe2e65cf0e2a48adec57c027d7825 10-fb-force-refresh.conf
407180b49c1a05f12bd6ee6e59dca0a6e74fe7b01f195087dcf2865598c47827d0bb569afdba55defa2f9a16437230fa62aa64f35111508b906bcbf9537acba4 30-unl0kr-test.sh
"