i7z: new package
[buildroot-gz.git] / linux / linux-tool-cpupower.mk
blob4551cda1f1bf5be900a653bcc2fe2b66ccf49ccd
1 ################################################################################
3 # cpupower
5 ################################################################################
7 LINUX_TOOLS += cpupower
9 CPUPOWER_DEPENDENCIES = pciutils
11 CPUPOWER_MAKE_OPTS = CROSS=$(TARGET_CROSS) \
12 CPUFREQ_BENCH=false \
13 DEBUG=false
15 define CPUPOWER_BUILD_CMDS
16 $(Q)if test ! -f $(@D)/tools/power/cpupower/Makefile ; then \
17 echo "Your kernel version is too old and does not have the cpupower tool." ; \
18 echo "At least kernel 3.4 must be used." ; \
19 exit 1 ; \
22 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/tools \
23 $(CPUPOWER_MAKE_OPTS) \
24 cpupower
25 endef
27 define CPUPOWER_INSTALL_STAGING_CMDS
28 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/tools \
29 $(CPUPOWER_MAKE_OPTS) \
30 DESTDIR=$(STAGING_DIR) \
31 cpupower_install
32 endef
34 define CPUPOWER_INSTALL_TARGET_CMDS
35 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/tools \
36 $(CPUPOWER_MAKE_OPTS) \
37 DESTDIR=$(TARGET_DIR) \
38 cpupower_install
39 endef