[yocto] [PATCH] In Yocto 2.7 powertop package is broken.
Martin Jansa
martin.jansa at gmail.com
Mon Aug 19 07:42:34 PDT 2019
See
https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg126436.html
On Mon, Aug 19, 2019 at 11:35 AM Kaz Kylheku <kaz at kylheku.com> wrote:
> 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 at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190819/529829df/attachment.html>
More information about the yocto
mailing list