trustfence-cst: restrict package to native/nativesdk

The recipe fails to build for the target, but that is expected, as this
is a tool you need to run in the host or from the toolchain/SDK, so
rework the recipes to restrict only for native and nativesdk.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2022-07-05 17:30:40 +02:00
parent 47215862cf
commit 153048c2a7
3 changed files with 13 additions and 10 deletions

View File

@ -0,0 +1,5 @@
# Copyright (C) 2022 Digi International.
require trustfence-cst-${PV}.inc
inherit nativesdk

View File

@ -1,4 +1,5 @@
# Copyright (C) 2017-2020 Digi International # Copyright (C) 2017-2022 Digi International
SUMMARY = "NXP Code signing Tool for the High Assurance Boot library" SUMMARY = "NXP Code signing Tool for the High Assurance Boot library"
DESCRIPTION = "Provides software code signing support designed for use with \ DESCRIPTION = "Provides software code signing support designed for use with \
i.MX processors that integrate the HAB library in the internal boot ROM." i.MX processors that integrate the HAB library in the internal boot ROM."
@ -6,14 +7,7 @@ HOMEPAGE = "https://www.nxp.com/webapp/Download?colCode=IMX_CST_TOOL"
LICENSE = "BSD-3-Clause" LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.bsd3;md5=1fbcd66ae51447aa94da10cbf6271530" LIC_FILES_CHKSUM = "file://LICENSE.bsd3;md5=1fbcd66ae51447aa94da10cbf6271530"
DEPENDS = "byacc flex" DEPENDS = "byacc-native flex-native"
# Explicitly add byacc-native as a dependency when building the package for the
# SDK, otherwise, it won't get installed in the sysroot, causing a compilation
# error.
# Explicitly add openssl-native for the SDK build to correctly link to the
# openssl libraries in the native dependencies folder.
DEPENDS:append:class-nativesdk = " byacc-native"
SRC_URI = " \ SRC_URI = " \
${DIGI_PKG_SRC}/cst-${PV}.tgz;name=cst \ ${DIGI_PKG_SRC}/cst-${PV}.tgz;name=cst \
@ -57,4 +51,3 @@ do_install() {
} }
FILES:${PN} = "${bindir}" FILES:${PN} = "${bindir}"
BBCLASSEXTEND = "native nativesdk"

View File

@ -0,0 +1,5 @@
# Copyright (C) 2022 Digi International.
require trustfence-cst-${PV}.inc
inherit native