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.

Index: powertop-v2.10/src/wakeup/wakeup_ethernet.h
===================================================================
--- powertop-v2.10.orig/src/wakeup/wakeup_ethernet.h
+++ powertop-v2.10/src/wakeup/wakeup_ethernet.h
@@ -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
===================================================================
--- powertop-v2.10.orig/src/wakeup/wakeup_usb.h
+++ powertop-v2.10/src/wakeup/wakeup_usb.h
@@ -26,6 +26,7 @@
 #define _INCLUDE_GUARD_USB_WAKEUP_H

 #include <vector>
+#include <limits.h>

 #include "wakeup.h"


--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to