-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for limiting packages to OS versions (#759)
- Port 3.11 and c-string fixes from toltecmk - Add rmallos2, rmallos3, rm1os2, rm1os3, rm2os2, and rm2os3 archs for limiting packages to only supporting those versions - Update documentation - Update known issues packages to only be for 2.x - Make toltec-base generate a package for each arch to make sure that the folders always get created - Added experimental toltec branch for testing purposes. You need to add the experimental tag to a PR, and it will start applying changes to the experimental branch. - Fix various issues with the install and reenable process - Update toltecctl output to use the same logging as bootstrap --------- Co-authored-by: Mattéo Delabre <[email protected]> Co-authored-by: Mattéo Delabre <[email protected]>
- Loading branch information
1 parent
2cad2a2
commit d3df6cb
Showing
26 changed files
with
896 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
rm1=2.6.1.71 | ||
rm1=2.6.2.75 | ||
rm1=2.7.0.9 | ||
rm1=2.7.0.30 | ||
rm1=2.7.0.36 | ||
rm1=2.7.0.44 | ||
rm1=2.7.0.51 | ||
rm1=2.8.0.81 | ||
rm1=2.8.0.86 | ||
rm1=2.8.0.98 | ||
rm1=2.9.0.153 | ||
rm1=2.9.0.204 | ||
rm1=2.9.0.210 | ||
rm1=2.9.1.217 | ||
rm1=2.9.1.236 | ||
rm1=2.10.2.356 | ||
rm1=2.10.3.379 | ||
rm1=2.11.0.442 | ||
rm1=2.12.1.527 | ||
rm1=2.12.2.573 | ||
rm1=2.12.3.606 | ||
rm1=2.13.0.758 | ||
rm1=2.14.0.861 | ||
rm1=2.14.1.866 | ||
rm1=2.14.3.958 | ||
rm1=2.14.3.977 | ||
rm1=2.14.3.1005 | ||
rm1=2.14.3.1047 | ||
rm1=2.15.0.1067 | ||
rm1=2.15.1.1189 | ||
rm1=3.0.4.1305 | ||
rm1=3.2.2.1581 | ||
rm1=3.2.3.1595 | ||
rm1=3.3.2.1666 | ||
|
||
rm2=2.6.1.71 | ||
rm2=2.6.2.75 | ||
rm2=2.7.0.9 | ||
rm2=2.7.0.30 | ||
rm2=2.7.0.36 | ||
rm2=2.7.0.44 | ||
rm2=2.7.0.51 | ||
rm2=2.7.1.53 | ||
rm2=2.8.0.81 | ||
rm2=2.8.0.86 | ||
rm2=2.8.0.98 | ||
rm2=2.9.0.153 | ||
rm2=2.9.0.204 | ||
rm2=2.9.0.210 | ||
rm2=2.9.1.217 | ||
rm2=2.9.1.236 | ||
rm2=2.10.2.356 | ||
rm2=2.10.3.379 | ||
rm2=2.11.0.442 | ||
rm2=2.12.1.527 | ||
rm2=2.12.2.573 | ||
rm2=2.12.3.606 | ||
rm2=2.13.0.758 | ||
rm2=2.14.0.861 | ||
rm2=2.14.1.866 | ||
rm2=2.14.3.958 | ||
rm2=2.14.3.977 | ||
rm2=2.14.3.1005 | ||
rm2=2.14.3.1047 | ||
rm2=2.15.0.1067 | ||
rm2=2.15.1.1189 | ||
rm2=3.0.4.1305 | ||
rm2=3.2.2.1581 | ||
rm2=3.2.3.1595 | ||
rm2=3.3.2.1666 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ | |
# Copyright (c) 2021 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
archs=(rm1 rm2) | ||
archs=(rm1os2 rm2os2) | ||
pkgnames=(ddvk-hacks) | ||
pkgdesc="Enhance Xochitl with additional features" | ||
url=https://github.com/ddvk/remarkable-hacks | ||
pkgver=39.01-2 | ||
pkgver=39.01-4 | ||
timestamp=2022-11-09T18:31:51Z | ||
section="readers" | ||
maintainer="Mattéo Delabre <[email protected]>" | ||
|
@@ -20,55 +20,58 @@ sha256sums=(d3b1413bb9219804581afab598e7f5308233e7467d64e8084e67aae7346beaba) | |
_patches_dir="/opt/share/ddvk-hacks" | ||
_xochitl_path="/usr/bin/xochitl" | ||
_work_dir="/home/root/.local/share/ddvk-hacks" | ||
_info_path="$_work_dir/xochitl.info" | ||
_backup_path="$_work_dir/xochitl.backup" | ||
_old_backup_path="$_backup_path.old" | ||
_patched_path="$_work_dir/xochitl.patched" | ||
|
||
package() { | ||
if [[ $arch = rm1 ]]; then | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/26171_rm1/patch_19.1.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/26275_rm1/patch_20.1.03 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/27051_rm1/patch_21.1.04 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/28098_rm1/patch_23.1.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/291236_rm1/patch_24.1.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2100324_rm1/patch_25.1.03 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2102356_rm1/patch_27.1.03 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2103379_rm1/patch_28.1.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2110442_rm1/patch_29.1.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2121527_rm1/patch_30.1.08 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2122573_rm1/patch_31.1.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2123606_rm1/patch_32.1.03 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2140861_rm1/patch_34.1.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2141866_rm1/patch_35.1.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2143977_rm1/patch_36.1.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21431047_rm1/patch_37.1.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21501067_rm1/patch_38.1.03 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21511189_rm1/patch_39.1.01 | ||
elif [[ $arch = rm2 ]]; then | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/26171_rm2/patch_19.2.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/26275_rm2/patch_20.2.03 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/27051_rm2/patch_21.2.05 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/27153_rm2/patch_22.2.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/28098_rm2/patch_23.2.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/291217_rm2/patch_24.2.04 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2100324_rm2/patch_25.2.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2101332_rm2/patch_26.2.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2102356_rm2/patch_27.2.05 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2103379_rm2/patch_28.2.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2110442_rm2/patch_29.2.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2121527_rm2/patch_30.2.07 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2122573_rm2/patch_31.2.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2123606_rm2/patch_32.2.02 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2130758_rm2/patch_33.2.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2140861_rm2/patch_34.2.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2141866_rm2/patch_35.2.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2143977_rm2/patch_36.2.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21431047_rm2/patch_37.2.01 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21501067_rm2/patch_38.2.03 | ||
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21511189_rm2/patch_39.2.01 | ||
mkdir -p "$pkgdir"/opt/share/toltec/reenable.d | ||
touch "$pkgdir"/opt/share/toltec/reenable.d/"$pkgname" | ||
if [[ $arch = rm1os2 ]]; then | ||
patches_dir="${pkgdir}${_patches_dir}" | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/26171_rm1/patch_19.1.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/26275_rm1/patch_20.1.03 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/27051_rm1/patch_21.1.04 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/28098_rm1/patch_23.1.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/291236_rm1/patch_24.1.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2100324_rm1/patch_25.1.03 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2102356_rm1/patch_27.1.03 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2103379_rm1/patch_28.1.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2110442_rm1/patch_29.1.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2121527_rm1/patch_30.1.08 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2122573_rm1/patch_31.1.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2123606_rm1/patch_32.1.03 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2140861_rm1/patch_34.1.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2141866_rm1/patch_35.1.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2143977_rm1/patch_36.1.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21431047_rm1/patch_37.1.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21501067_rm1/patch_38.1.03 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21511189_rm1/patch_39.1.01 | ||
elif [[ $arch = rm2os2 ]]; then | ||
patches_dir="${pkgdir}${_patches_dir}" | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/26171_rm2/patch_19.2.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/26275_rm2/patch_20.2.03 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/27051_rm2/patch_21.2.05 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/27153_rm2/patch_22.2.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/28098_rm2/patch_23.2.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/291217_rm2/patch_24.2.04 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2100324_rm2/patch_25.2.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2101332_rm2/patch_26.2.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2102356_rm2/patch_27.2.05 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2103379_rm2/patch_28.2.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2110442_rm2/patch_29.2.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2121527_rm2/patch_30.2.07 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2122573_rm2/patch_31.2.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2123606_rm2/patch_32.2.02 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2130758_rm2/patch_33.2.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2140861_rm2/patch_34.2.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2141866_rm2/patch_35.2.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2143977_rm2/patch_36.2.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21431047_rm2/patch_37.2.01 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21501067_rm2/patch_38.2.03 | ||
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21511189_rm2/patch_39.2.01 | ||
fi | ||
touch "$srcdir"/emptyfile | ||
install -D -m 666 -t "$pkgdir"/usr/share/toltec/reenable.d/ddvk-hacks "$srcdir"/emptyfile | ||
} | ||
|
||
configure() { | ||
|
@@ -78,7 +81,7 @@ configure() { | |
local device | ||
local original_hash | ||
local xochitl_version | ||
if [[ $arch = rm1 ]]; then | ||
if [[ $arch = rm1os2 ]]; then | ||
device="reMarkable 1" | ||
case "$build_date" in | ||
"20221026103859") | ||
|
@@ -179,7 +182,7 @@ configure() { | |
exit 1 | ||
;; | ||
esac | ||
elif [[ $arch = rm2 ]]; then | ||
elif [[ $arch = rm2os2 ]]; then | ||
device="reMarkable 2" | ||
case "$build_date" in | ||
"20221026104022") | ||
|
@@ -328,11 +331,25 @@ configure() { | |
cp "$_patched_path" "$_xochitl_path" | ||
rm -rf /home/root/.cache/remarkable/xochitl/qmlcache/* | ||
|
||
# shellcheck source=../toltec-bootstrap/toltecctl | ||
source /home/root/.local/bin/toltecctl | ||
get-release-version > "$_info_path" | ||
|
||
echo "Please restart Xochitl to use the patches" | ||
echo | ||
} | ||
|
||
_restore() { | ||
# shellcheck source=../toltec-bootstrap/toltecctl | ||
source /home/root/.local/bin/toltecctl | ||
|
||
if ! [ -f "$_info_path" ] \ | ||
|| [[ "$(get-release-version)" != "$(cat "$_info_path")" ]] \ | ||
|| compare-versions "$(get-release-version)" "3.0"; then | ||
echo "Skipping restore, as you are on a newer OS version" | ||
return | ||
fi | ||
|
||
echo | ||
echo "Restoring the original Xochitl binary" | ||
|
||
|
@@ -342,6 +359,7 @@ _restore() { | |
else | ||
cp "$_backup_path" "$_xochitl_path" | ||
rm -rf /home/root/.cache/remarkable/xochitl/qmlcache/* | ||
rm "$_info_path" | ||
fi | ||
|
||
echo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ | |
# Copyright (c) 2020 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
archs=(rm1 rm2) | ||
archs=(rm1os2 rm2os2) | ||
pkgnames=(fuse) | ||
pkgdesc="FUSE (Filesystem in Userspace) Kernel Module" | ||
url=https://github.com/libfuse/libfuse | ||
pkgver=1.0.0-4 | ||
pkgver=1.0.0-5 | ||
timestamp=2021-04-06T22:16Z | ||
section=kernel | ||
maintainer="plan5 <[email protected]>" | ||
|
@@ -51,14 +51,14 @@ build() { | |
} | ||
|
||
package() { | ||
if [[ $arch = rm1 ]]; then | ||
if [[ $arch = rm1os2 ]]; then | ||
mkdir -p "$pkgdir/lib/modules" | ||
cp -r "$srcdir/pkg"/* "$pkgdir/lib/modules" | ||
fi | ||
} | ||
|
||
configure() { | ||
if [[ $arch = rm1 ]]; then | ||
if [[ $arch = rm1os2 ]]; then | ||
# Regenerate /lib/modules/[ver]/modules.devname to request the | ||
# creation of /dev/fuse used for on-demand loading of fuse | ||
depmod -a | ||
|
@@ -72,7 +72,7 @@ configure() { | |
} | ||
|
||
postremove() { | ||
if [[ $arch = rm1 ]]; then | ||
if [[ $arch = rm1os2 ]]; then | ||
echo 'Fuse (Kernel Module) has been removed.' | ||
echo 'The kernel module will remain loaded until you reboot, or you can attempt' | ||
echo 'to manually remove it by running "modprobe -r fuse".' | ||
|
@@ -81,7 +81,7 @@ postremove() { | |
} | ||
|
||
postupgrade() { | ||
if [[ $arch = rm1 ]]; then | ||
if [[ $arch = rm1os2 ]]; then | ||
echo 'Fuse (Kernel Module) has been upgraded.' | ||
echo 'The old kernel module will remain loaded until you reboot, or you can' | ||
echo 'attempt to manually remove it by running "modprobe -r fuse".' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
pkgnames=(kernelctl) | ||
pkgdesc="Manage aftermarket kernels" | ||
url=https://toltec-dev.org/ | ||
pkgver=0.1-6 | ||
pkgver=0.1-7 | ||
timestamp=2022-11-12T00:00Z | ||
section="utils" | ||
maintainer="Salvatore Stella <[email protected]>" | ||
|
@@ -19,10 +19,10 @@ sha256sums=( | |
) | ||
|
||
package() { | ||
touch "$srcdir"/emptyfile | ||
install -D -m 744 -t "$pkgdir"/opt/bin "$srcdir"/kernelctl | ||
install -d "$pkgdir"/opt/usr/share/kernelctl | ||
install -D -m 666 -t "$pkgdir"/usr/share/toltec/reenable.d/kernelctl "$srcdir"/emptyfile | ||
mkdir -p "$pkgdir"/opt/share/toltec/reenable.d | ||
touch "$pkgdir"/opt/share/toltec/reenable.d/"$pkgname" | ||
} | ||
|
||
configure() { | ||
|
Oops, something went wrong.