kernel: Report all modules not found at once

Change-Id: Ic46f72989b2dd5de574cc33b7e9f7499323d9bb0
This commit is contained in:
Nikita Savchenko
2025-06-07 16:22:03 +00:00
committed by Bruno Martins
parent f4a6ff209c
commit 722d1ce1be

View File

@@ -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)"; \