summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch')
-rw-r--r--meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch b/meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch
new file mode 100644
index 0000000000..38d9a67424
--- /dev/null
+++ b/meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch
@@ -0,0 +1,23 @@
1Fix sysfs when cross-compiling
2
3Use proper paths for sysfs plugins when cross-compiling
4
5Signed-of-by: Aws Ismail <aws.ismail@windriver.com>
6
7Upstream-Status: Pending
8
9Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
10
11diff --git a/plugins/sysfs/sysfs2hpi.c b/plugins/sysfs/sysfs2hpi.c
12index a745214..3685598 100644
13--- a/plugins/sysfs/sysfs2hpi.c
14+++ b/plugins/sysfs/sysfs2hpi.c
15@@ -18,7 +18,7 @@
16
17 #include <stdlib.h>
18 #include <string.h>
19-#include <libsysfs.h>
20+#include <sysfs/libsysfs.h>
21
22 #include <SaHpi.h>
23 #include <oh_utils.h>