I am compiling the latest kernel cloned from Linus's git repository for a challenge. Here are the steps I followed,
1. Installed cross compilation tools
sudo apt-get install git build-essential kernel-package fakeroot libncurses5-dev
2. cloned the latest git repository
$ git clone https://github.com/torvalds/linux.git
3. Copied the current build configuration to the root of the source tree and updated the configuration file.
yes '' | make oldconfig
4. make clean
5. Made the linux image and header .deb files
make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-custom
After a few minutes of compilation, it shows the error
dpkg-genchanges: warning: package linux-firmware-image-4.2.0-rc3-custom listed in files list but not in control info
dpkg-genchanges: warning: package linux-headers-4.2.0-rc3-custom listed in files list but not in control info
dpkg-genchanges: warning: package linux-headers-4.3.0-rc1-eudyptula listed in files list but not in control info
dpkg-genchanges: warning: package linux-image-4.2.0-rc3-custom-dbg listed in files list but not in control info
dpkg-genchanges: warning: package linux-image-4.3.0-rc1-eudyptula listed in files list but not in control info
dpkg-genchanges: warning: package linux-image-4.2.0-rc3-custom listed in files list but not in control info
dpkg-genchanges: warning: package linux-image-4.3.0-rc1-eudyptula-dbg listed in files list but not in control info
dpkg-genchanges: warning: package linux-firmware-image-4.3.0-rc1-eudyptula listed in files list but not in control info
dpkg-genchanges: error: package linux-image-4.2.0-rc3-custom-dbg has section kernel in control file but debug in files list
scripts/package/Makefile:91: recipe for target 'deb-pkg' failed
make[1]: *** [deb-pkg] Error 255
Makefile:1226: recipe for target 'deb-pkg' failed
make: *** [deb-pkg] Error 2
I think the error has occurred in the making of .deb package. I really don't understand the error message
linux-image-4.2.0-rc3-custom-dbg has section kernel in control file but debug in files list
What does it really means?. Please help!