Skip to content

kbuild: Abort build if SUBDIRS used (Close: #987575)

Ben Hutchings requested to merge benh/linux:bug987575 into sid

DKMS and module-assistant both build OOT modules as root. If they build an old OOT module that still use SUBDIRS this causes Kbuild to try building a full kernel, which obviously fails but not before deleting files from the installed headers package.

To avoid such mishaps, detect this situation and abort the build.

Merge request reports

Loading