my kernel repo is LazyCat-xiao/zdyz157-1.3 (github.com).
build logs:
make[5]: Entering directory '/home/lazy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-stm32mp1/linux-github_com_LazyCat_xiao_zdyz157_1_3_git-HEAD' HOSTCC scripts/extract-cert /home/lazy/openwrt/staging_dir/host/lib/libcrypto.a(libcrypto_la-eng_all.o): In function `ENGINE_load_builtin_engines': eng_all.c:(.text+0x30): undefined reference to `pthread_once' /home/lazy/openwrt/staging_dir/host/lib/libcrypto.a(libcrypto_la-err.o): In function `ERR_load_ERR_strings': err.c:(.text+0xb4e): undefined reference to `pthread_once' /home/lazy/openwrt/staging_dir/host/lib/libcrypto.a(libcrypto_la-err_all.o): In function `ERR_load_crypto_strings': err_all.c:(.text+0xaf): undefined reference to `pthread_once' /home/lazy/openwrt/staging_dir/host/lib/libcrypto.a(libcrypto_la-c_all.o): In function `OpenSSL_add_all_ciphers': c_all.c:(.text+0x9df): undefined reference to `pthread_once' /home/lazy/openwrt/staging_dir/host/lib/libcrypto.a(libcrypto_la-c_all.o): In function `OpenSSL_add_all_digests': c_all.c:(.text+0x9ff): undefined reference to `pthread_once' /home/lazy/openwrt/staging_dir/host/lib/libcrypto.a(libcrypto_la-crypto_init.o):crypto_init.c:(.text+0x51): more undefined references to `pthread_once' follow collect2: error: ld returned 1 exit status scripts/Makefile.host:107: recipe for target 'scripts/extract-cert' failed make[6]: *** [scripts/extract-cert] Error 1 Makefile:1096: recipe for target 'scripts' failed make[5]: *** [scripts] Error 2 make[5]: Leaving directory '/home/lazy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-stm32mp1/linux-github_com_LazyCat_xiao_zdyz157_1_3_git-HEAD' Makefile:25: recipe for target '/home/lazy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-stm32mp1/linux-github_com_LazyCat_xiao_zdyz157_1_3_git-HEAD/.modules' failed make[4]: *** [/home/lazy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-stm32mp1/linux-github_com_LazyCat_xiao_zdyz157_1_3_git-HEAD/.modules] Error 2 make[4]: Leaving directory '/home/lazy/openwrt/target/linux/stm32mp1' Makefile:11: recipe for target 'compile' failed make[3]: *** [compile] Error 2 make[3]: Leaving directory '/home/lazy/openwrt/target/linux' time: target/linux/compile#0.58#0.77#1.33 ERROR: target/linux failed to build.
i dont know how it make. i edit kernel_dir/scripts/Makefile add -lpthread and built it success!