Allow override of default platform Hardware Info Config

New string debug variable HardwareInfoOverride is used to
specify new Hardware Info Config to be selected, for example 1x4x8.

Change-Id: I6d939608e6551e4a9102e5ab2e08255ee4982933
This commit is contained in:
Napiatek, Henryk J
2018-10-04 12:44:49 +02:00
parent 941b1e2ff0
commit 6d828e6653
37 changed files with 591 additions and 18 deletions

View File

@@ -59,6 +59,17 @@ DebugSettingsManager<DebugLevel>::~DebugSettingsManager() {
}
}
template <DebugFunctionalityLevel DebugLevel>
void DebugSettingsManager<DebugLevel>::getHardwareInfoOverride(std::string &hwInfoConfig) {
std::string str = flags.HardwareInfoOverride.get();
if (str[0] == '\"') {
str.pop_back();
hwInfoConfig = str.substr(1, std::string::npos);
} else {
hwInfoConfig = str;
}
}
template <DebugFunctionalityLevel DebugLevel>
void DebugSettingsManager<DebugLevel>::dumpKernel(const std::string &name, const std::string &src) {
if (false == debugKernelDumpingAvailable()) {