d1d93d488c
Changes: - Update LICENSE hash due to a year bump. - Remove 0001-Look-for-pcm-core-at-the-default-path.patch in favor of the upstream patch 0001-pmu-query.py-fix-python3-errors-add-linux-platform-s.patch - Add -fPIC to the CXXFLAGS to prevent the error: "msr.o: relocation R_X86_64_PC32 against symbol `_ZTVN3pcm9MsrHandleE' can not be used when making a shared object; recompile with -fPIC" - Depend on Python3 for the pmu-query script. Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# pcm-tools
|
|
#
|
|
################################################################################
|
|
|
|
PCM_TOOLS_VERSION = 202110
|
|
PCM_TOOLS_SITE = $(call github,opcm,pcm,$(PCM_TOOLS_VERSION))
|
|
PCM_TOOLS_LICENSE = BSD-3-Clause
|
|
PCM_TOOLS_LICENSE_FILES = LICENSE
|
|
|
|
PCM_TOOLS_EXE_FILES = \
|
|
pcm-core pcm-iio pcm-lspci pcm-memory pcm-msr pcm-numa \
|
|
pcm-pcicfg pcm-pcie pcm-power pcm-sensor pcm-tsx pcm
|
|
|
|
define PCM_TOOLS_BUILD_CMDS
|
|
touch $(@D)/daemon-binaries
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11 -fPIC" \
|
|
UNAME=Linux HOST=_LINUX
|
|
endef
|
|
|
|
ifeq ($(BR2_PACKAGE_PCM_TOOLS_PMU_QUERY),y)
|
|
define PCM_TOOLS_INSTALL_PMU_QUERY
|
|
$(INSTALL) -D -m 755 $(@D)/pmu-query.py $(TARGET_DIR)/usr/bin/pmu-query
|
|
endef
|
|
endif
|
|
|
|
define PCM_TOOLS_INSTALL_TARGET_CMDS
|
|
$(foreach f,$(PCM_TOOLS_EXE_FILES),\
|
|
$(INSTALL) -D -m 755 $(@D)/$(f).x $(TARGET_DIR)/usr/bin/$(f)
|
|
)
|
|
$(PCM_TOOLS_INSTALL_PMU_QUERY)
|
|
endef
|
|
|
|
define PCM_TOOLS_LINUX_CONFIG_FIXUPS
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_X86_MSR)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|