thanksThe answer is in the kernel docs at:
That file is also in the kernel source tarball.
Select one of configuration applications mentioned there, e.g. make menuconfig.
Wander through the configuration until you find the drivers that you wish to exclude, mark them out, save the configuration and compile the kernel.
It's possible to "extract" such drivers from an existing kernel if they are there as loadable modules, in which case you can unload them and/or blacklist them.