mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-27 15:09:10 +00:00
- 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>
34 lines
975 B
BlitzBasic
34 lines
975 B
BlitzBasic
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
|
|
}
|