Changeset 21102


Ignore:
Timestamp:
2010-04-23T06:08:26+02:00 (8 years ago)
Author:
nico
Message:

package/kernel: use macros for kmod-rfkill depends

Location:
trunk/package/kernel/modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/modules/001-depends.mk

    r21101 r21102  
    1515  DEPENDS+= +!TARGET_xburst:kmod-crc16 
    1616endef 
     17 
     18 
     19define SetDepends/rfkill 
     20  DEPENDS:= @(TARGET_ar71xx||TARGET_brcm47xx||TARGET_s3c24xx||TARGET_x86) 
     21endef 
     22 
     23define AddDepends/rfkill 
     24  DEPENDS+= +(TARGET_ar71xx||TARGET_brcm47xx||TARGET_s3c24xx||TARGET_x86):kmod-rfkill 
     25 
     26endef 
  • trunk/package/kernel/modules/other.mk

    r21101 r21102  
    263263  SUBMENU:=$(OTHER_MENU) 
    264264  TITLE:=Bluetooth support 
    265   DEPENDS:=@USB_SUPPORT +kmod-usb-core +!TARGET_x86:kmod-hid \ 
    266         +(TARGET_x86||TARGET_s3c24xx||TARGET_brcm47xx||TARGET_ar71xx):kmod-rfkill 
     265  DEPENDS:=@USB_SUPPORT +kmod-usb-core +!TARGET_x86:kmod-hid 
    267266  KCONFIG:= \ 
    268267        CONFIG_BLUEZ \ 
     
    284283        CONFIG_BT_HIDP 
    285284  $(call AddDepends/crc16) 
     285  $(call AddDepends/rfkill) 
    286286endef 
    287287 
     
    855855  SUBMENU:=$(OTHER_MENU) 
    856856  TITLE:=RF switch subsystem support 
    857   DEPENDS:=@TARGET_x86||TARGET_s3c24xx||TARGET_brcm47xx||TARGET_ar71xx 
    858857  KCONFIG:= \ 
    859858    CONFIG_RFKILL \ 
     
    870869  AUTOLOAD:=$(call AutoLoad,20,rfkill rfkill-input) 
    871870endif 
     871  $(call SetDepends/rfkill) 
    872872endef 
    873873 
  • trunk/package/kernel/modules/usb.mk

    r20934 r21102  
    691691 
    692692define KernelPackage/usb-net-hso 
    693 $(call KernelPackage/usb-net/Depends,@LINUX_2_6 +!TARGET_rb532||!TARGET_avr32||!TARGET_brcm47xx||!TARGET_s3c24xx||!TARGET_ifxmips||!TARGET_atheros||!TARGET_adm5120||!TARGET_ar7||!TARGET_ppc40x||!TARGET_ixp4xx||!TARGET_rdc:kmod-rfkill) 
     693$(call KernelPackage/usb-net/Depends,@LINUX_2_6) 
    694694  TITLE:=Kernel module for Option USB High Speed Mobile Devices 
    695695  KCONFIG:=CONFIG_USB_HSO 
     
    697697        $(LINUX_DIR)/drivers/$(USBNET_DIR)/hso.$(LINUX_KMOD_SUFFIX) 
    698698  AUTOLOAD:=$(call AutoLoad,61,hso) 
     699  $(call AddDepends/rfkill) 
    699700endef 
    700701 
Note: See TracChangeset for help on using the changeset viewer.