Skip to content

Commit

Permalink
linux-stracciatella: update sources to RM1XX_5.4.70_v1.3.4 and add wi…
Browse files Browse the repository at this point in the history
…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
Etn40ff and Eeems committed Dec 10, 2023
1 parent 9a5fba4 commit 5762cd8
Showing 1 changed file with 25 additions and 5 deletions.
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

0 comments on commit 5762cd8

Please sign in to comment.