From 60c270394755c36d3cf2d1df61b3795521e1caa0 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Tue, 4 Apr 2017 11:34:06 -0700 Subject: cryptodev-module: Fix the check A case was found where the PREFERRED_VERSION_linux-intel was not set even with linix-intel being the PREFERRED_PROVIDER and this code fails. So, just check for linux-intel now, we know until the next LTS version comes out that this kernel will have the API change patch. A more detailed check may need to be added. Signed-off-by: Saul Wold --- common/recipes-kernel/cryptodev/cryptodev-module_%.bbappend | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/recipes-kernel/cryptodev/cryptodev-module_%.bbappend b/common/recipes-kernel/cryptodev/cryptodev-module_%.bbappend index cf4863ca..91362290 100644 --- a/common/recipes-kernel/cryptodev/cryptodev-module_%.bbappend +++ b/common/recipes-kernel/cryptodev/cryptodev-module_%.bbappend @@ -1,9 +1,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" python() { - if ((d.getVar("PREFERRED_PROVIDER_virtual/kernel").startswith("linux-intel")) and - (d.getVar("PREFERRED_VERSION_linux-intel").startswith("4.9"))): + # When we add more kernels for linux-intel, we may have to add a Version check + if (d.getVar("PREFERRED_PROVIDER_virtual/kernel") == "linux-intel"): src_uri = d.getVar("SRC_URI") d.setVar("SRC_URI", src_uri + - " file://0001-zc-Force-4.10-get_user_pages_remote-API.patch") + " file://0001-zc-Force-4.10-get_user_pages_remote-API.patch") } -- cgit v1.2.3-54-g00ecf