package/superiotool: new package

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
James Hilliard 2024-08-19 02:07:39 -06:00 committed by Julien Olivain
parent 0df7dfb804
commit 805e38c550
5 changed files with 49 additions and 0 deletions

View File

@ -1522,6 +1522,7 @@ F: package/serd/
F: package/sord/
F: package/sratom/
F: package/stb/
F: package/superiotool/
F: package/tailscale/
F: package/zchunk/
F: support/testing/tests/package/sample_python_rtoml.py

View File

@ -631,6 +631,7 @@ endmenu
source "package/sunxi-cedarx/Config.in"
source "package/sunxi-mali-utgard/Config.in"
source "package/sunxi-mali-utgard-driver/Config.in"
source "package/superiotool/Config.in"
source "package/sysstat/Config.in"
source "package/targetcli-fb/Config.in"
source "package/ti-gfx/Config.in"

View File

@ -0,0 +1,8 @@
config BR2_PACKAGE_SUPERIOTOOL
bool "superiotool"
depends on BR2_x86_64 || BR2_i386
select BR2_PACKAGE_PCIUTILS
help
Super I/O detection tool.
https://www.coreboot.org/Superiotool

View File

@ -0,0 +1,3 @@
# Locally computed
sha256 e22afdbac40068ba687fd975f03f6b958599a32e70f539d9d0c74d16a63d7cea coreboot-24.05.tar.xz
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 util/superiotool/COPYING

View File

@ -0,0 +1,36 @@
################################################################################
#
# superiotool
#
################################################################################
SUPERIOTOOL_VERSION = 24.05
SUPERIOTOOL_SOURCE = coreboot-$(SUPERIOTOOL_VERSION).tar.xz
SUPERIOTOOL_SITE = https://coreboot.org/releases
SUPERIOTOOL_SUBDIR = util/superiotool
SUPERIOTOOL_LICENSE = GPL-2.0+
SUPERIOTOOL_LICENSE_FILES = util/superiotool/COPYING
SUPERIOTOOL_DEPENDENCIES = pciutils
SUPERIOTOOL_CFLAGS = \
$(TARGET_CFLAGS) \
-I$(@D)/src/commonlib/bsd/include \
-DPCI_SUPPORT \
-DSUPERIOTOOL_VERSION=\\\"$(SUPERIOTOOL_VERSION)\\\"
SUPERIOTOOL_CONFIGURE_OPTS = \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(SUPERIOTOOL_CFLAGS)"
define SUPERIOTOOL_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(SUPERIOTOOL_CONFIGURE_OPTS) \
-C $(@D)/$(SUPERIOTOOL_SUBDIR) superiotool
endef
define SUPERIOTOOL_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(SUPERIOTOOL_CONFIGURE_OPTS) \
-C $(@D)/$(SUPERIOTOOL_SUBDIR) install \
PREFIX=/usr DESTDIR="$(TARGET_DIR)"
endef
$(eval $(generic-package))