config BR2_PACKAGE_LIBSPDM_CPU_FAMILY
	string
	# OpenSSL doesn't support "arc" (BR2_arcle || BR2_arceb), "arm"
	# (if BR2_arm || BR2_armeb) or "riscv32"/"riscv6"
	# (BR2_riscv && BR2_RISCV_32/BR2_RISCV_64). So we don't
	# support those here
	default "aarch64"	if BR2_aarch64 || BR2_aarch64_be
	default "ia32"		if BR2_i386
	default "x64"		if BR2_x86_64

config BR2_PACKAGE_LIBSPDM_ARCH_SUPPORTS
	bool
	default y if BR2_PACKAGE_LIBSPDM_CPU_FAMILY != ""

config BR2_PACKAGE_LIBSPDM
	bool "libspdm"
	depends on BR2_PACKAGE_LIBSPDM_ARCH_SUPPORTS
	select BR2_PACKAGE_OPENSSL
	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
	help
	  libspdm is a sample implementation that follows
	  the DMTF SPDM specifications

	  https://github.com/DMTF/libspdm
