[meta-intel] [PATCH] iwlwifi: skip host install scripts
Wold, Saul
saul.wold at intel.com
Thu Aug 10 13:14:02 PDT 2017
On Thu, 2017-08-10 at 22:35 +0300, Mikko Ylinen wrote:
> The scripts run in install target are relevant (and working)
> only if the driver installation is run on the build host.
>
> To fix build errors on some setups we add a patch that
> skips the scripts completely when cross-compiling.
>
Missing Upstream-Status: Inappropriate [Cross-Compile]
(I will add it to expedite this patch)
Sau!
> Signed-off-by: Mikko Ylinen <mikko.ylinen at linux.intel.com>
> ---
> ...1-Makefile.real-skip-host-install-scripts.patch | 34
> ++++++++++++++++++++++
> common/recipes-kernel/iwlwifi/iwlwifi_git.bb | 5 ++--
> 2 files changed, 37 insertions(+), 2 deletions(-)
> create mode 100644 common/recipes-kernel/iwlwifi/iwlwifi/0001-
> Makefile.real-skip-host-install-scripts.patch
>
> 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
> new file mode 100644
> index 0000000..8169f19
> --- /dev/null
> +++ b/common/recipes-kernel/iwlwifi/iwlwifi/0001-Makefile.real-skip-
> host-install-scripts.patch
> @@ -0,0 +1,34 @@
> +From f69ff2fd27903ee052309179271f708d720a2f94 Mon Sep 17 00:00:00
> 2001
> +From: Mikko Ylinen <mikko.ylinen at linux.intel.com>
> +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.
> +
> +Signed-off-by: Mikko Ylinen <mikko.ylinen at linux.intel.com>
> +---
> + 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_git.bb
> b/common/recipes-kernel/iwlwifi/iwlwifi_git.bb
> index c0bf3d3..77bd2f5 100644
> --- a/common/recipes-kernel/iwlwifi/iwlwifi_git.bb
> +++ b/common/recipes-kernel/iwlwifi/iwlwifi_git.bb
> @@ -1,5 +1,5 @@
> -SUMMARY = "Intel Wireless LinuxCore 24 kernel driver"
> -DESCRIPTION = "Intel Wireless LinuxCore 24 kernel driver"
> +SUMMARY = "Intel Wireless LinuxCore kernel driver"
> +DESCRIPTION = "Intel Wireless LinuxCore kernel driver"
> SECTION = "kernel"
> LICENSE = "GPLv2"
>
> @@ -11,6 +11,7 @@ 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}"
> --
> 2.1.4
>
More information about the meta-intel
mailing list