-
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.
linux-stracciatella: update sources to RM1XX_5.4.70_v1.3.4 and add wi…
…reguard (#742) * linux-stracciatella: update sources to RM1XX_5.4.70_v1.3.4 * Bump build image to v3.1 * Add wireguard module to linux-stracciatella * Move wireguard config out of sources * Remove debug symbols for rM1 --------- Co-authored-by: Nathaniel van Diepen <[email protected]>
- Loading branch information
Showing
1 changed file
with
25 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|