mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-06-05 02:11:00 +00:00
sa-lld: Add recipes for SA module low level driver
- Provides library and test code for Security accelerator module - Supports k2h, k2k, k2l & k2e devices Signed-off-by: Sam Nelson <sam.nelson@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
committed by
Denys Dmytriyenko
parent
838c9edd2e
commit
091c19a8fb
@@ -0,0 +1,33 @@
|
||||
DESCRIPTION = "TI Security Accelerator LLD (SA LLD) Examples"
|
||||
|
||||
DEPENDS = "common-csl-ip cppi-lld qmss-lld pa-lld sa-lld"
|
||||
|
||||
include sa-lld.inc
|
||||
|
||||
DEVICELIST = "k2h k2k k2l k2e"
|
||||
|
||||
CHOICELIST = "no yes"
|
||||
|
||||
do_compile () {
|
||||
# Now build the lld in the updated directory
|
||||
for device in ${DEVICELIST}
|
||||
do
|
||||
make -f makefile_armv7 clean PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" SA_SRC_DIR=${S}
|
||||
for choice in ${CHOICELIST}
|
||||
do
|
||||
make -f makefile_armv7 examples PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" SA_SRC_DIR=${S} USEDYNAMIC_LIB="$choice"
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${bindir}/ti/drv/sa/example/SaBasicExample/vectors
|
||||
|
||||
# copy all the test vectors
|
||||
find example/SaBasicExample/vectors -name *.bin -type f | xargs -I {} cp --parents {} ${D}${bindir}/ti/drv/sa
|
||||
|
||||
for device in ${DEVICELIST}
|
||||
do
|
||||
make -f makefile_armv7 installbin PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" SA_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}${bindir}
|
||||
done
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
LICENSE = "BSD-3-Clause"
|
||||
COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/sa/COPYING.txt;md5=4709d353574a9569e129ebdf20e732dd"
|
||||
|
||||
BRANCH = "master"
|
||||
SRC_URI = "git://git.ti.com/keystone-rtos/sa-lld.git;destsuffix=git/ti/drv/sa;protocol=git;branch=${BRANCH}"
|
||||
# Following commit DEV.SA_LLD.03.00.00.08
|
||||
SRCREV = "4da032c600ded79ab226a2a0100c1d8178a9da39"
|
||||
PV = "03.00.00.08"
|
||||
PR = "r0"
|
||||
|
||||
BASEDIR = "${WORKDIR}/git"
|
||||
S = "${BASEDIR}/ti/drv/sa"
|
||||
@@ -0,0 +1,14 @@
|
||||
DESCRIPTION = "TI Security Accelerator LLD (SA LLD) Library"
|
||||
|
||||
DEPENDS = "common-csl-ip"
|
||||
|
||||
include sa-lld.inc
|
||||
|
||||
do_compile () {
|
||||
# Now build the lld in the updated directory
|
||||
make -f makefile_armv7 clean lib PDK_INSTALL_PATH=${STAGING_INCDIR}
|
||||
}
|
||||
|
||||
do_install () {
|
||||
make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}/${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
|
||||
}
|
||||
Reference in New Issue
Block a user