1 ################################################################################
5 ################################################################################
7 LINUX_TOOLS
+= cpupower
9 CPUPOWER_DEPENDENCIES
= pciutils
$(if
$(BR2_NEEDS_GETTEXT
),gettext
)
11 CPUPOWER_MAKE_OPTS
= CROSS
=$(TARGET_CROSS
) \
14 $(if
$(BR2_NEEDS_GETTEXT
),LDFLAGS
=-lintl
) \
17 define CPUPOWER_BUILD_CMDS
18 $(Q
)if
test ! -f
$(LINUX_DIR
)/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." ; \
24 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(LINUX_DIR
)/tools \
25 $(CPUPOWER_MAKE_OPTS
) \
29 define CPUPOWER_INSTALL_STAGING_CMDS
30 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(LINUX_DIR
)/tools \
31 $(CPUPOWER_MAKE_OPTS
) \
32 DESTDIR
=$(STAGING_DIR
) \
36 define CPUPOWER_INSTALL_TARGET_CMDS
37 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(LINUX_DIR
)/tools \
38 $(CPUPOWER_MAKE_OPTS
) \
39 DESTDIR
=$(TARGET_DIR
) \