构建 Linux 内核 4.15.0-22 脚本/Makefile.clean

构建 Linux 内核 4.15.0-22 脚本/Makefile.clean

我想在 xenial(16.04-4) 上编译 linux-source-4.15.0-22。当我使用以下命令时收到错误。

make clean distclean && make mrproper && make-kpkg clean
cp /boot/config-4.15.0-22-generic .config
make-kpkg --initrd kernel_source -j8

错误是:

tar: crypto.master: Cannot stat: No such file or directory

此后几行显示以下错误:

scripts/Makefile.clean:15: crypto/Makefile: No such file or directory
make[3]: *** No rule to make target 'cryptMakefile'. Stop
Makefile:1347: recipe for target '_clean_crepto' failed
make[2]: *** [_clean_crypto] Error2
make[2]: Laving directory '/home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/src/linux-source-4.15.17'
.
.
.

请帮我编译一下。

更多信息:

    install -p -o root -g root -m 644 ./debian/pkg/source/copyright '/home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/share/doc/linux-source-4.15.17/copyright'
echo "This was producted by kernel-package version 13.018." > \ 
    /home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/share/doc/linux-source-4-15.17/Buildinfo
r cf - $(echo * | sed -e 's/ debian//g' -e 's/\,deb//g' ) |  \
    (cd /home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/src/linux-source-4.15.17; umask 000; tar xspf - )
tar: crypto.master: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous error
(cd /home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/src/linux-source-4.15.17/include; rm -f asm ; )
install -p -o root -g root -m 644 debian/changelog /home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/src/linux-source-4.15.17/Debian.src.changelog
(cd /home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/src/linux-source-4.15.17; 
    \
    /usr/bin/make ARCH=x86_64 distclean)
make[2]: Entring directory '/home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/src/linux-source-4.15.17'
  CLEAN   .
  CLEAN   arch/x86/purgatory
scripts/Makefile.clean:15: crypto/Makefile: No such file or directory
make[3]: *** No rule to make target 'cryptMakefile'. Stop
Makefile:1347: recipe for target '_clean_crepto' failed
make[2]: *** [_clean_crypto] Error2
make[2]: Laving directory '/home/hassan/linux-source-4.15.0/debian/linux-source-4.15.17/usr/src/linux-source-4.15.17'
debian/ruleset/targets/source.mk:35: recipe for target 'debian/stamp/install/linux-source-4.15.17' failed
make[1]: *** [debian/stamp/install/linux-source-4.15.17] Error 2
make[1]: Laving directory '/home/hassan/linux-source-4.15.0'
debian/ruleset/local.mk:96: recipe for target 'kernel_source' failed
make: *** [kernel_source] Error 

答案1

我找到了一种方法,从 crypto 创建链接 crypto.master 并再次构建。

make clean distclean && make mrproper && make-kpkg clean
ln -s crypto crypto.master
cp /boot/config-4.15.0-22-generic .config
make-kpkg --initrd kernel_source -j8

相关内容