1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# -*-makefile-*-
#
# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
# 2014 by Alexander Aring <aar@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_POWERTOP) += powertop
#
# Paths and names
#
POWERTOP_VERSION := 2.9
POWERTOP_MD5 := 583518c5c4434c6e9b9c58c3920950b6
POWERTOP := powertop-v$(POWERTOP_VERSION)
POWERTOP_SUFFIX := tar.gz
POWERTOP_URL := https://01.org/sites/default/files/downloads/powertop/$(POWERTOP).$(POWERTOP_SUFFIX)
POWERTOP_SOURCE := $(SRCDIR)/$(POWERTOP).$(POWERTOP_SUFFIX)
POWERTOP_DIR := $(BUILDDIR)/$(POWERTOP)
POWERTOP_LICENSE := GPL-2.0-only
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
POWERTOP_CONF_ENV := \
$(CROSS_ENV) \
ac_cv_search_pci_get_dev=$(call ptx/yesno, PTXCONF_POWERTOP_PCI_SUPPORT)
#
# autoconf
#
POWERTOP_CONF_TOOL := autoconf
POWERTOP_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--disable-nls \
--disable-rpath \
--without-libiconv-prefix \
--without-libintl-prefix
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/powertop.targetinstall:
@$(call targetinfo)
@$(call install_init, powertop)
@$(call install_fixup, powertop,PRIORITY,optional)
@$(call install_fixup, powertop,SECTION,base)
@$(call install_fixup, powertop,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
@$(call install_fixup, powertop,DESCRIPTION,missing)
@$(call install_copy, powertop, 0, 0, 0755, -, /usr/sbin/powertop)
@$(call install_finish, powertop)
@$(call touch)
# vim: syntax=make
|