summaryrefslogtreecommitdiff
path: root/system/easy-kernel/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/easy-kernel/APKBUILD')
-rw-r--r--system/easy-kernel/APKBUILD157
1 files changed, 39 insertions, 118 deletions
diff --git a/system/easy-kernel/APKBUILD b/system/easy-kernel/APKBUILD
index 57ccd4e8c..c840c960e 100644
--- a/system/easy-kernel/APKBUILD
+++ b/system/easy-kernel/APKBUILD
@@ -2,26 +2,27 @@
# Maintainer: Adelie Platform Group <adelie-devel@lists.adelielinux.org>
# KEEP THIS IN SYNC with the other easy-kernel packages.
_kflavour=""
+_patchver=0
_pkgname=easy-kernel$_kflavour
-pkgver=4.14.149
-pkgrel=16
-pkgname=$_pkgname-$pkgver-mc$pkgrel
+pkgver=5.4.5
+pkgrel=2
+pkgname=$_pkgname-$pkgver-mc$_patchver
pkgdesc="The Linux kernel, packaged for your convenience"
url="https://kernel.org/"
arch="all"
options="!check !dbg !strip !tracedeps"
license="GPL-2.0-only"
depends=""
-makedepends="bc gzip kmod lzop openssl-dev xz"
+makedepends="bc bison flex gzip kmod lzop openssl-dev rsync xz"
provides="easy-kernel$_kflavour=$pkgver-r$pkgrel"
-subpackages="$_pkgname-modules-$pkgver-mc$pkgrel:modules
- $_pkgname-src-$pkgver-mc$pkgrel:src
+replaces="easy-kernel-power8 easy-kernel-power8-64k"
+subpackages="$_pkgname-modules-$pkgver-mc$_patchver:modules
+ $_pkgname-src-$pkgver-mc$_patchver:src
linux-headers:headers"
_pkgmajver=${pkgver%%.*}
_pkgminver=${pkgver%.*}
source="https://cdn.kernel.org/pub/linux/kernel/v${_pkgmajver}.x/linux-${_pkgminver}.tar.xz
- https://distfiles.adelielinux.org/source/linux-${_pkgminver}-mc$pkgrel-patches.tar.xz
- ast-endianness.patch
+ https://distfiles.adelielinux.org/source/linux-${_pkgminver}-mc$_patchver-patches.tar.xz
config-ppc64
config-ppc
config-x86_64
@@ -29,97 +30,14 @@ source="https://cdn.kernel.org/pub/linux/kernel/v${_pkgmajver}.x/linux-${_pkgmin
config-aarch64
config-sparc64
config-m68k
+ asound-syntax-fix.patch
kernel.h
+ uapi-iphdr.patch
"
builddir="$srcdir/linux-${_pkgminver}"
-# secfixes: linux_kernel
-# 4.14.0-r0:
-# - CVE-2017-1000410
-# 4.14.8-r2:
-# - CVE-2018-14619
-# - CVE-2017-1000407
-# 4.14.33-r6:
-# - CVE-2018-1068
-# - CVE-2018-1130
-# - CVE-2018-8781
-# 4.14.48-r8:
-# - CVE-2018-1120
-# - CVE-2018-10021
-# - CVE-2018-10940
-# - CVE-2018-11508
-# - CVE-2018-1000204
-# 4.14.56-r9:
-# - CVE-2018-1118
-# - CVE-2018-10853
-# - CVE-2018-10878
-# - CVE-2018-10879
-# - CVE-2018-10880
-# - CVE-2018-10881
-# - CVE-2018-11412
-# - CVE-2018-12904
-# - CVE-2018-13406
-# - CVE-2018-16276
-# - CVE-2018-20856
-# 4.14.76-r11:
-# - CVE-2017-18216
-# - CVE-2017-18224
-# - CVE-2018-5390
-# - CVE-2018-5391
-# - CVE-2018-6554
-# - CVE-2018-6555
-# - CVE-2018-15572
-# - CVE-2018-15594
-# - CVE-2018-16658
-# - CVE-2018-16871
-# - CVE-2018-18021
-# - CVE-2018-20511
-# 4.14.127-r14:
-# - CVE-2018-18281
-# - CVE-2018-18397
-# - CVE-2018-18690
-# - CVE-2018-19854
-# - CVE-2018-20169
-# - CVE-2018-20784
-# - CVE-2018-20836
-# - CVE-2018-1000026
-# - CVE-2019-6974
-# - CVE-2019-10638
-# - CVE-2019-10639
-# - CVE-2019-11486
-# - CVE-2019-11599
-# - CVE-2019-11810
-# - CVE-2019-11815
-# - CVE-2019-11884
-# - CVE-2019-12818
-# - CVE-2019-12819
-# 4.14.138-mc15:
-# - CVE-2018-20855
-# - CVE-2019-1125
-# - CVE-2019-3900
-# - CVE-2019-13272
-# - CVE-2019-13631
-# - CVE-2019-13648
-# - CVE-2019-14283
-# - CVE-2019-14284
-# 4.14.149-mc16:
-# - CVE-2019-14814
-# - CVE-2019-14815
-# - CVE-2019-14816
-# - CVE-2019-14821
-# - CVE-2019-14835
-# - CVE-2019-15030
-# - CVE-2019-15117
-# - CVE-2019-15118
-# - CVE-2019-15505
-# - CVE-2019-15538
-# - CVE-2019-16746
-# - CVE-2019-17054
-# - CVE-2019-17055
-# - CVE-2019-17056
-
prepare() {
- for patch in "$srcdir/linux-${_pkgminver}-mc$pkgrel-patches"/*; do
+ for patch in "$srcdir/linux-${_pkgminver}-mc$_patchver-patches"/*; do
patch -p1 -i "$patch"
done
default_prepare
@@ -127,6 +45,9 @@ prepare() {
cd "$srcdir"
cp config-$CARCH linux-${_pkgminver}/.config
cp -pr linux-${_pkgminver} linux-src
+ if [ -f $HOME/kernel_key.pem ]; then
+ cp $HOME/kernel_key.pem "$builddir"/certs/signing_key.pem
+ fi
}
build() {
@@ -150,16 +71,16 @@ package() {
if [ -f "$pkgdir"/boot/vmlinuz ]; then
mv "$pkgdir"/boot/vmlinuz \
- "$pkgdir"/boot/vmlinuz-$pkgver-mc$pkgrel-easy$_kflavour
+ "$pkgdir"/boot/vmlinuz-$pkgver-mc$_patchver-easy$_kflavour
fi
if [ -f "$pkgdir"/boot/vmlinux ]; then
mv "$pkgdir"/boot/vmlinux \
- "$pkgdir"/boot/vmlinux-$pkgver-mc$pkgrel-easy$_kflavour
+ "$pkgdir"/boot/vmlinux-$pkgver-mc$_patchver-easy$_kflavour
fi
if [ -f "$pkgdir"/boot/System.map ]; then
mv "$pkgdir"/boot/System.map \
- "$pkgdir"/boot/System.map-$pkgver-mc$pkgrel-easy$_kflavour
+ "$pkgdir"/boot/System.map-$pkgver-mc$_patchver-easy$_kflavour
fi
case $CARCH in
@@ -167,7 +88,7 @@ package() {
esac
install -D "$builddir"/include/config/kernel.release \
- "$pkgdir"/usr/share/kernel/easy-$pkgver-mc$pkgrel$_kflavour/kernel.release
+ "$pkgdir"/usr/share/kernel/easy-$pkgver-mc$_patchver$_kflavour/kernel.release
}
modules() {
@@ -176,18 +97,17 @@ modules() {
autodeps=0 # modules should not depend on src just for symlink
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/modules "$subpkgdir"/lib/
- rm "$subpkgdir"/lib/modules/$pkgver-mc$pkgrel-easy$_kflavour/build
- rm "$subpkgdir"/lib/modules/$pkgver-mc$pkgrel-easy$_kflavour/source
- ln -s "../../../usr/src/linux-$pkgver-mc$pkgrel$_kflavour" \
- "$subpkgdir"/lib/modules/$pkgver-mc$pkgrel-easy$_kflavour/build
- ln -s "../../../usr/src/linux-$pkgver-mc$pkgrel$_kflavour" \
- "$subpkgdir"/lib/modules/$pkgver-mc$pkgrel-easy$_kflavour/source
+ rm "$subpkgdir"/lib/modules/$pkgver-mc$_patchver-easy$_kflavour/build
+ rm "$subpkgdir"/lib/modules/$pkgver-mc$_patchver-easy$_kflavour/source
+ ln -s "../../../usr/src/linux-$pkgver-mc$_patchver$_kflavour" \
+ "$subpkgdir"/lib/modules/$pkgver-mc$_patchver-easy$_kflavour/build
+ ln -s "../../../usr/src/linux-$pkgver-mc$_patchver$_kflavour" \
+ "$subpkgdir"/lib/modules/$pkgver-mc$_patchver-easy$_kflavour/source
}
headers() {
pkgdesc="System headers provided by the Linux kernel"
cd "$builddir"
- patch -Np1 -i "$startdir"/revert-broken-uapi.patch
mkdir -p "$subpkgdir"/usr
make headers_install INSTALL_HDR_PATH="$subpkgdir/usr"
@@ -202,24 +122,25 @@ headers() {
install -D -m644 "$builddir"/include/generated/utsrelease.h \
"$subpkgdir"/usr/include/linux/utsrelease.h
- cp "$srcdir"/kernel.h "$subpkgdir"/usr/include/linux/
+ install -m644 "$srcdir"/kernel.h "$subpkgdir"/usr/include/linux/kernel.h
}
src() {
pkgdesc="Kernel source code used to build the kernel"
provides="easy-kernel$_kflavour-src=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"/usr/src
- mv "$srcdir"/linux-src "$subpkgdir"/usr/src/linux-$pkgver-mc$pkgrel$_kflavour
+ mv "$srcdir"/linux-src "$subpkgdir"/usr/src/linux-$pkgver-mc$_patchver$_kflavour
}
-sha512sums="77e43a02d766c3d73b7e25c4aafb2e931d6b16e870510c22cef0cdb05c3acb7952b8908ebad12b10ef982c6efbe286364b1544586e715cf38390e483927904d8 linux-4.14.tar.xz
-c38d64091dfd9bbf326d345c1b488d90a36b8a6c18882d62883c1dc39d4c5394f254b09813252bad57e6ddbbee80c1de90374257bd96ba50fee0241ed53c6bc2 linux-4.14-mc16-patches.tar.xz
-e41d9111219342ad13367902242444ecdd847a93575c3f9709d6c6a075bc650f4a15be9db1a8798435fc0a0b56d41705829bfe0d2c2d88f8d1c28931e27ef5be ast-endianness.patch
-2299b107b0b9fe503095e0dbdd4edd4134c05fc4a86e650805781aaa508f18a2e4eda59341355f62a0fdc7b301b4876f452c3109c042cbb218f23e0d314a4ff9 config-ppc64
-e35c70c7ac02a2894a3c4197070b9afa3315c403bf5e178ce251e63bf21609525871c55cbad4fd449af63104be68c7625ea1e1383c077d0bbc0f1960c2b6c4a9 config-ppc
-27deb4d449853eb725501b5f69eb8d4169d4fac951b33dc184ade8df1f8fe72f192fa4c4d0d34cd98cf6ef40da3bedbed6f87268fa6a05c0a348d3b727e4d766 config-x86_64
-9e089209e69c7bb7ca16d425d7e76d7160622288299247ee544f93337b21fb4aec3e2cd594703eb877155cfb9d82dedf1f3945055cdb2b9369e73c7c9fd21e8d config-pmmx
-13137f8706b176b395b30154a97903ba3f7bf3b0a3ff241e8c2f67e1a0fb92ad34609ba1d3f6ab262a5032bc9dbff45bbc749f0ad9dc2aa008c9bbac0c0247ef config-aarch64
-dd7a6bb6fe26426e758fa85e57377d93a8fba4fe77dc67fc5ac0feb98316b9782971b9b4ef17a0fa8c158ea9ae348a6b93dc6dc0be8d28130aa7fbe4a68fb752 config-sparc64
-e6000e88d97144907c1f5c424d52a8b95f2eac82a707bef97c39c2b1658b08b9765451a0297bcc6a297ab9f0a3ab993d59f977009325066e2512aa1a820acc88 config-m68k
-fdd94b9de7b374f1812dec0f9971c05f5e52177ca4a16c8071daa620c18265b38f656f528e7045a24f30af01f05e53e54546fb0a9e93773cf191866e87de505d kernel.h"
+sha512sums="9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f linux-5.4.tar.xz
+37c85fcec3bd54d586523f74cfb56db6158152cfbb407469f0da12b24e5de01cbe273ad4e59d41df75011c163922dadf2fe5e919cb6b16f74872e80c28bba1b1 linux-5.4-mc0-patches.tar.xz
+8278765408dbeb860f2b125207f4e47f52c323d7b1596da426510af8a8acdf36decde26d581a902496042b8b7834f5377c4327458b2038f6a10eb653ce7208df config-ppc64
+89b7e2055586a3a71674ebe41cb3f6302b318cc24d8794a970150a1dfe236df4838c8126d6e43b951bbab2680a83b391b03b74317aa794b0371e91426c198008 config-ppc
+072143e5cfb4ba60b2af8de923e5ab8c71224ffee4a97ce6f3a35223afd83e8d86faa15f1d86219d3f8cc4c1b9c2eb4bdc5b0421be7501e5b00916bf63aa0763 config-x86_64
+c699a9499058a2df0692272bd15d7398745459458eb62c99813e0b4de28f359117c6c727be77d75ae08db23cb1824a3bf1f045aaadf88bc53b8267b2c0f6992f config-pmmx
+9d5ae66c32060c90074d2e217ade8dc700262bb737a46e5d7242cb24bb98b54c3d27eb19685fcef1875fbb6bd2283f2a8fda8c37940ea49fa58e891524893046 config-aarch64
+67d61164e5cfebb4127ba3ef265339bfce834f9b8bca1f82d4acdd5cefb673fdb456a837c090667fd6659a28fe7a9480dbbfceac6550e24245c260561cdc6070 config-sparc64
+7b240485f3adc7da4f08612d11c3001e40ab7b50cfdf492eb23aed335bcbf742c92afa39aa1764d8f85599d009a07c8dca77a1e19676d4729d232410bdd36905 config-m68k
+4b2cd7dd0010aaec617c756e7587be7fad6ff0ab3dbc1ed038e3dc72c9308fc9e347c6e5296c30711d914e286aa254600586e2ad954a5da226e6e4c1522b75b5 asound-syntax-fix.patch
+61dcd633d72876566b7738dd08856b26850c935b4a81ab2364711335fe01c397083160f530b3382bbc239c6a8135be6a032e93039083ec2cefdae2902429a2e0 kernel.h
+6f309a18c65c991240265afd200cc79a706f5d9e5d072838a9a641ab3676a5e4c32033f9767fc723ff4c45ee462169a0f77bd7dfe63b547d521dadd073f827a7 uapi-iphdr.patch"