summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2019-08-20 09:04:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-30 16:44:42 +0100
commit6438f794f6196b3c68eb23ce381a40973ef292c1 (patch)
treeca153ef9cae9cc4ebf0bf6dc091fec9bbc21e93c /meta/recipes-kernel
parent5c9a02ed678f2a26a26c6398c2837fbd2ddcb561 (diff)
downloadpoky-6438f794f6196b3c68eb23ce381a40973ef292c1.tar.gz
powertop: import a fix from buildroot
(From OE-Core rev: efd32b0e627fe5c8e9963c40c0e1abbd0b9ac8fc) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/powertop/powertop/0001-wakeup_xxx.h-include-limits.h.patch55
-rw-r--r--meta/recipes-kernel/powertop/powertop_2.10.bb1
2 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-kernel/powertop/powertop/0001-wakeup_xxx.h-include-limits.h.patch b/meta/recipes-kernel/powertop/powertop/0001-wakeup_xxx.h-include-limits.h.patch
new file mode 100644
index 0000000000..7bfca8abfd
--- /dev/null
+++ b/meta/recipes-kernel/powertop/powertop/0001-wakeup_xxx.h-include-limits.h.patch
@@ -0,0 +1,55 @@
1From 4c24fdd8e0a42359df7308155b2d43c28a5e02fd Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Mon, 20 May 2019 20:25:00 +0200
4Subject: [PATCH] wakeup_xxx.h: include limits.h
5
6limits.h must be included to define PATH_MAX otherwise build will fail
7on:
8
9In file included from wakeup/wakeup_ethernet.cpp:45:0:
10wakeup/wakeup_ethernet.h:35:16: error: 'PATH_MAX' was not declared in this scope
11 char eth_path[PATH_MAX];
12
13In file included from wakeup/wakeup_usb.cpp:45:0:
14wakeup/wakeup_usb.h:35:16: error: 'PATH_MAX' was not declared in this scope
15 char usb_path[PATH_MAX];
16
17Fixes:
18 - http://autobuild.buildroot.org/results/a0b3337cf4a827e6566f8b15b6bb180f0dcef7a3
19
20Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
21Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
22
23Upstream-Status: Submitted [https://lists.01.org/pipermail/powertop/2019-May/002052.html]
24---
25 src/wakeup/wakeup_ethernet.h | 1 +
26 src/wakeup/wakeup_usb.h | 1 +
27 2 files changed, 2 insertions(+)
28
29diff --git a/src/wakeup/wakeup_ethernet.h b/src/wakeup/wakeup_ethernet.h
30index 682bf95..e0fa628 100644
31--- a/src/wakeup/wakeup_ethernet.h
32+++ b/src/wakeup/wakeup_ethernet.h
33@@ -25,6 +25,7 @@
34 #ifndef _INCLUDE_GUARD_ETHERNET_WAKEUP_H
35 #define _INCLUDE_GUARD_ETHERNET_WAKEUP_H
36
37+#include <limits.h>
38 #include <vector>
39
40 #include "wakeup.h"
41diff --git a/src/wakeup/wakeup_usb.h b/src/wakeup/wakeup_usb.h
42index f7a1f7e..15898e3 100644
43--- a/src/wakeup/wakeup_usb.h
44+++ b/src/wakeup/wakeup_usb.h
45@@ -25,6 +25,7 @@
46 #ifndef _INCLUDE_GUARD_USB_WAKEUP_H
47 #define _INCLUDE_GUARD_USB_WAKEUP_H
48
49+#include <limits.h>
50 #include <vector>
51
52 #include "wakeup.h"
53--
542.20.1
55
diff --git a/meta/recipes-kernel/powertop/powertop_2.10.bb b/meta/recipes-kernel/powertop/powertop_2.10.bb
index d943ba9f6e..5be8d23111 100644
--- a/meta/recipes-kernel/powertop/powertop_2.10.bb
+++ b/meta/recipes-kernel/powertop/powertop_2.10.bb
@@ -7,6 +7,7 @@ LICENSE = "GPLv2"
7LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" 7LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
8 8
9SRC_URI = "http://01.org/sites/default/files/downloads/powertop-v${PV}.tar.gz \ 9SRC_URI = "http://01.org/sites/default/files/downloads/powertop-v${PV}.tar.gz \
10 file://0001-wakeup_xxx.h-include-limits.h.patch \
10" 11"
11 12
12SRC_URI[md5sum] = "a69bd55901cf919cc564187402ea2c9c" 13SRC_URI[md5sum] = "a69bd55901cf919cc564187402ea2c9c"