[oe] [meta-oe][PATCH] cpuid: Fix build with glibc 2.28+

avinash.reddy.palleti at intel.com avinash.reddy.palleti at intel.com
Thu Aug 16 18:48:06 UTC 2018


From: Avinash Reddy Palleti <avinash.reddy.palleti at intel.com>

Include sys/sysmacros.h for cpuid.c

Signed-off-by: Avinash Reddy Palleti <avinash.reddy.palleti at intel.com>
---
 meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb   |  3 ++-
 ...ix-Add-sys-sysmacros.h-to-fix-build-issue.patch | 24 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch

diff --git a/meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb b/meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb
index 7a70f75..ff03f94 100644
--- a/meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb
+++ b/meta-oe/recipes-devtools/cpuid/cpuid_20170122.bb
@@ -4,7 +4,8 @@ from the CPUID instruction, and also determines the exact model of CPU(s). \
 It supports Intel, AMD, and VIA CPUs, as well as older Transmeta, Cyrix, \
 UMC, NexGen, Rise, and SiS CPUs"
 LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+					file://0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch"
 
 SRC_URI = "http://www.etallen.com/${BPN}/${BP}.src.tar.gz"
 SRC_URI[md5sum] = "1c46a6662626c5a6eaca626f23a5a7d7"
diff --git a/meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch b/meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch
new file mode 100644
index 0000000..985182e
--- /dev/null
+++ b/meta-oe/recipes-devtools/cpuid/files/0001-Fix-Add-sys-sysmacros.h-to-fix-build-issue.patch
@@ -0,0 +1,24 @@
+From 2693a499d4eec4504962e85a9713fa6431d3025f Mon Sep 17 00:00:00 2001
+From: Avinash Reddy Palleti <avinash.reddy.palleti at intel.com>
+Date: Thu, 16 Aug 2018 22:36:31 +0530
+Subject: [PATCH] Fix: Add sys/sysmacros.h to fix build issue
+
+---
+ cpuid.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/cpuid.c b/cpuid.c
+index 3c94837..0a98616 100644
+--- a/cpuid.c
++++ b/cpuid.c
+@@ -31,6 +31,7 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <unistd.h>
+-- 
+2.7.4
+
-- 
2.7.4




More information about the Openembedded-devel mailing list