Changeset 48160


Ignore:
Timestamp:
2016-01-09T17:19:21+01:00 (21 months ago)
Author:
wigyori
Message:

sunxi: prep module support options for 4.4

Signed-off-by: Zoltan HERPAI <wigyori@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/sunxi/modules.mk

    r46704 r48160  
    11# 
    2 # Copyright (C) 2013 OpenWrt.org 
     2# Copyright (C) 2013-2016 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    2626    SUBMENU:=$(OTHER_MENU) 
    2727    TITLE:=Sunxi SoC built-in IR support (A20) 
    28     DEPENDS:=@TARGET_sunxi +kmod-input-core 
     28    DEPENDS:=@TARGET_sunxi @!LINUX_4_4 +kmod-input-core  
    2929    $(call AddDepends/rtc) 
    3030    KCONFIG:= \ 
     
    4646    SUBMENU:=$(OTHER_MENU) 
    4747    TITLE:=AllWinner Security ID fuse support 
    48     DEPENDS:=@TARGET_sunxi 
     48    DEPENDS:=@TARGET_sunxi @!LINUX_4_4 
    4949    KCONFIG:= \ 
    5050        CONFIG_EEPROM_SUNXI_SID 
     
    7777  SUBMENU:=$(NETWORK_DEVICES_MENU) 
    7878  TITLE:=AllWinner EMAC Ethernet support 
    79   DEPENDS:=@TARGET_sunxi 
     79  DEPENDS:=@TARGET_sunxi +LINUX_4_4:kmod-of-mdio +LINUX_4_4:kmod-libphy 
    8080  KCONFIG:=CONFIG_SUN4I_EMAC 
    8181  FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko 
     
    105105  TITLE:=AllWinner built-in SoC sound support 
    106106  KCONFIG:= \ 
    107         CONFIG_SND_SUNXI_SOC_CODEC 
    108   FILES:= \ 
    109         $(LINUX_DIR)/sound/soc/sunxi/sunxi-codec.ko 
     107        CONFIG_SND_SUNXI_SOC_CODEC \ 
     108        CONFIG_SND_SUN4I_CODEC 
     109ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,4.4.0)),1) 
     110  FILES+=$(LINUX_DIR)/sound/soc/sunxi/sunxi-codec.ko 
    110111  AUTOLOAD:=$(call AutoLoad,65,sunxi-codec) 
    111   DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core @LINUX_4_1 
     112endif 
     113ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,4.4.0)),1) 
     114  FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-codec.ko 
     115  AUTOLOAD:=$(call AutoLoad,65,sun4i-codec) 
     116endif 
     117  DEPENDS:=@TARGET_sunxi +kmod-sound-soc-core 
    112118  $(call AddDepends/sound) 
    113119endef 
Note: See TracChangeset for help on using the changeset viewer.