Initial Commit
- initial default booting image
This commit is contained in:
24
package/libspdm/Config.in
Normal file
24
package/libspdm/Config.in
Normal file
@@ -0,0 +1,24 @@
|
||||
config BR2_PACKAGE_LIBSPDM_CPU_FAMILY
|
||||
string
|
||||
# OpenSSL doesn't support "arc" (BR2_arcle), "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
|
||||
3
package/libspdm/libspdm.hash
Normal file
3
package/libspdm/libspdm.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 8d53d5072540ff86ffe496d83b83f49c82792883738bd23ae6ad41fe7c773edf libspdm-3.8.2.tar.gz
|
||||
sha256 8c891ecf439cca84ceab33fc819c029a72c198f31818aa53a3788a0553841d6e LICENSE.md
|
||||
53
package/libspdm/libspdm.mk
Normal file
53
package/libspdm/libspdm.mk
Normal file
@@ -0,0 +1,53 @@
|
||||
################################################################################
|
||||
#
|
||||
# libspdm
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBSPDM_VERSION = 3.8.2
|
||||
LIBSPDM_SITE = $(call github,DMTF,libspdm,$(LIBSPDM_VERSION))
|
||||
LIBSPDM_LICENSE = BSD-3-Clause
|
||||
LIBSPDM_LICENSE_FILES = LICENSE.md
|
||||
LIBSPDM_CPE_ID_VENDOR = dmtf
|
||||
|
||||
LIBSPDM_INSTALL_STAGING = YES
|
||||
LIBSPDM_INSTALL_TARGET = NO
|
||||
|
||||
LIBSPDM_DEPENDENCIES = openssl
|
||||
|
||||
LIBSPDM_TARGET_CPU_FAMILY = $(call qstrip,$(BR2_PACKAGE_LIBSPDM_CPU_FAMILY))
|
||||
|
||||
LIBSPDM_CFLAGS = \
|
||||
$(TARGET_CFLAGS) \
|
||||
-DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 \
|
||||
-DLIBSPDM_ENABLE_CAPABILITY_MEL_CAP=0 \
|
||||
-DLIBSPDM_ENABLE_CAPABILITY_GET_KEY_PAIR_INFO_CAP=0 \
|
||||
-DLIBSPDM_ENABLE_CAPABILITY_SET_KEY_PAIR_INFO_CAP=0 \
|
||||
-DLIBSPDM_HAL_PASS_SPDM_CONTEXT=1
|
||||
|
||||
LIBSPDM_CONF_OPTS = \
|
||||
-DARCH=$(LIBSPDM_TARGET_CPU_FAMILY) \
|
||||
-DTOOLCHAIN=NONE \
|
||||
-DTARGET=Release \
|
||||
-DCRYPTO=openssl \
|
||||
-DENABLE_BINARY_BUILD=1 \
|
||||
-DCOMPILED_LIBCRYPTO_PATH=/usr/lib/ \
|
||||
-DCOMPILED_LIBSSL_PATH=/usr/lib/ \
|
||||
-DDISABLE_TESTS=1 \
|
||||
-DDISABLE_EDDSA=1 \
|
||||
-DLINK_FLAGS=$(STAGING_DIR) \
|
||||
-DCMAKE_C_FLAGS="$(LIBSPDM_CFLAGS)"
|
||||
|
||||
define LIBSPDM_INSTALL_STAGING_CMDS
|
||||
mkdir -p $(STAGING_DIR)/usr/lib
|
||||
cp -dpfr $(@D)/lib/* $(STAGING_DIR)/usr/lib/
|
||||
|
||||
mkdir -p $(STAGING_DIR)/usr/include/libspdm/
|
||||
cp -dpfr $(@D)/include/* $(STAGING_DIR)/usr/include/libspdm/
|
||||
|
||||
mkdir -p $(STAGING_DIR)/usr/include/libspdm/os_stub/spdm_crypt_ext_lib
|
||||
cp -dpfr $(@D)/os_stub/spdm_crypt_ext_lib/*.h \
|
||||
$(STAGING_DIR)/usr/include/libspdm/os_stub/spdm_crypt_ext_lib/
|
||||
endef
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user