In Yocto 2.7 powertop package is broken.
PATCH 1/1 In Yocto 2.7 powertop package is broken.
Hi all,
Via a .bbappend file in my own layers, I added the following patch to build powertop, which is enabled when tools-profile is added to EXTRA_IMAGE_FEATURES.
* recipes-profiling/powertop/files/posix-path-max-not-defined.patch:
Patch for build issue. The C++ code needs to including <limits.h> which defines the POSIX PATH_MAX preprocessor symbol.
src/wakeup/wakeup_ethernet.h +1 -0
@@ -25,6 +25,7 @@#ifndef _INCLUDE_GUARD_ETHERNET_WAKEUP_H#define _INCLUDE_GUARD_ETHERNET_WAKEUP_H +#include <limits.h> #include <vector> #include "wakeup.h"
src/wakeup/wakeup_usb.h +1 -0
@@ -26,6 +26,7 @@#define _INCLUDE_GUARD_USB_WAKEUP_H#include <vector> +#include <limits.h> #include "wakeup.h"
See
https://www.mail-archive.com/[email protected]/msg126436.html
Quoted 41 lines · Kaz Kylheku
Hi all,
Via a .bbappend file in my own layers, I added the following patch to build powertop, which is enabled when tools-profile is added to
EXTRA_IMAGE_FEATURES.*
recipes-profiling/powertop/files/posix-path-max-not-defined.patch:
Patch for build issue. The C++ code needs to including <limits.h> which defines the POSIXPATH_MAXpreprocessor symbol.Index:
powertop-v2.10/src/wakeup/wakeup_ethernet.h
===================================================================src/wakeup/wakeup_ethernet.h +1
-0@@ -25,6 +25,7 @@#ifndef _INCLUDE_GUARD_ETHERNET_WAKEUP_H#define _INCLUDE_GUARD_ETHERNET_WAKEUP_H +#include <limits.h> #include <vector> #include "wakeup.h" Index:
powertop-v2.10/src/wakeup/wakeup_usb.h
===================================================================src/wakeup/wakeup_usb.h +1
-1@@ -26,6 +26,7 @@#define _INCLUDE_GUARD_USB_WAKEUP_H#include <vector> +#include <limits.h> #include "wakeup.h" --_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto