3
3
# SPDX-License-Identifier: MIT
4
4
5
5
archs=(rm1 rm2)
6
- pkgnames=(linux-stracciatella)
7
- pkgdesc=" RemarkableAS's vanilla kernel with a few extra flakes"
8
- url=https://github.com/Etn40ff/linux-remarkable
6
+ pkgnames=(linux-stracciatella linux-stracciatella-perf)
9
7
pkgver=5.4.70-2
10
8
timestamp=2022-09-26T21:23:39Z
11
- section=" kernel"
12
9
maintainer=
" Salvatore Stella <[email protected] >"
13
10
makedepends=(build:flex build:bison build:libssl-dev build:bc build:lzop build:libgmp-dev build:libmpc-dev build:kmod)
14
11
license=GPL-2.0-only
15
12
flags=(nostrip)
16
- installdepends=(kernelctl)
13
+
17
14
image=base:v2.3
18
15
source=(https://github.com/Etn40ff/linux-remarkable/archive/41121ea10ed2235c441cfe717461988859d7f5b6.tar.gz)
19
16
sha256sums=(ade87a10bfa7069222cbf8eb1d00ca460d38aab9685223d2fa3ee4f363a75cfa)
@@ -25,35 +22,54 @@ build() {
25
22
ARCH=arm make zero-sugar_defconfig
26
23
fi
27
24
ARCH=arm make -j8
25
+ ARCH=arm make -j8 tools/perf
28
26
}
29
27
30
- package () {
31
- # Prepare files for the kernel archive
32
- local staging=" $srcdir " /staging
33
- mkdir -p " $staging /boot"
28
+ linux-stracciatella () {
29
+ pkgdesc=" RemarkableAS's vanilla kernel with a few extra flakes"
30
+ url=https://github.com/Etn40ff/linux-remarkable
31
+ section=" kernel"
32
+ installdepends=(kernelctl)
34
33
35
- cp --no-dereference {" $srcdir " /arch/arm," $staging " }/boot/zImage
36
- if [[ $arch = rm1 ]]; then
37
- cp --no-dereference " $srcdir " /arch/arm/boot/dts/zero-gravitas.dtb " $staging " /boot/zero-gravitas.dtb
38
- elif [[ $arch = rm2 ]]; then
39
- cp --no-dereference " $srcdir " /arch/arm/boot/dts/zero-sugar.dtb " $staging " /boot/zero-sugar.dtb
40
- fi
34
+ package () {
35
+ # Prepare files for the kernel archive
36
+ local staging=" $srcdir " /staging
37
+ mkdir -p " $staging /boot"
41
38
42
- ARCH=arm make -C " $srcdir " modules_install INSTALL_MOD_PATH=" $staging "
43
- rm " $staging " /lib/modules/* /{source,build}
39
+ cp --no-dereference {" $srcdir " /arch/arm," $staging " }/boot/zImage
40
+ if [[ $arch = rm1 ]]; then
41
+ cp --no-dereference " $srcdir " /arch/arm/boot/dts/zero-gravitas.dtb " $staging " /boot/zero-gravitas.dtb
42
+ elif [[ $arch = rm2 ]]; then
43
+ cp --no-dereference " $srcdir " /arch/arm/boot/dts/zero-sugar.dtb " $staging " /boot/zero-sugar.dtb
44
+ fi
44
45
45
- # Create the kernel archive
46
- local archive=" stracciatella-${pkgver% -* } .tar.bz2"
47
- install -d " $pkgdir " /opt/usr/share/kernelctl
48
- (cd " $staging " && tar --owner root:0 --group root:0 --mtime=$timestamp \
49
- -cjf " $pkgdir " /opt/usr/share/kernelctl/" $archive " boot/* lib/modules/* )
46
+ ARCH=arm make -C " $srcdir " modules_install INSTALL_MOD_PATH=" $staging "
47
+ rm " $staging " /lib/modules/* /{source,build}
48
+
49
+ # Create the kernel archive
50
+ local archive=" stracciatella-${pkgver% -* } .tar.bz2"
51
+ install -d " $pkgdir " /opt/usr/share/kernelctl
52
+ (cd " $staging " && tar --owner root:0 --group root:0 --mtime=$timestamp \
53
+ -cjf " $pkgdir " /opt/usr/share/kernelctl/" $archive " boot/* lib/modules/* )
54
+ }
55
+
56
+ configure () {
57
+ if [[ $( < /etc/version) -le 20210709090000 ]]; then
58
+ echo " WARNING: Your system is too old; this kernel will most likely not work unless you add the appropriate firmware blobs to /lib/firmware."
59
+ echo " Please consider updating your system instead."
60
+ fi
61
+ echo " The new kernel files have been copied, but not installed."
62
+ echo " Please use kernelctl to select the kernel to boot."
63
+ }
50
64
}
51
65
52
- configure () {
53
- if [[ $( < /etc/version) -le 20210709090000 ]]; then
54
- echo " WARNING: Your system is too old; this kernel will most likely not work unless you add the appropriate firmware blobs to /lib/firmware."
55
- echo " Please consider updating your system instead."
56
- fi
57
- echo " The new kernel files have been copied, but not installed."
58
- echo " Please use kernelctl to select the kernel to boot."
66
+ linux-stracciatella-perf () {
67
+ pkgdesc=" Linux profiling with performance counters"
68
+ url=https://perf.wiki.kernel.org
69
+ section=devel
70
+
71
+ package () {
72
+ install -D -m 755 -t " $pkgdir " /opt/bin " $srcdir " /tools/perf/perf
73
+ ln -s /opt/bin/perf " $pkgdir " /opt/bin/trace
74
+ }
59
75
}
0 commit comments