From c154e0cb96af9730e25c03459180a124f07305b5 Mon Sep 17 00:00:00 2001 From: Josip Ponjavic Date: Sat, 26 Oct 2019 16:08:18 +0200 Subject: [PATCH] 5.3.7-3 (clr 5.3.7-853) sync with arch, enable security options --- .SRCINFO | 2 +- PKGBUILD | 52 +++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 42 insertions(+), 12 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 89a17dd..f576f3b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = linux-clear pkgver = 5.3.7 - pkgrel = 2 + pkgrel = 3 url = https://github.com/clearlinux-pkgs/linux arch = x86_64 license = GPL2 diff --git a/PKGBUILD b/PKGBUILD index 7c9df83..e7e1d78 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -68,7 +68,7 @@ _srcname=linux-${_major} _clr=${_major}.7-853 pkgbase=linux-clear pkgver=${_major}.${_minor} -pkgrel=2 +pkgrel=3 arch=('x86_64') url="https://github.com/clearlinux-pkgs/linux" license=('GPL2') @@ -90,6 +90,10 @@ source=( _kernelname=${pkgbase#linux} : ${_kernelname:=-clear} +export KBUILD_BUILD_HOST=archlinux +export KBUILD_BUILD_USER=$pkgbase +export KBUILD_BUILD_TIMESTAMP="@${SOURCE_DATE_EPOCH:-$(date +%s)}" + prepare() { cd ${_srcname} @@ -115,18 +119,44 @@ prepare() { ### Enable extra stuff from arch kernel msg2 "Enable extra stuff from arch kernel..." - sed -i 's|^# CONFIG_MODULE_COMPRESS|\ -CONFIG_MODULE_COMPRESS=y\ -# CONFIG_MODULE_COMPRESS_GZIP is not set\ -CONFIG_MODULE_COMPRESS_XZ=y|' ./.config - scripts/config --enable CONFIG_ACPI_REV_OVERRIDE_POSSIBLE \ - --enable CONFIG_HIBERNATION \ - --enable CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER \ + scripts/config --undefine CONFIG_MODULE_SIG_FORCE \ + --enable CONFIG_MODULE_COMPRESS \ + --enable-after CONFIG_MODULE_COMPRESS CONFIG_MODULE_COMPRESS_XZ \ --enable CONFIG_DELL_SMBIOS_SMM \ - --undefine CONFIG_RT_GROUP_SCHED \ - --undefine CONFIG_MODULE_SIG_FORCE \ - --module CONFIG_NET_SCH_CAKE + --enable-after CONFIG_SOUND CONFIG_SOUND_OSS_CORE \ + --enable CONFIG_SND_OSSEMUL \ + --module-after CONFIG_SND_OSSEMUL CONFIG_SND_MIXER_OSS \ + --module-after CONFIG_SND_MIXER_OSS CONFIG_SND_PCM_OSS \ + --enable-after CONFIG_SND_PCM_OSS CONFIG_SND_PCM_OSS_PLUGINS + + # Scheduler features + scripts/config --undefine CONFIG_RT_GROUP_SCHED + + # Queueing/Scheduling + scripts/config --module CONFIG_NET_SCH_CAKE + + # PATA SFF controllers with BMDMA + scripts/config --module CONFIG_PATA_JMICRON + + # Power management and ACPI options + scripts/config --enable CONFIG_ACPI_REV_OVERRIDE_POSSIBLE \ + --enable CONFIG_HIBERNATION + + # Console display driver support + scripts/config --enable CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER + + # Security options + scripts/config --enable CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER \ + --enable CONFIG_SECURITY_SELINUX \ + --enable-after CONFIG_SECURITY_SELINUX CONFIG_SECURITY_SELINUX_BOOTPARAM \ + --enable CONFIG_SECURITY_SMACK \ + --enable-after CONFIG_SECURITY_SMACK CONFIG_SECURITY_SMACK_BRINGUP \ + --enable-after CONFIG_SECURITY_SMACK_BRINGUP CONFIG_SECURITY_SMACK_NETFILTER \ + --enable-after CONFIG_SECURITY_SMACK_NETFILTER CONFIG_SECURITY_SMACK_APPEND_SIGNALS \ + --enable CONFIG_SECURITY_TOMOYO \ + --enable CONFIG_SECURITY_APPARMOR \ + --enable CONFIG_SECURITY_YAMA make olddefconfig