93aa9db953
Don't build c_example which needs a dynamic library and so will raise the following static build failure since bump to version 2021.10 in commitd1d93d488c
and12647a6ee5
: /home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: cannot find -lpcm Fixes: - http://autobuild.buildroot.org/results/1276a3d49c8848039f034e7f03632df365097e94 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
42 lines
1.2 KiB
Makefile
42 lines
1.2 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 \
|
|
$(foreach f,$(PCM_TOOLS_EXE_FILES),$(f).x)
|
|
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))
|