Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux-stracciatella: update sources to RM1XX_5.4.70_v1.3.4 and add wireguard #742

Merged
merged 8 commits into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions package/linux-stracciatella/package
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,37 @@ archs=(rm1 rm2)
pkgnames=(linux-stracciatella)
pkgdesc="RemarkableAS's vanilla kernel with a few extra flakes"
url=https://github.com/Etn40ff/linux-remarkable
pkgver=5.4.70-2
timestamp=2022-09-26T21:23:39Z
pkgver=5.4.70-3
timestamp=2023-09-23T00:12:00Z
section="kernel"
maintainer="Salvatore Stella <[email protected]>"
makedepends=(build:flex build:bison build:libssl-dev build:bc build:lzop build:libgmp-dev build:libmpc-dev build:kmod)
license=GPL-2.0-only
flags=(nostrip)
installdepends=(kernelctl)
image=base:v2.3
source=(https://github.com/Etn40ff/linux-remarkable/archive/41121ea10ed2235c441cfe717461988859d7f5b6.tar.gz)
sha256sums=(ade87a10bfa7069222cbf8eb1d00ca460d38aab9685223d2fa3ee4f363a75cfa)
image=base:v3.1
_wireguard_version=1.0.20220627
source=(
https://github.com/Etn40ff/linux-remarkable/archive/c908b16d6b848964ecc9b116a024f247c290a1bf.tar.gz
"https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-$_wireguard_version.tar.xz"
)
sha256sums=(
2075b9eb69172751b3e8e0d3a40d63c0c05982e79a2724ed7c3bdfc4f7988eea
362d412693c8fe82de00283435818d5c5def7f15e2433a07a9fe99d0518f63c0
)
noextract=("wireguard-linux-compat-$_wireguard_version.tar.xz")

prepare() {
# Jury-rig the wireguard module into sources and enable it
mkdir "$srcdir/net/wireguard"
bsdtar --strip-components 2 -xJ -C "$srcdir/net/wireguard" \
-f "$srcdir/wireguard-linux-compat-$_wireguard_version.tar.xz" \
"wireguard-linux-compat-$_wireguard_version/src"
sed -i "/^obj-\\\$(CONFIG_NETFILTER).*+=/a obj-\$(CONFIG_WIREGUARD) += wireguard/" "$srcdir/net/Makefile"
sed -i "/^if INET\$/a source \"net/wireguard/Kconfig\"" "$srcdir/net/Kconfig"
echo "CONFIG_WIREGUARD=m" >> "$srcdir/arch/arm/configs/zero-gravitas_defconfig"
echo "CONFIG_WIREGUARD=m" >> "$srcdir/arch/arm/configs/zero-sugar_defconfig"
}

build() {
if [[ $arch = rm1 ]]; then
Expand Down