[Optimizations] use CPU cache information in optimizePkg

This commit is contained in:
Antoine Viallon 2023-10-31 14:50:07 +01:00
parent cba4091589
commit bd1e3fe6bf
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -11,6 +11,10 @@ let
cpuCores ? generalCfg.cpu.threads,
cpuArch ? generalCfg.cpu.arch,
cpuTune ? generalCfg.cpu.tune,
l1dCache ? generalCfg.cpu.caches.l1d,
l1iCache ? generalCfg.cpu.caches.l1i,
l1LineCache ? generalCfg.cpu.caches.cacheLine,
lastLevelCache ? generalCfg.cpu.caches.lastLevel,
extraCFlags ? cfg.extraCompileFlags,
blacklist ? cfg.blacklist,
ltoBlacklist ? cfg.lto.blacklist,
@ -21,7 +25,7 @@ let
...
}@attrs: pkg:
myLib.optimizations.optimizePkg pkg (cfg.defaultSettings // {
inherit cpuCores cpuTune cpuArch extraCFlags blacklist ltoBlacklist overrideMap stdenv attributes;
inherit cpuCores cpuTune cpuArch extraCFlags blacklist ltoBlacklist overrideMap stdenv attributes l1dCache l1iCache l1LineCache lastLevelCache;
} // attrs);
in {
options.aviallon.optimizations = {