Question about compiling the linux kernel

"maria.shrivinski" <[email protected]> Sat, 16 Aug 2025 07:39:29 +0000
Newsgroups gmane.linux.debian.devel.dpkg.general
Message-ID <eVhsQK81efnL06DawFXSrlBVyEXT0aJash7-Dju2a4snLuLbL6dk_nwZW6tBtq_RLUtWDFE85F6Dsz7D5ipWzbdbhJPVvA7geSAtsDQGb5A=@proton.me>
When compiling the kernel with make -j `getconf _NPROCESSORS_ONLN` deb-pkg the resulting .deb packages are generated in the parent directory.

Is there a way to choose a specific directory where those packages will be placed?

I have researched this issue and found partial answers about modifying scripts/package/debian/rules or various makefiles, but nothing has worked so far.

Using environment variables like DESTDIR=/path/to/dir or OUTPUT_DIRECTORY=/path/to/dir with the make command also did not work.

Starting to think that this might be impossible. Anyone have an idea?
Thanks for your time!