b2c043b29a
Make inclusion ordering of all linux-tool-*.mk sub-makefiles explicit instead of relying on alphabetical sort order. This is done by renaming the Linux tools sub-makefiles to the format linux-tool-*.mk.in. This causes the top-level Makefile to ignore the Linux tools sub-makefiles. Until now, the main Makefile included all linux-tool-*.mk files, as well as linux-tools.mk, and it relied on alphabetical sorting to include them in the proper order (linux-tool-*.mk before linux-tools.mk). Signed-off-by: Markus Mayer <mmayer@broadcom.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: improve comment in the code as suggested by Yann.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
42 lines
1.0 KiB
Makefile
42 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# cpupower
|
|
#
|
|
################################################################################
|
|
|
|
LINUX_TOOLS += cpupower
|
|
|
|
CPUPOWER_DEPENDENCIES = pciutils $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
CPUPOWER_MAKE_OPTS = CROSS=$(TARGET_CROSS) \
|
|
CPUFREQ_BENCH=false \
|
|
NLS=false \
|
|
LDFLAGS=$(TARGET_NLS_LIBS) \
|
|
DEBUG=false
|
|
|
|
define CPUPOWER_BUILD_CMDS
|
|
$(Q)if test ! -f $(LINUX_DIR)/tools/power/cpupower/Makefile ; then \
|
|
echo "Your kernel version is too old and does not have the cpupower tool." ; \
|
|
echo "At least kernel 3.4 must be used." ; \
|
|
exit 1 ; \
|
|
fi
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools \
|
|
$(CPUPOWER_MAKE_OPTS) \
|
|
cpupower
|
|
endef
|
|
|
|
define CPUPOWER_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools \
|
|
$(CPUPOWER_MAKE_OPTS) \
|
|
DESTDIR=$(STAGING_DIR) \
|
|
cpupower_install
|
|
endef
|
|
|
|
define CPUPOWER_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools \
|
|
$(CPUPOWER_MAKE_OPTS) \
|
|
DESTDIR=$(TARGET_DIR) \
|
|
cpupower_install
|
|
endef
|