|
@@ -4,8 +4,12 @@
|
|
#
|
|
#
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
-PCM_TOOLS_VERSION = 202110
|
|
|
|
-PCM_TOOLS_SITE = $(call github,opcm,pcm,$(PCM_TOOLS_VERSION))
|
|
|
|
|
|
+# Don't use the github helper, as pcm-tools uses git attributes that are
|
|
|
|
+# replaced when gnerating the archive.
|
|
|
|
+# 93fc9193a70e2f1f054be554c48f4a4791be5032 is the hash of the 202110 tag.
|
|
|
|
+PCM_TOOLS_VERSION = 93fc9193a70e2f1f054be554c48f4a4791be5032
|
|
|
|
+PCM_TOOLS_SITE = https://github.com/opcm/pcm
|
|
|
|
+PCM_TOOLS_SITE_METHOD = git
|
|
PCM_TOOLS_LICENSE = BSD-3-Clause
|
|
PCM_TOOLS_LICENSE = BSD-3-Clause
|
|
PCM_TOOLS_LICENSE_FILES = LICENSE
|
|
PCM_TOOLS_LICENSE_FILES = LICENSE
|
|
|
|
|
|
@@ -13,6 +17,14 @@ PCM_TOOLS_EXE_FILES = \
|
|
pcm-core pcm-iio pcm-lspci pcm-memory pcm-msr pcm-numa \
|
|
pcm-core pcm-iio pcm-lspci pcm-memory pcm-msr pcm-numa \
|
|
pcm-pcicfg pcm-pcie pcm-power pcm-sensor pcm-tsx pcm
|
|
pcm-pcicfg pcm-pcie pcm-power pcm-sensor pcm-tsx pcm
|
|
|
|
|
|
|
|
+# version.h contains git attributes; replace them with the previously-known
|
|
|
|
+# value.
|
|
|
|
+define PCM_TOOLS_FIXUP_VERSION_H
|
|
|
|
+ $(SED) 's/\$$Format:%ci ID=%h\$$/2021-10-25 16:07:54 +0200 ID=93fc9193/' \
|
|
|
|
+ $(@D)/version.h
|
|
|
|
+endef
|
|
|
|
+PCM_TOOLS_POST_EXTRACT_HOOKS += PCM_TOOLS_FIXUP_VERSION_H
|
|
|
|
+
|
|
define PCM_TOOLS_BUILD_CMDS
|
|
define PCM_TOOLS_BUILD_CMDS
|
|
touch $(@D)/daemon-binaries
|
|
touch $(@D)/daemon-binaries
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|