kumquat-buildroot/package/mhz/mhz.mk
Robert Marko 8ca683b105 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>
2023-08-01 22:47:12 +02:00

21 lines
544 B
Makefile

################################################################################
#
# 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))