Commit Graph

1143 Commits

Author SHA1 Message Date
Adel Kara Slimane
9d88cf0cd5 prepare: handle properly optiprofile from customization.cfg (#254)
Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
2021-06-02 11:02:06 +02:00
Adel Kara Slimane
dea8847167 Various refactorings + Enable Clang LTO (#248)
* Enable Clang LTO

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: improve kernel prompting and selection code

- Subversion are to be directly edited in the _kver_subver_map
variable at the top of the file
- _supported_kernels is theoretically not needed, but it's needed
for the prompting to happen with the correct order, since the
keys in _kver_subver_map are hash-ordered, which is not the
natural ordering

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: update comment

* prepare: improve compiler selection and LTO enablement code path

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* install.sh: use _prompt_from_array for distro selection

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: move optiprofile prompt to _prompt_from_array

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: improve cpu sched fallback code

* install.sh: move set -e at the top

* prepare: use arrays for HZ configs

* prepare: enable default selection in _prompt_from_array

* prepare: use _prompt_from_array for _rr_interval

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: update _rr_interval prompting

* prepare: update and use config script for tickless

* prepare: use scripts/config accross the entire script

* prepare: change last lines to scripts/config

* prepare: small fixes

* customization.cfg: revert back to old values for _tickless

* prepare: revert back to old numbering for _rr_interval

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: msg2 used _rr_interval

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: be smarter/dumber with _rr_interval

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: remove last manual interventions to .config

* prepare: fix condition

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: improve cpu march handling and implement prompt

Making `make` prompt wasn't working on my Gentoo for a
reason I don't understand anymore. The configs are unset
by the script. So it always goes for generic by default.
Maybe they need to be entirely deleted from the .config
file.

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: fix name for MuQSS.c

* prepare: use _sched for scheduler source code files

* install.sh: use sudo to clean root owned files in linux-src-git

* prepare: remove useless code

* prepare: fix issue with MuQSS

* Add CacULE scheduler

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* 5.13 rc4

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: Remove voluntary_preempt, OFenable and disable_acpi_cpufreq options

* prepare: Prevent config prompt w/ modprobed-db

Rebase of @CodingKoopa PR

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: Empty LOCALVERSION config option for Arch at the correct spot

@CodingKoopa spotted the issue and reported it, thanks!

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: use _enable _undefine and _disable wrappers

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* Restore the state tracker for makepkg usage

* Fix tickless array selection order for nohz idle/hz periodic

* Also handle the disabling part of the generic march selector

* Replace _undefine() calls with _disable()

* Preserve the case of config options passed to scripts/config

* Echo the CONFIG_EXPERT options without blank lines

And with a header/footer
Makes searching for config setting bugs easier

* prepare: uppercase config options with "tr"

Co-authored-by: Etienne JUVIGNY <ti3nou@gmail.com>
2021-06-01 20:14:47 +02:00
Joshie
3e6a12eb76 linux513: Add futex2 patches (#252)
Add the futex2 patchset rebased by me
2021-05-31 23:17:02 +02:00
Tk-Glitch
9a4d9896b2 Remove dead code added by https://github.com/Frogging-Family/linux-tkg/pull/239
Thanks to @CodingKoopa for pointing it out
2021-05-31 13:35:06 +02:00
Koopa
6f71f4635e prepare: Prevent config prompt w/ modprobed-db. (#251) 2021-05-31 13:26:38 +02:00
Tk-Glitch
50672b9f51 cfg: Add missing kernel versions and cpu schedulers to their respective comments 2021-05-31 13:24:37 +02:00
Tk-Glitch
db16339ccd Remove voluntary_preempt, OFenable and disable_acpi_cpufreq options
The last one is kinda broken, and the two others don't really have their place in here.
Also enable zfsfix by default and make it a legacy option we can move out of the main options.
2021-05-31 13:23:50 +02:00
Tk-Glitch
1221f8760e 5.13 rc4 2021-05-31 13:09:16 +02:00
Tk-Glitch
4307fc377d cfg: Enable fsync & futex2 by default 2021-05-30 20:55:24 +02:00
Tk-Glitch
48c61da830 Default to 1000Hz tickrate for cacule prompt when timer_freq is unset 2021-05-30 20:51:23 +02:00
Tk-Glitch
8140128777 Handle CacULE's 2000Hz tickrate option 2021-05-30 20:29:53 +02:00
Tk-Glitch
15193f4e3d linux512/513-tkg: Tweak ondemand gov for CFS in glitched-cfs patchset
Using our aggressive ondemand settings
2021-05-30 20:05:58 +02:00
Tk-Glitch
670c6e730e linux512/513-tkg: Initial support for CacULE CPU scheduler from @hamadmarri - https://github.com/hamadmarri/cacule-cpu-scheduler
RDB hasn't been tested yet and isn't included as a result.
2021-05-30 20:03:54 +02:00
Tk-Glitch
6d2b07d0b2 install.sh: Add 5.13 opt_ver
Fixes https://github.com/Frogging-Family/linux-tkg/issues/249
2021-05-30 19:50:57 +02:00
Tk-Glitch
dd1a0f0d91 5.4.123, 5.10.41, 5.12.8 2021-05-28 18:38:41 +02:00
Tk-Glitch
6006c78cea Readme update
I'm not sure we want to keep that kind of stuff in here.. So let's update it and eventually get rid of it later on.
2021-05-26 23:52:08 +02:00
Tk-Glitch
e4862c9a07 5.4.122, 5.10.40, 5.12.7 2021-05-26 23:49:09 +02:00
Tk-Glitch
0a8b6d86a1 5.4.121, 5.10.39, 5.12.6, 5.13 rc3 2021-05-24 10:52:08 +02:00
Tk-Glitch
d9384b9e7f install.sh: Fix /etc/modules-load.d/winesync.conf generation 2021-05-19 20:52:38 +02:00
Tk-Glitch
29d86ed041 5.4.120, 5.10.38, 5.11.22, 5.12.5 2021-05-19 17:15:15 +02:00
Adel Kara Slimane
f0ccecfdb2 Fix winesync for non-arch distros (#243)
* install.sh: install headers in /usr/include for winesync to work

This implies reverting a previous change in deb and rpm distros
and adding make headers_install in the Generic approach

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* install.sh: install winesync.rules file

This file will not be removed and will be left dangling
Not so bad I think, since only winesync uses it. We can
remove it in the future if things change

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* prepare: remove winesync.rules file during cleanup

So we can check if the user actually asked for winesync
in the current run by checking if the file exists.

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

* install.sh: add winesync to /etc/modules-load.d for auto-loading

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
2021-05-18 12:46:28 +02:00
Adel Kara Slimane
54c74a72c3 Fix: make Arch be able to use _configfile (#239)
* prepare: fix custom _configfile usage for Arch

* Remove yes from localmodconfig make call

* customization.cfg: tell that modprobed-db can prompt the user

* prepare: reset LOCALVERSION in .config to empty string

Using a kernelconfig.new with a LOCALVERSION set makes the script
set it twice in the package name.
2021-05-17 16:42:40 +02:00
Tk-Glitch
cd76e7e1e3 5.13 RC2 2021-05-17 12:41:31 +02:00
Tk-Glitch
5c0f3f72e3 GCC11 config pass 2021-05-17 12:37:13 +02:00
Tk-Glitch
467e6c3f41 5.4.119, 5.10.36, 5.11.21, 5.12.4 2021-05-14 14:48:03 +02:00
Tk-Glitch
3ef72775ab 5.4.118, 5.10.36, 5.11.20, 5.12.3 2021-05-12 18:09:54 +02:00
Tk-Glitch
429e8ee9be linux512-tkg: Oversight 2021-05-10 19:11:51 +02:00
Tk-Glitch
5b0abb9b2d linux512-tkg: Update prjc to v5.12-r1 - http://cchalpha.blogspot.com/2021/05/project-c-v512-r1-release.html 2021-05-10 18:32:50 +02:00
Tk-Glitch
a35c2f295e Initial support for 5.13 rc1
I have ported Project C v5.12-r1 over. We're missing fsync/futex2.
2021-05-10 18:19:12 +02:00
Tk-Glitch
ce40b11e56 linux512-tkg: Import winesync patchset - https://repo.or.cz/linux/zf.git/shortlog/refs/heads/winesync 2021-05-07 18:57:33 +02:00
Tk-Glitch
204931f0f8 5.4.117, 5.10.35, 5.11.19, 5.12.2 2021-05-07 17:33:20 +02:00
Tk-Glitch
f748589016 Silence TRIM_UNUSED_KSYMS prompt when using certain combinations with futex2. This option can break out of tree module compilation when enabled so this is undersirable. 2021-05-07 17:32:00 +02:00
Tk-Glitch
e8fcdcc02e linux511-tkg: Import rebased bcachefs patchset
Fixes https://github.com/Frogging-Family/linux-tkg/issues/223
2021-05-06 18:19:18 +02:00
Tk-Glitch
8923c5f392 Add bonnell, sapphirerapids, rocketlage and alderlake cpu optimizations support 2021-05-03 16:19:48 +02:00
Tk-Glitch
9520c8aba8 config: Add a note regarding profile settings overriding user settings
https://github.com/Frogging-Family/linux-tkg/issues/238
2021-05-02 15:32:02 +02:00
Tk-Glitch
dd5f45aeb0 5.4.116, 5.10.34, 5.11.18, 5.12.1 2021-05-02 11:47:35 +02:00
Tk-Glitch
69f0d7c26e Set _distro="Arch" in PKGBUILD
We can probably make a choice between _ispkgbuild="true" and _distro="Arch". I'll thing about it.
2021-04-30 21:52:17 +02:00
Tk-Glitch
63f0a1ea79 Rewrite config before the menuconfig and co prompt using olddefconfig. This offers an up to date set of default options before optional further customization. 2021-04-30 21:50:32 +02:00
Adel Kara Slimane
89cd81e726 install.sh: Add convenience script for generic install (#227)
* install.sh: simplify ccache code

* install.sh: add generic distro install

* README: update with Generic distro install

* install.sh: update help messages
2021-04-30 18:32:30 +02:00
Tk-Glitch
2994601740 5.4.115, 5.10.33, 5.11.17 2021-04-28 19:44:39 +02:00
Tk-Glitch
50481587bf linux512-tkg: Update defconfig to Arch default - a50fbb1900/trunk/config 2021-04-28 13:48:26 +02:00
Tk-Glitch
09b5e06b5c Only offer to enable available patches and skip the others while silencing their messages 2021-04-28 13:47:20 +02:00
Tk-Glitch
61d96a227a linux512-tkg: Import 5.12-ck1 patchset - http://ck-hack.blogspot.com/2021/04/linux-512-ck1-muqss-version-0210-for.html 2021-04-28 10:40:19 +02:00
Tk-Glitch
4cd7091d0b Skip setting env vars for winesync if the patchset isn't available for selected kernel 2021-04-28 00:32:05 +02:00
Tk-Glitch
86fc89bc99 Fix wrong option number for 5.11 2021-04-26 20:40:40 +02:00
Tk-Glitch
ef620e2dc3 Initial 5.12 release
With imported Project C v5.12-r0 patchset - http://cchalpha.blogspot.com/2021/04/project-c-v512-r0-release.html
2021-04-26 19:59:42 +02:00
Tk-Glitch
4c421dd598 5.4.114, 5.10.32, 5.11.16 2021-04-22 17:05:50 +02:00
Tk-Glitch
d7375e1a33 Fix graysky's cpu opt patchset application on 5.4 2021-04-22 17:05:20 +02:00
Adel Kara Slimane
86defefe99 Fix DKMS for RPM distros (#233)
* install.sh: RPM distros: Install the correct headers RPM for DKMS to work

Closes: #230
Closes: #229

* install.sh: remove trailing whitespaces

They came from reverting a commit that actually removed them x)

* install.sh: Add note in uninstall-help for Suse about kernel-headers
2021-04-22 12:42:42 +02:00
Tk-Glitch
6c52454cef 5.12 RC8 2021-04-19 02:47:21 +02:00