diff options
Diffstat (limited to 'tools/validatekeymaps/Main.cpp')
| -rw-r--r-- | tools/validatekeymaps/Main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/validatekeymaps/Main.cpp b/tools/validatekeymaps/Main.cpp index 991b28071515..cbfdfe4d89c4 100644 --- a/tools/validatekeymaps/Main.cpp +++ b/tools/validatekeymaps/Main.cpp @@ -97,6 +97,11 @@ static bool validateFile(const char* filename) { case FileType::KEY_LAYOUT: { base::Result<std::shared_ptr<KeyLayoutMap>> ret = KeyLayoutMap::load(filename); if (!ret.ok()) { + if (ret.error().message() == "Missing kernel config") { + // It means the layout is valid, but won't be loaded on this device because + // this layout requires a certain kernel config. + return true; + } error("Error %s parsing key layout file.\n\n", ret.error().message().c_str()); return false; } |