/tmp/ccZ6SCYe.o:在函数‘main’中: extract-cert.c:(.text.startup+0x25):对‘OPENSSL_init_crypto’未定义的引用 extract-cert.c:(.text.startup+0x31):对‘OPENSSL_init_crypto’未定义的引用 collect2: error: ld returned 1 exit status HOSTLD scripts/dtc/dtc HOSTLD scripts/mod/modpost scripts/Makefile.host:90: recipe for target ‘scripts/extract-cert’ failed make[1]: *** [scripts/extract-cert] Error 1 make[1]: *** 正在等待未完成的任务… Makefile:1187: recipe for target ‘scripts’ failed make: *** [scripts] Error 2 Build kernel failed!
按照sdk 里的文档Quick_start_linux.pdf 安装所有依赖工具和库。编译多半没问题,但是可能遇到这个问题。解决办法:在kernel/scripts/Makefile中如下修改: HOSTLDLIBS_sign-file = -L /usr/local/lib/ -lcrypto HOSTLDLIBS_extract-cert = -L /usr/local/lib/ -lcrypto