From e3990dc70c5b9c7eea165a7eea8c9d62ba9b7693 Mon Sep 17 00:00:00 2001 From: California Sullivan Date: Thu, 31 Aug 2017 17:11:50 -0700 Subject: iwlwifi: rename to backport-iwlwifi This is the proper name of the repo. Signed-off-by: California Sullivan --- ...1-Makefile.real-skip-host-install-scripts.patch | 36 ++++++++++++++++++++ .../iwlwifi/backport-iwlwifi/iwlwifi.conf | 12 +++++++ .../recipes-kernel/iwlwifi/backport-iwlwifi_git.bb | 39 ++++++++++++++++++++++ ...1-Makefile.real-skip-host-install-scripts.patch | 36 -------------------- common/recipes-kernel/iwlwifi/iwlwifi/iwlwifi.conf | 12 ------- common/recipes-kernel/iwlwifi/iwlwifi_git.bb | 39 ---------------------- 6 files changed, 87 insertions(+), 87 deletions(-) create mode 100644 common/recipes-kernel/iwlwifi/backport-iwlwifi/0001-Makefile.real-skip-host-install-scripts.patch create mode 100644 common/recipes-kernel/iwlwifi/backport-iwlwifi/iwlwifi.conf create mode 100644 common/recipes-kernel/iwlwifi/backport-iwlwifi_git.bb delete mode 100644 common/recipes-kernel/iwlwifi/iwlwifi/0001-Makefile.real-skip-host-install-scripts.patch delete mode 100644 common/recipes-kernel/iwlwifi/iwlwifi/iwlwifi.conf delete mode 100644 common/recipes-kernel/iwlwifi/iwlwifi_git.bb diff --git a/common/recipes-kernel/iwlwifi/backport-iwlwifi/0001-Makefile.real-skip-host-install-scripts.patch b/common/recipes-kernel/iwlwifi/backport-iwlwifi/0001-Makefile.real-skip-host-install-scripts.patch new file mode 100644 index 00000000..1d4137ba --- /dev/null +++ b/common/recipes-kernel/iwlwifi/backport-iwlwifi/0001-Makefile.real-skip-host-install-scripts.patch @@ -0,0 +1,36 @@ +From f69ff2fd27903ee052309179271f708d720a2f94 Mon Sep 17 00:00:00 2001 +From: Mikko Ylinen +Date: Thu, 10 Aug 2017 21:12:51 +0300 +Subject: [PATCH] Makefile.real: skip host install scripts + +The scripts run in install target are relevant (and working) +only if the driver installation is run on the build host. + +Skip the scripts when cross-compiling. + +Upstream-Status: Inappropriate [Cross-Compile] + +Signed-off-by: Mikko Ylinen +--- + Makefile.real | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/Makefile.real b/Makefile.real +index ba09f99..f5075de 100644 +--- a/Makefile.real ++++ b/Makefile.real +@@ -104,11 +104,6 @@ install: modules + @$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_DIR) \ + INSTALL_MOD_DIR=$(KMODDIR) $(KMODPATH_ARG) \ + modules_install +- @./scripts/blacklist.sh $(KLIB)/ $(KLIB)/$(KMODDIR) +- @./scripts/compress_modules.sh $(KLIB)/$(KMODDIR) +- @./scripts/check_depmod.sh +- @/sbin/depmod -a +- @./scripts/update-initramfs.sh $(KLIB) + @echo + @echo Your backported driver modules should be installed now. + @echo Reboot. +-- +2.1.4 + diff --git a/common/recipes-kernel/iwlwifi/backport-iwlwifi/iwlwifi.conf b/common/recipes-kernel/iwlwifi/backport-iwlwifi/iwlwifi.conf new file mode 100644 index 00000000..a0e5f6ff --- /dev/null +++ b/common/recipes-kernel/iwlwifi/backport-iwlwifi/iwlwifi.conf @@ -0,0 +1,12 @@ +# /etc/modprobe.d/iwlwifi.conf +# iwlwifi will dynamically load either iwldvm or iwlmvm depending on the +# microcode file installed on the system. When removing iwlwifi, first +# remove the iwl?vm module and then iwlwifi. +remove iwlwifi (/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm16 -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) && /sbin/modprobe -r mac80211 + +#options iwlwifi lar_disable=1 +#options iwlwifi nvm_file="nvm-sfp-b2-open.bin" +options iwlmvm power_scheme=1 + +# PCI BUS + diff --git a/common/recipes-kernel/iwlwifi/backport-iwlwifi_git.bb b/common/recipes-kernel/iwlwifi/backport-iwlwifi_git.bb new file mode 100644 index 00000000..31642901 --- /dev/null +++ b/common/recipes-kernel/iwlwifi/backport-iwlwifi_git.bb @@ -0,0 +1,39 @@ +SUMMARY = "Intel Wireless LinuxCore kernel driver" +DESCRIPTION = "Intel Wireless LinuxCore kernel driver" +SECTION = "kernel" +LICENSE = "GPLv2" + +REQUIRED_DISTRO_FEATURES = "wifi" + +LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +inherit module + +PV = "30" +SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi;branch=release/LinuxCore${PV}" +SRC_URI += "file://0001-Makefile.real-skip-host-install-scripts.patch" +SRC_URI += "file://iwlwifi.conf" + +SRCREV = "${AUTOREV}" + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE = "INSTALL_MOD_PATH=${D} KLIB_BUILD=${KBUILD_OUTPUT}" + +do_configure() { + CC=gcc CFLAGS= LDFLAGS= make defconfig-iwlwifi-public KLIB_BUILD=${KBUILD_OUTPUT} +} + +MODULES_INSTALL_TARGET="install" +do_install_append() { + ## install configs and service scripts + install -d ${D}${sysconfdir}/modprobe.d + install -m 0644 ${WORKDIR}/iwlwifi.conf ${D}${sysconfdir}/modprobe.d +} + +SYSTEMD_AUTO_ENABLE_${PN} = "enable" + +RDEPENDS_${PN} = "linux-firmware-iwlwifi" + +KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " iwlwifi" +KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " iwlwifi" diff --git a/common/recipes-kernel/iwlwifi/iwlwifi/0001-Makefile.real-skip-host-install-scripts.patch b/common/recipes-kernel/iwlwifi/iwlwifi/0001-Makefile.real-skip-host-install-scripts.patch deleted file mode 100644 index 1d4137ba..00000000 --- a/common/recipes-kernel/iwlwifi/iwlwifi/0001-Makefile.real-skip-host-install-scripts.patch +++ /dev/null @@ -1,36 +0,0 @@ -From f69ff2fd27903ee052309179271f708d720a2f94 Mon Sep 17 00:00:00 2001 -From: Mikko Ylinen -Date: Thu, 10 Aug 2017 21:12:51 +0300 -Subject: [PATCH] Makefile.real: skip host install scripts - -The scripts run in install target are relevant (and working) -only if the driver installation is run on the build host. - -Skip the scripts when cross-compiling. - -Upstream-Status: Inappropriate [Cross-Compile] - -Signed-off-by: Mikko Ylinen ---- - Makefile.real | 5 ----- - 1 file changed, 5 deletions(-) - -diff --git a/Makefile.real b/Makefile.real -index ba09f99..f5075de 100644 ---- a/Makefile.real -+++ b/Makefile.real -@@ -104,11 +104,6 @@ install: modules - @$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_DIR) \ - INSTALL_MOD_DIR=$(KMODDIR) $(KMODPATH_ARG) \ - modules_install -- @./scripts/blacklist.sh $(KLIB)/ $(KLIB)/$(KMODDIR) -- @./scripts/compress_modules.sh $(KLIB)/$(KMODDIR) -- @./scripts/check_depmod.sh -- @/sbin/depmod -a -- @./scripts/update-initramfs.sh $(KLIB) - @echo - @echo Your backported driver modules should be installed now. - @echo Reboot. --- -2.1.4 - diff --git a/common/recipes-kernel/iwlwifi/iwlwifi/iwlwifi.conf b/common/recipes-kernel/iwlwifi/iwlwifi/iwlwifi.conf deleted file mode 100644 index a0e5f6ff..00000000 --- a/common/recipes-kernel/iwlwifi/iwlwifi/iwlwifi.conf +++ /dev/null @@ -1,12 +0,0 @@ -# /etc/modprobe.d/iwlwifi.conf -# iwlwifi will dynamically load either iwldvm or iwlmvm depending on the -# microcode file installed on the system. When removing iwlwifi, first -# remove the iwl?vm module and then iwlwifi. -remove iwlwifi (/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm16 -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) && /sbin/modprobe -r mac80211 - -#options iwlwifi lar_disable=1 -#options iwlwifi nvm_file="nvm-sfp-b2-open.bin" -options iwlmvm power_scheme=1 - -# PCI BUS - diff --git a/common/recipes-kernel/iwlwifi/iwlwifi_git.bb b/common/recipes-kernel/iwlwifi/iwlwifi_git.bb deleted file mode 100644 index 31642901..00000000 --- a/common/recipes-kernel/iwlwifi/iwlwifi_git.bb +++ /dev/null @@ -1,39 +0,0 @@ -SUMMARY = "Intel Wireless LinuxCore kernel driver" -DESCRIPTION = "Intel Wireless LinuxCore kernel driver" -SECTION = "kernel" -LICENSE = "GPLv2" - -REQUIRED_DISTRO_FEATURES = "wifi" - -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" - -inherit module - -PV = "30" -SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi;branch=release/LinuxCore${PV}" -SRC_URI += "file://0001-Makefile.real-skip-host-install-scripts.patch" -SRC_URI += "file://iwlwifi.conf" - -SRCREV = "${AUTOREV}" - -S = "${WORKDIR}/git" - -EXTRA_OEMAKE = "INSTALL_MOD_PATH=${D} KLIB_BUILD=${KBUILD_OUTPUT}" - -do_configure() { - CC=gcc CFLAGS= LDFLAGS= make defconfig-iwlwifi-public KLIB_BUILD=${KBUILD_OUTPUT} -} - -MODULES_INSTALL_TARGET="install" -do_install_append() { - ## install configs and service scripts - install -d ${D}${sysconfdir}/modprobe.d - install -m 0644 ${WORKDIR}/iwlwifi.conf ${D}${sysconfdir}/modprobe.d -} - -SYSTEMD_AUTO_ENABLE_${PN} = "enable" - -RDEPENDS_${PN} = "linux-firmware-iwlwifi" - -KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " iwlwifi" -KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " iwlwifi" -- cgit v1.2.3-54-g00ecf