Furthermore, you may look at my personal fork [1] and view what changes are done beyond Debian.
[1] https://git.krd.sh/krd/linux SY, Konstantin Demin вт, 28 окт. 2025 г., 23:08 Konstantin Demin <[email protected]>: > Hello! > > I'd suggest using something like sbuild to compile Debian packages. > This doesn't answer how to place resulting .deb-s into a particular > directory instead of parent one but likely answers how to build Debian > packages in general. Also, "sbuild" isn't a single variant to build > packages - there're many alternatives. > > I'm personally using my own wrapper around sbuild [1] to build > packages. Saying that some Debian source package is exported into > directory /tmp/superb-soft/src/ I'll have resulting packages in > /tmp/superb-soft/all/ , /tmp/superb-soft/{arch}/ and > /tmp/superb-soft/{arch}-debug/. > > Also, I'd recommend spending about a week to do a personal fork of > Debian source package named "linux" [2], tweak your personal things > and then build your Debian packages with Linux > kernel/sources/headers/tools which are compatible with existing > Debian/Linux infrastructure packages. However, syncing changes from > Debian may be painful sometimes (this is the way). > > [1] > https://git.krd.sh/krd/dotfiles/src/branch/main/.config/dotfiles/scripts/krd-sbuild > [2] https://salsa.debian.org/kernel-team/linux > > сб, 16 авг. 2025 г. в 10:40, maria.shrivinski <[email protected] > >: > > > > 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! > > > > > -- > SY, > Konstantin Demin >

