mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
msr-tools: new package
The MSR Tools project provides utilities to access x86 processor MSRs and CPU ID directly. https://01.org/msr-tools Signed-off-by: Vincent Stehlé <vincent.stehle@intel.com> Cc: Yegor Yefremov <yegorslists@googlemail.com> Cc: Arnout Vandecappelle <arnout@mind.be> [Thomas: - rewrap Config.in help text - use $(TARGET_MAKE_ENV) when calling $(MAKE).] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
8c0a367d0a
commit
8e738967d9
@ -407,6 +407,7 @@ endif
|
|||||||
source "package/memtest86/Config.in"
|
source "package/memtest86/Config.in"
|
||||||
source "package/memtester/Config.in"
|
source "package/memtester/Config.in"
|
||||||
source "package/minicom/Config.in"
|
source "package/minicom/Config.in"
|
||||||
|
source "package/msr-tools/Config.in"
|
||||||
source "package/nanocom/Config.in"
|
source "package/nanocom/Config.in"
|
||||||
source "package/neard/Config.in"
|
source "package/neard/Config.in"
|
||||||
source "package/nvidia-driver/Config.in"
|
source "package/nvidia-driver/Config.in"
|
||||||
|
14
package/msr-tools/Config.in
Normal file
14
package/msr-tools/Config.in
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
config BR2_PACKAGE_MSR_TOOLS
|
||||||
|
bool "msr-tools"
|
||||||
|
depends on BR2_i386 || BR2_x86_64
|
||||||
|
help
|
||||||
|
The MSR Tools project provides utilities to access x86
|
||||||
|
processor MSRs and CPU ID directly.
|
||||||
|
|
||||||
|
Those tools access the hardware through the
|
||||||
|
/dev/cpu/<cpu#>/msr and /dev/cpu/<cpu#>/cpuid devices. This
|
||||||
|
necessitates msr and cpuid support in the kernel, which
|
||||||
|
means you need a kernel compiled with configuration options
|
||||||
|
CONFIG_X86_CPUID and CONFIG_X86_MSR enabled.
|
||||||
|
|
||||||
|
https://01.org/msr-tools
|
2
package/msr-tools/msr-tools.hash
Normal file
2
package/msr-tools/msr-tools.hash
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Locally computed:
|
||||||
|
sha256 9b87245ee091a798184e447066e9e0d7709b7c81f5e6ad55f2b958c1aa50c4a3 msr-tools-1.3.tar.gz
|
21
package/msr-tools/msr-tools.mk
Normal file
21
package/msr-tools/msr-tools.mk
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# msr-tools
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
MSR_TOOLS_VERSION = 1.3
|
||||||
|
MSR_TOOLS_SITE = $(call github,01org,msr-tools,msr-tools-$(MSR_TOOLS_VERSION))
|
||||||
|
MSR_TOOLS_LICENSE = GPLv2
|
||||||
|
MSR_TOOLS_LICENSE_FILES = cpuid.c
|
||||||
|
|
||||||
|
define MSR_TOOLS_BUILD_CMDS
|
||||||
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define MSR_TOOLS_INSTALL_TARGET_CMDS
|
||||||
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) install \
|
||||||
|
sbindir="$(TARGET_DIR)/usr/sbin"
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(generic-package))
|
Loading…
x
Reference in New Issue
Block a user