Build linux kernel 4.15.0-22 scripts/Makefile.clean

If it doesn't relate to Debian, but you still want to share it, please do it here

Build linux kernel 4.15.0-22 scripts/Makefile.clean

Postby pouralijan » 2018-06-13 09:19

I want to compile linux-source-4.15.0-22 on xenial(16.04-4). When i use the following command I have received an error.

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


The error is:

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

Some lines after that the following error is announced:

Code: Select all
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'
    .
    .
    .



Please help me to compile this.

More information:

Code: Select all
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
pouralijan
 
Posts: 2
Joined: 2018-06-13 09:16

Re: Build linux kernel 4.15.0-22 scripts/Makefile.clean

Postby pouralijan » 2018-06-13 11:26

Hi,
I have found a way, create link crypto.master from crypto and build again.

Code: Select all
    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
pouralijan
 
Posts: 2
Joined: 2018-06-13 09:16


Return to Offtopic

Who is online

Users browsing this forum: bedtime and 4 guests

fashionable