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

Commit 722d1ce1 authored by Nikita Savchenko's avatar Nikita Savchenko Committed by Bruno Martins
Browse files

kernel: Report all modules not found at once

Change-Id: Ic46f72989b2dd5de574cc33b7e9f7499323d9bb0
parent f4a6ff20
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -394,9 +394,13 @@ define build-image-kernel-modules-lineage
        if [ -n "$$(find $(2)/lib/modules$(6) -type f -name $$NAME'.ko')" ]; then \
            echo "$$NAME" >> $(2)/lib/modules$(6)/modules.load; \
        else \
            echo "ERROR: $$NAME.ko was not found in the kernel modules intermediates dir, module load list must be corrected" 1>&2 && exit 1; \
            echo "ERROR: $$NAME.ko was not found in the kernel modules intermediates dir, module load list must be corrected" 1>&2; \
            ERROR=1; \
        fi; \
    done; \
    if [ -n "$$ERROR" ]; then \
        exit 1; \
    fi; \
    done
    if [ -n "$(7)" ]; then \
        echo lib/modules$(6)/modules.alias >> "$(7)"; \
        echo lib/modules$(6)/modules.dep >> "$(7)"; \