1 ################################################################################
5 ################################################################################
7 LINUX_TOOLS
+= cpupower
9 CPUPOWER_DEPENDENCIES
= pciutils
11 CPUPOWER_MAKE_OPTS
= CROSS
=$(TARGET_CROSS
) \
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." ; \
22 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)/tools \
23 $(CPUPOWER_MAKE_OPTS
) \
27 define CPUPOWER_INSTALL_STAGING_CMDS
28 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)/tools \
29 $(CPUPOWER_MAKE_OPTS
) \
30 DESTDIR
=$(STAGING_DIR
) \
34 define CPUPOWER_INSTALL_TARGET_CMDS
35 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)/tools \
36 $(CPUPOWER_MAKE_OPTS
) \
37 DESTDIR
=$(TARGET_DIR
) \