kernel: declare AddDepends in pcmcia.mk
Stack repeated definitions to easy further additions. Signen-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
This commit is contained in:
parent
a7cacc9735
commit
87bc410f7c
1 changed files with 13 additions and 7 deletions
|
@ -28,13 +28,19 @@ endef
|
||||||
|
|
||||||
$(eval $(call KernelPackage,pcmcia-core))
|
$(eval $(call KernelPackage,pcmcia-core))
|
||||||
|
|
||||||
define KernelPackage/pcmcia-rsrc
|
|
||||||
|
define AddDepends/pcmcia
|
||||||
SUBMENU:=$(PCMCIA_MENU)
|
SUBMENU:=$(PCMCIA_MENU)
|
||||||
|
DEPENDS+=kmod-pcmcia-core $(1)
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define KernelPackage/pcmcia-rsrc
|
||||||
TITLE:=PCMCIA resource support
|
TITLE:=PCMCIA resource support
|
||||||
DEPENDS:=kmod-pcmcia-core
|
|
||||||
KCONFIG:=CONFIG_PCCARD_NONSTATIC=y
|
KCONFIG:=CONFIG_PCCARD_NONSTATIC=y
|
||||||
FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko
|
FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko
|
||||||
AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc)
|
AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc)
|
||||||
|
$(call AddDepends/pcmcia)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/pcmcia-rsrc/description
|
define KernelPackage/pcmcia-rsrc/description
|
||||||
|
@ -45,26 +51,26 @@ $(eval $(call KernelPackage,pcmcia-rsrc))
|
||||||
|
|
||||||
|
|
||||||
define KernelPackage/pcmcia-yenta
|
define KernelPackage/pcmcia-yenta
|
||||||
SUBMENU:=$(PCMCIA_MENU)
|
|
||||||
TITLE:=yenta socket driver
|
TITLE:=yenta socket driver
|
||||||
DEPENDS:=kmod-pcmcia-rsrc
|
|
||||||
KCONFIG:=CONFIG_YENTA
|
KCONFIG:=CONFIG_YENTA
|
||||||
FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
|
FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
|
||||||
AUTOLOAD:=$(call AutoLoad,41,yenta_socket)
|
AUTOLOAD:=$(call AutoLoad,41,yenta_socket)
|
||||||
|
DEPENDS:=+kmod-pcmcia-rsrc
|
||||||
|
$(call AddDepends/pcmcia)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call KernelPackage,pcmcia-yenta))
|
$(eval $(call KernelPackage,pcmcia-yenta))
|
||||||
|
|
||||||
|
|
||||||
define KernelPackage/pcmcia-serial
|
define KernelPackage/pcmcia-serial
|
||||||
SUBMENU:=$(PCMCIA_MENU)
|
|
||||||
TITLE:=Serial devices support
|
TITLE:=Serial devices support
|
||||||
DEPENDS:=kmod-pcmcia-core +kmod-serial-8250
|
|
||||||
KCONFIG:= \
|
KCONFIG:= \
|
||||||
CONFIG_PCMCIA_SERIAL_CS \
|
CONFIG_PCMCIA_SERIAL_CS \
|
||||||
CONFIG_SERIAL_8250_CS
|
CONFIG_SERIAL_8250_CS
|
||||||
FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
|
FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
|
||||||
AUTOLOAD:=$(call AutoLoad,45,serial_cs)
|
AUTOLOAD:=$(call AutoLoad,45,serial_cs)
|
||||||
|
DEPENDS:=+kmod-serial-8250
|
||||||
|
$(call AddDepends/pcmcia)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/pcmcia-serial/description
|
define KernelPackage/pcmcia-serial/description
|
||||||
|
|
Loading…
Reference in a new issue