package/mhz: add new package

mhz is a tool to mathematically calculate the real running CPU frequency
and as such has proved as invaluable tool for developing CPUFreq and
similar features in the kernel.

Its source finally got a license recently so it can be packaged.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Robert Marko 2023-07-31 19:05:04 +02:00 committed by Thomas Petazzoni
parent bcc4f13857
commit 8ca683b105
5 changed files with 31 additions and 0 deletions

View File

@ -2540,6 +2540,7 @@ F: package/azmq/
N: Robert Marko <robimarko@gmail.com>
F: package/mdio-tools/
F: package/mhz/
N: Robert Rose <robertroyrose@gmail.com>
F: package/grpc/

View File

@ -551,6 +551,7 @@ endmenu
source "package/memtest86/Config.in"
source "package/memtester/Config.in"
source "package/memtool/Config.in"
source "package/mhz/Config.in"
source "package/minicom/Config.in"
source "package/msr-tools/Config.in"
source "package/nanocom/Config.in"

6
package/mhz/Config.in Normal file
View File

@ -0,0 +1,6 @@
config BR2_PACKAGE_MHZ
bool "mhz"
help
CPU frequency measurement utility.
https://github.com/wtarreau/mhz.git

3
package/mhz/mhz.hash Normal file
View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 c4b49dc719846220b96ac6060f15dd917316189cbbd2e0896b1b5e796e063ede mhz-11aac2399780a1f7ea9f007b14af0464797d5cf1.tar.gz
sha256 9449d373cad921620bb8f1e4f7b39f957e263163ded159c1efc8de27f8997099 LICENSE

20
package/mhz/mhz.mk Normal file
View File

@ -0,0 +1,20 @@
################################################################################
#
# mhz
#
################################################################################
MHZ_VERSION = 11aac2399780a1f7ea9f007b14af0464797d5cf1
MHZ_SITE = $(call github,wtarreau,mhz,$(MHZ_VERSION))
MHZ_LICENSE = MIT
MHZ_LICENSE_FILES = LICENSE
define MHZ_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define MHZ_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/mhz $(TARGET_DIR)/usr/bin/mhz
endef
$(eval $(generic-package))