fwup: bump version to v0.8.2
[buildroot-gz.git] / linux / linux-tool-cpupower.mk
blob095a5efad13befe4a745b0b3347ac4c225710d23
1 ################################################################################
3 # cpupower
5 ################################################################################
7 LINUX_TOOLS += cpupower
9 CPUPOWER_DEPENDENCIES = pciutils $(if $(BR2_NEEDS_GETTEXT),gettext)
11 CPUPOWER_MAKE_OPTS = CROSS=$(TARGET_CROSS) \
12 CPUFREQ_BENCH=false \
13 NLS=false \
14 $(if $(BR2_NEEDS_GETTEXT),LDFLAGS=-lintl) \
15 DEBUG=false
17 define CPUPOWER_BUILD_CMDS
18 $(Q)if test ! -f $(@D)/tools/power/cpupower/Makefile ; then \
19 echo "Your kernel version is too old and does not have the cpupower tool." ; \
20 echo "At least kernel 3.4 must be used." ; \
21 exit 1 ; \
24 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/tools \
25 $(CPUPOWER_MAKE_OPTS) \
26 cpupower
27 endef
29 define CPUPOWER_INSTALL_STAGING_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/tools \
31 $(CPUPOWER_MAKE_OPTS) \
32 DESTDIR=$(STAGING_DIR) \
33 cpupower_install
34 endef
36 define CPUPOWER_INSTALL_TARGET_CMDS
37 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/tools \
38 $(CPUPOWER_MAKE_OPTS) \
39 DESTDIR=$(TARGET_DIR) \
40 cpupower_install
41 endef