From 67d8f52844f1c29d2defbea35eb09b76cbe0ba7a Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Sat, 6 Sep 2025 14:59:08 +0800 Subject: [PATCH] dist: loongarch: Fix build failure from broken module deps Building the kernel RPM for the LoongArch architecture fails during the %install stage with a "broken depmod" error. The error log shows that modules like tpm_loongson.ko need unknown symbols (e.g., 'loongson_se_init_engine'), which are provided by the loongson-se.ko module. The root cause is in the filter-modules.sh script, which splits modules into 'core' and 'non-core' packages. The script incorrectly classifies loongson-se.ko (the symbol provider) as a non-core module, while its dependents remain in the core package. This creates an unresolved dependency during the build's integrity check. This patch fixes the issue by adding 'loongson-se' to the 'overrides' list for the loongarch64 architecture. This ensures the loongson-se.ko module is moved back into the kernel-core package, making its symbols available and resolving the build failure. Signed-off-by: Ming Wang --- dist/sources/filter-modules.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/sources/filter-modules.sh b/dist/sources/filter-modules.sh index 0015c2ceb526..7fd734e03069 100755 --- a/dist/sources/filter-modules.sh +++ b/dist/sources/filter-modules.sh @@ -140,6 +140,7 @@ case $ARCH in riscv64 ) ;; loongarch64 ) + overrides="$overrides loongson-se" ;; x86_64 ) ;; -- Gitee