Where and how do I download this file?: /lib/modules/5.10.0-kali7-amd64/build/scripts/kconfig/mconf
make[1]: *** [Makefile:378: /lib/modules/5.10.0-kali7-amd64/build/scripts/kconfig/mconf] Error 2

I already invoked: apt-get install --reinstall linux-source linux-headers-$(uname -r)
That command does not download all the required kconfig and mconf files.

I am trying to compile a driver and those files are missing.
Does kali linux [apt-get install linux source] not distribute those files?
If so, then where do I download those kali files?

I have exhausted my internet scraping abilities of find any helpful information.
I am a 20 year computer science veteran, but this one stumped me.


# Things I have tried

1. I read the documentation on how to compile a kernel.
I saw nothing wacky.
I have compiled many different bsd and linux kernels (over my wiser age).
cat << HEREDOC >> /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

2. I [apt-get source linux-source-$(uname -r)], but as you know, that only downloads the most recent source code and it does not match my kali kernel runtime version numbering; it also does not install [ln -s]|softlinks||hardlinks to directory [/lib/modules].

3. I tried to grep the git repo: https://salsa.debian.org/qa/distro-tracker

4. I downloaded kernel.org source code --depth=1; it had the files in there.

5. I scraped these directories in hopes to find those files: [/usr/src] and [/lib/modules]

6. I was wondering if the softlinks|hardlinks were missing in /lib/modules, so I scraped everything looking for those files.
I found these files, but I am guessing, kali uses a different [directory tree] than debian.
d fi_cmd /lib/modules /usr/src -basename @ 'mconf|kconfig'

Any help is appreciated and I can write my progress on the kali board.

P.S. If this does not work, I guess I have to reprogram the [make] files to point to those unusal paths (that is way different than debian and other linux distributions).
Is there any documentation anywhere, to set the directory tree of /lib/modules up (like the standard debian paths).