On Fri, Sep 10, 2004 at 12:09:50PM +0100, Russell King wrote: > On Fri, Sep 10, 2004 at 12:08:19PM +0100, Luke Kenneth Casson Leighton wrote: > > hi, > > > > has anyone noticed that it's impossible (without hacking) to remove > > CONFIG_SERIAL? > > > > remove the entries or set all SERIAL config entries to "n"... > > hit make... > > CONFIG_SERIAL_8250 gets set to "m", CONFIG_SERIAL gets set to "y"! > > > > seeerrrriiialllll muuuusssstttt dieeeeeee kill kill kill. > > No idea - you've given very little information to go on. I doubt > you're building an x86 kernel... Mind giving some clues and maybe > a copy of your .config file? x86 kernel, debian default config with legacy stuff like sure. > I regularly moan about overuse of the Kconfig "select" statement > and at a guess you've just been bitten by this. Feel free to moan > like merry hell about it. bitch, bitch, bitch. > > there are 64 serial devices created. > > Why are you seeing 64 serial devices created? i don't know. but also 64 ttyNN entries are being created. presumably this is because of.... ah yes, here we go: include/linux/tty.h MAX_NR_USER_CONSOLES 63 with an indication "serial consoles must start at 64". > You should only see > about 16 or so in most sane configurations. well i've managed to remove enough config options to stop /dev/ttyS** entries from actually happening. but it hasn't stopped CONFIG_SERIAL from actually being defined by the Kconfig stuff. so whilst i have a "solution" there's still legacy code being compiled, plus i still don't have a solution for 64 ttys (62 of which are totally unnecessary) being created by udev. l.