config
config
I have been trying to recompile the Linux kernel in kali but when I get do the <make menuconfig> command it throws me this error: <make menuconfig make: *** No rule to make target 'menuconfig'. Stop.> I have been following instructions from the Kali Linux site and have changed the command for the new release of the kernel: https://www.kali.org/docs/development/re...pendencies
I switched the version from 4.9 to 6.0 and moved it into the .config folder—it was pretty straightforward.
It seems you meant to clarify that the path could be copied as well (/.config).
I’m not sure I grasp your point. Could you clarify what you’re referring to?
In short, don't keep your kernel settings in /Personally. You can pull tarballs into /usr/src/ and run tasks from /usr/src/linux[whatever] as root, which is acceptable. You're setting up the lowest level of your system, and running make as root makes sense—some modules rely on finding kernels at /usr/src/linux. The Makefile you see is usually located in the root of your project, guiding make on how to build specific parts. When compiling a kernel, targets like "[something]config" handle the setup before compilation. If make says a target is missing, it's likely due to typos or being in the wrong directory. The advice you're getting is useful but lacks context; it doesn't explain why you're packaging the kernel this way. Also, moving /boot/config-[version] to /usr/src/linux/.config might not be ideal, as zcat will always use the current config and reduce errors. Just confirm you're in the correct kernel source before making changes.