lkml.org 
[lkml]   [2005]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 15/15] misc: Configurable support for PCI serial ports
    Configurable support for PCI serial devices

    This allows disabling support for _non_-legacy PCI serial devices.

    text data bss dec hex filename
    3332260 529420 190812 4052492 3dd60c vmlinux
    3327944 523060 190812 4041816 3dac58 vmlinux-pci-serial

    Signed-off-by: Matt Mackall <mpm@selenic.com>

    Index: 2.6.14-misc/drivers/serial/Makefile
    ===================================================================
    --- 2.6.14-misc.orig/drivers/serial/Makefile 2005-10-27 17:02:08.000000000 -0700
    +++ 2.6.14-misc/drivers/serial/Makefile 2005-11-09 11:27:28.000000000 -0800
    @@ -8,7 +8,7 @@ serial-8250-y :=
    serial-8250-$(CONFIG_SERIAL_8250_ACPI) += 8250_acpi.o
    serial-8250-$(CONFIG_PNP) += 8250_pnp.o
    serial-8250-$(CONFIG_GSC) += 8250_gsc.o
    -serial-8250-$(CONFIG_PCI) += 8250_pci.o
    +serial-8250-$(CONFIG_SERIAL_PCI) += 8250_pci.o
    serial-8250-$(CONFIG_HP300) += 8250_hp300.o

    obj-$(CONFIG_SERIAL_CORE) += serial_core.o
    Index: 2.6.14-misc/init/Kconfig
    ===================================================================
    --- 2.6.14-misc.orig/init/Kconfig 2005-11-09 11:27:26.000000000 -0800
    +++ 2.6.14-misc/init/Kconfig 2005-11-09 11:27:28.000000000 -0800
    @@ -473,6 +473,15 @@ config BOOTFLAG
    help
    This enables support for the Simple Bootflag Specification.

    +config SERIAL_PCI
    + depends PCI && SERIAL_8250
    + default y
    + bool "Enable standard PCI serial support" if EMBEDDED
    + help
    + This builds standard PCI serial support. You may be able to disable
    + this feature if you are only need legacy serial support.
    + Saves about 9K.
    +
    endmenu # General setup

    config TINY_SHMEM
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-11-11 09:40    [W:0.022 / U:0.748 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site