package/x11r7/xserver_xorg-server: bump to version 1.19.3
[buildroot-gz.git] / package / linux-tools / linux-tool-cpupower.mk
blob9958cff8059edb876f5d5fe01b184fe9766f0803
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 $(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." ; \
21 exit 1 ; \
24 $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools \
25 $(CPUPOWER_MAKE_OPTS) \
26 cpupower
27 endef
29 define CPUPOWER_INSTALL_STAGING_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/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 $(LINUX_DIR)/tools \
38 $(CPUPOWER_MAKE_OPTS) \
39 DESTDIR=$(TARGET_DIR) \
40 cpupower_install
41 endef