]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Add support for excluding a directory
authorSaul Wold <saul.wold@windriver.com>
Thu, 31 Mar 2022 21:56:28 +0000 (14:56 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 2 Apr 2022 04:44:15 +0000 (21:44 -0700)
commitf50e2d67575ac5f256fb853ca9d29aeac92d9a57
tree5572de35e561be93dd5f8169d33b47e435218597
parent7089386eeff8f6942456159ee9a7296403631ffd
depmod: Add support for excluding a directory

This adds support to depmod to enable a new exclude directive in
the depmod.d/*.conf configuration file. Currently depmod
already excludes directories named source or build. This change
will allow additional directories like .debug to be excluded also
via a new exclude directive.

depmod.d/exclude.conf example:
exclude .debug

Signed-off-by: Saul Wold <saul.wold@windriver.com>
[ Fix warnings and make should_exclude_dir() return bool ]
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
man/depmod.d.xml
tools/depmod.c