[oe-commits] [meta-openembedded] 03/15: efivar: nvme header was renamed in linux 4.4

git at git.openembedded.org git at git.openembedded.org
Wed Mar 2 10:13:17 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit cc01115a54565398bb8ecadc7affc4bf66f9aba2
Author: Alexandru But <alexandru.but at ni.com>
AuthorDate: Tue Feb 2 19:40:02 2016 +0200

    efivar: nvme header was renamed in linux 4.4
    
    nvme.h was renamed to nvme_ioctl.h in linux uapi headers since 4.4. Patch
    taken from the gentoo repository.
    
    Signed-off-by: Alexandru But <alexandru.but at ni.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../efivar/efivar/0.21-nvme_ioctl.h.patch          | 30 ++++++++++++++++++++++
 meta-oe/recipes-extended/efivar/efivar_0.21.bb     |  3 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/efivar/efivar/0.21-nvme_ioctl.h.patch b/meta-oe/recipes-extended/efivar/efivar/0.21-nvme_ioctl.h.patch
new file mode 100644
index 0000000..221ec5a
--- /dev/null
+++ b/meta-oe/recipes-extended/efivar/efivar/0.21-nvme_ioctl.h.patch
@@ -0,0 +1,30 @@
+From ae0869b71a90bc14e67f3c917bd9c96db25c99a6 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym at gentoo.org>
+Date: Thu, 14 Jan 2016 17:02:31 -0500
+Subject: [PATCH] Workaround rename of linux/nvme.h
+
+Bug: https://bugs.gentoo.org/571548
+---
+ src/linux.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/linux.c b/src/linux.c
+index 5ebc151..e551377 100644
+--- a/src/linux.c
++++ b/src/linux.c
+@@ -22,7 +22,12 @@
+ #include <inttypes.h>
+ #include <limits.h>
+ #include <linux/ethtool.h>
++#include <linux/version.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
++#include <linux/nvme_ioctl.h>
++#else
+ #include <linux/nvme.h>
++#endif
+ #include <linux/sockios.h>
+ #include <net/if.h>
+ #include <scsi/scsi.h>
+-- 
+2.7.0
+
diff --git a/meta-oe/recipes-extended/efivar/efivar_0.21.bb b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
index fbcd1c7..692b2b7 100644
--- a/meta-oe/recipes-extended/efivar/efivar_0.21.bb
+++ b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
@@ -9,7 +9,8 @@ DEPENDS_class-target = "popt efivar-native"
 
 SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
 SRC_URI = "git://github.com/rhinstaller/efivar.git \
-           file://0001-Sometimes-the-compiler-doesn-t-like-0-as-an-initiali.patch"
+           file://0001-Sometimes-the-compiler-doesn-t-like-0-as-an-initiali.patch \
+           file://0.21-nvme_ioctl.h.patch"
 SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch"
 SRC_URI_append_class-native = " file://efivar-drop-options-not-supported-by-lower-version-gcc.patch"
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list