This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Creating linux-headers linux-image for custom kernel

I am using GLSDK 6_00_00_07 and made some changes to kernel config. I am able to boot the system properly however to compile some modules I need to install linux-headers- and linux-image package for my custom kernel.

How can I build a deb package for this purpose? Can you suggest steps to create these packages with make-kpkg?

The command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- deb-pkg
works fine initially, creates all modules. But throws error during DEPMOD stage saying "dpkg-gencontrol: error: current host architecture 'armhf' does not appear in package architecture list (amd64)".