Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
Patch pulled from https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/powertop&id=37469c47b885c50365f57044e4ad72e0e3512b91
|
||||
|
||||
Fixes a use-after-close bug in create_all_devfreq_devices().
|
||||
|
||||
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
|
||||
|
||||
--- a/src/devices/devfreq.cpp
|
||||
+++ b/src/devices/devfreq.cpp
|
||||
@@ -247,6 +247,7 @@ void create_all_devfreq_devices(void)
|
||||
fprintf(stderr, "Devfreq not enabled\n");
|
||||
is_enabled = false;
|
||||
closedir(dir);
|
||||
+ dir = NULL;
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
Do not pass -fstack-protector unconditionally
|
||||
|
||||
Using -fstack-protector only works when the toolchain has SSP support.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/src/Makefile.am
|
||||
===================================================================
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -127,7 +127,6 @@
|
||||
-Wformat \
|
||||
-Wshadow \
|
||||
-fno-omit-frame-pointer \
|
||||
- -fstack-protector \
|
||||
$(GLIB2_CFLAGS) \
|
||||
$(LIBNL_CFLAGS) \
|
||||
$(NCURSES_CFLAGS) \
|
||||
@@ -0,0 +1,35 @@
|
||||
From 283cab667a9ac3ae3a675b5e5d1a42191188699f Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@openwide.fr>
|
||||
Date: Sat, 8 Aug 2015 18:24:48 +0200
|
||||
Subject: [PATCH] add missing sys/time.h header
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
struct timeval is defined in sys/time.h with a musl toolchain.
|
||||
|
||||
Fixes:
|
||||
In file included from devices/devfreq.cpp:35:0:
|
||||
devices/devfreq.h:35:18: error: field ‘stamp_before’ has incomplete type ‘timeval’
|
||||
struct timeval stamp_before, stamp_after;
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
|
||||
---
|
||||
src/devices/devfreq.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/devices/devfreq.h b/src/devices/devfreq.h
|
||||
index 16a60fb..4a8983b 100644
|
||||
--- a/src/devices/devfreq.h
|
||||
+++ b/src/devices/devfreq.h
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "device.h"
|
||||
#include "../parameters/parameters.h"
|
||||
+#include <sys/time.h>
|
||||
|
||||
struct frequency;
|
||||
|
||||
--
|
||||
2.4.3
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From e6cfd977c81b335664db1d5d3d6b5488c245e30f Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@openwide.fr>
|
||||
Date: Sat, 8 Aug 2015 18:26:15 +0200
|
||||
Subject: [PATCH] add missing stdio.h header
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
snprinf is defined in stdio.h.
|
||||
|
||||
Fixes:
|
||||
perf/perf_bundle.cpp: In function ‘void parse_event_format(const char*)’:
|
||||
perf/perf_bundle.cpp:141:75: error: ‘sprintf’ was not declared in this scope
|
||||
sprintf(file, "/sys/kernel/debug/tracing/events/%s/%s/format", sys, event);
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
|
||||
---
|
||||
src/perf/perf_bundle.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/perf/perf_bundle.cpp b/src/perf/perf_bundle.cpp
|
||||
index cf1ae11..3d216ff 100644
|
||||
--- a/src/perf/perf_bundle.cpp
|
||||
+++ b/src/perf/perf_bundle.cpp
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
+#include <stdio.h>
|
||||
|
||||
#include "perf_bundle.h"
|
||||
#include "perf_event.h"
|
||||
--
|
||||
2.4.3
|
||||
|
||||
19
deprecated/firmware/buildroot/package/powertop/Config.in
Normal file
19
deprecated/firmware/buildroot/package/powertop/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_POWERTOP
|
||||
bool "powertop"
|
||||
depends on !BR2_bfin # pciutils
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_PCIUTILS
|
||||
select BR2_PACKAGE_LIBNL
|
||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
|
||||
help
|
||||
A tool to diagnose issues with power consumption and power management
|
||||
|
||||
https://01.org/powertop/
|
||||
|
||||
comment "powertop needs a toolchain w/ C++, threads, wchar"
|
||||
depends on !BR2_bfin
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_USE_WCHAR
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally-generated hash
|
||||
sha256 8d4b1490e2baad4467c0ded3c423db4472dcbf7b2dd8f8f2a928f54047c678ca powertop-2.7.tar.gz
|
||||
29
deprecated/firmware/buildroot/package/powertop/powertop.mk
Normal file
29
deprecated/firmware/buildroot/package/powertop/powertop.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# powertop
|
||||
#
|
||||
################################################################################
|
||||
|
||||
POWERTOP_VERSION = 2.7
|
||||
POWERTOP_SITE = https://01.org/sites/default/files/downloads/powertop
|
||||
POWERTOP_DEPENDENCIES = pciutils ncurses libnl host-gettext host-pkgconf
|
||||
POWERTOP_LICENSE = GPLv2
|
||||
POWERTOP_LICENSE_FILES = COPYING
|
||||
# We're patching Makefile.am
|
||||
POWERTOP_AUTORECONF = YES
|
||||
POWERTOP_GETTEXTIZE = YES
|
||||
|
||||
ifeq ($(BR2_NEEDS_GETTEXT),y)
|
||||
POWERTOP_DEPENDENCIES += gettext
|
||||
POWERTOP_CONF_ENV += LIBS='-lintl'
|
||||
endif
|
||||
|
||||
# Help powertop at finding the right ncurses library depending on
|
||||
# which one is available.
|
||||
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
||||
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncursesw"
|
||||
else
|
||||
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncurses"
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user