From: Nicolas Thill Date: Sat, 29 Oct 2011 15:03:56 +0000 (+0000) Subject: package/kernel: various NLS handling fixes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0a84f6a74e3e4edabf28ac15199f9b7e8ba6de19;p=openwrt%2Fstaging%2Frobimarko.git package/kernel: various NLS handling fixes * move AddDepends/nls to 001-depends.mk for proper use by other packages (closes: #7639) * make kmod-usb-core use it * fix deps generated from its arguments (as used in kmod-fs-hfsplus) SVN-Revision: 28668 --- diff --git a/package/kernel/modules/001-depends.mk b/package/kernel/modules/001-depends.mk index 73dd46b910..407f873a5e 100644 --- a/package/kernel/modules/001-depends.mk +++ b/package/kernel/modules/001-depends.mk @@ -18,6 +18,11 @@ define AddDepends/input endef +define AddDepends/nls + DEPENDS+= +kmod-nls-base $(foreach cp,$(1),+kmod-nls-$(cp)) +endef + + define SetDepends/rfkill DEPENDS:= @(TARGET_ar71xx||TARGET_brcm47xx||TARGET_s3c24xx||TARGET_x86||TARGET_gemini) endef diff --git a/package/kernel/modules/fs.mk b/package/kernel/modules/fs.mk index c1727c0a1b..913042ae97 100644 --- a/package/kernel/modules/fs.mk +++ b/package/kernel/modules/fs.mk @@ -47,7 +47,7 @@ define KernelPackage/fs-cifs KCONFIG:=CONFIG_CIFS FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko AUTOLOAD:=$(call AutoLoad,30,cifs) -$(call AddDepends/nls) + $(call AddDepends/nls) DEPENDS+= \ +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36):kmod-crypto-arc4 \ +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36):kmod-crypto-hmac \ @@ -147,7 +147,7 @@ define KernelPackage/fs-hfs KCONFIG:=CONFIG_HFS_FS FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko AUTOLOAD:=$(call AutoLoad,30,hfs) -$(call AddDepends/nls) + $(call AddDepends/nls) endef define KernelPackage/fs-hfs/description @@ -163,7 +163,7 @@ define KernelPackage/fs-hfsplus KCONFIG:=CONFIG_HFSPLUS_FS FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko AUTOLOAD:=$(call AutoLoad,30,hfsplus) -$(call AddDepends/nls,utf8) + $(call AddDepends/nls,utf8) endef define KernelPackage/fs-hfsplus/description @@ -179,7 +179,7 @@ define KernelPackage/fs-isofs KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko AUTOLOAD:=$(call AutoLoad,30,isofs) -$(call AddDepends/nls) + $(call AddDepends/nls) endef define KernelPackage/fs-isofs/description @@ -210,7 +210,7 @@ define KernelPackage/fs-msdos KCONFIG:=CONFIG_MSDOS_FS FILES:=$(LINUX_DIR)/fs/fat/msdos.ko AUTOLOAD:=$(call AutoLoad,40,msdos) -$(call AddDepends/nls) + $(call AddDepends/nls) endef define KernelPackage/fs-msdos/description @@ -294,7 +294,7 @@ define KernelPackage/fs-ntfs KCONFIG:=CONFIG_NTFS_FS FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko AUTOLOAD:=$(call AutoLoad,30,ntfs) -$(call AddDepends/nls) + $(call AddDepends/nls) endef define KernelPackage/fs-ntfs/description @@ -326,7 +326,7 @@ define KernelPackage/fs-udf FILES:=$(LINUX_DIR)/fs/udf/udf.ko AUTOLOAD:=$(call AutoLoad,30,udf) DEPENDS:=+kmod-lib-crc-itu-t -$(call AddDepends/nls) + $(call AddDepends/nls) endef define KernelPackage/fs-udf/description @@ -346,7 +346,7 @@ define KernelPackage/fs-vfat $(LINUX_DIR)/fs/fat/fat.ko \ $(LINUX_DIR)/fs/fat/vfat.ko AUTOLOAD:=$(call AutoLoad,30,fat vfat) -$(call AddDepends/nls) + $(call AddDepends/nls) endef define KernelPackage/fs-vfat/description diff --git a/package/kernel/modules/nls.mk b/package/kernel/modules/nls.mk index 5b9565dac9..28791b6b7b 100644 --- a/package/kernel/modules/nls.mk +++ b/package/kernel/modules/nls.mk @@ -1,14 +1,10 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -define AddDepends/nls - DEPENDS+= +kmod-nls-base -endef - define KernelPackage/nls-base SUBMENU:=Native Language Support TITLE:=Native Language Support diff --git a/package/kernel/modules/usb.mk b/package/kernel/modules/usb.mk index b72a346286..d5b58ffb35 100644 --- a/package/kernel/modules/usb.mk +++ b/package/kernel/modules/usb.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -14,10 +14,11 @@ USBINPUT_DIR?=input/misc define KernelPackage/usb-core SUBMENU:=$(USB_MENU) TITLE:=Support for USB - DEPENDS:=@USB_SUPPORT +kmod-nls-base + DEPENDS:=@USB_SUPPORT KCONFIG:=CONFIG_USB CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.ko AUTOLOAD:=$(call AutoLoad,20,usbcore,1) + $(call AddDepends/nls) endef define KernelPackage/usb-core/description