SUMMARY = "Linux applications to manage, test and develop devices supporting DMTF Security Protocol and Data Model (SPDM) "
HOMEPAGE = "https://github.com/westerndigitalcorporation/spdm-utils"
LICENSE = "Apache-2.0 & MIT"
LIC_FILES_CHKSUM = "\
    file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d \
    file://LICENSE-APACHE;md5=22a53954e4e0ec258dfce4391e905dac \
    "

inherit cargo cargo-update-recipe-crates pkgconfig

export BINDGEN_EXTRA_CLANG_ARGS
BINDGEN_EXTRA_CLANG_ARGS = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_INCDIR}"

SRC_URI += "git://github.com/westerndigitalcorporation/spdm-utils.git;protocol=https;branch=master"

include spdm-utils-crates.inc

SRCREV = "8805327c9ac0d354c6ef891ccdd0527bbecf80e0"

PV .= "+git"

DEPENDS += "libspdm udev clang-native bindgen-cli-native pciutils"

COMPATIBLE_HOST:riscv32 = "null"
COMPATIBLE_HOST:mipsarcho32 = "null"
