Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da860a02 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Only skip _16k/_64k kernel modules dirs on 4K builds" into main am:...

Merge "Only skip _16k/_64k kernel modules dirs on 4K builds" into main am: 73fcd754 am: 6b38c7ed am: fe743c57

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2758048



Change-Id: I5d74a33eed62431cf91525ca2d2fc4e5c47c8b82
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2746ceda fe743c57
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -239,8 +239,12 @@ bool LoadKernelModules(BootMode boot_mode, bool want_console, bool want_parallel
            module_dirs.emplace_back(entry->d_name);
            break;
        }
        // Ignore _16k/_64k module dirs on 4K kernels
        if (GetPageSizeSuffix(entry->d_name) != page_size_suffix) {
        // Is a directory does not have page size suffix, it does not mean this directory is for 4K
        // kernels. Certain 16K kernel builds put all modules in /lib/modules/`uname -r` without any
        // suffix. Therefore, only ignore a directory if it has _16k/_64k suffix and the suffix does
        // not match system page size.
        const auto dir_page_size_suffix = GetPageSizeSuffix(entry->d_name);
        if (!dir_page_size_suffix.empty() && dir_page_size_suffix != page_size_suffix) {
            continue;
        }
        int dir_major = 0, dir_minor = 0;