Skip to contentSkip to conversation

kernel-fitimage: fix missing TEE extension, as not provided by OPTEEFLAVOR

PATCH New Denys Dmytriyenko 1 participant 1 message Dec 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-fitimage: fix missing TEE extension, as not provided by OPTEEFLAVOR

From: Denys Dmytriyenko <[email protected]>

In the past, FITIMAGE_TEE listed TEE files with extension, but currently used OPTEEFLAVOR variable only provides the name w/o extension.

---
 meta-arago-distro/classes/kernel-fitimage.bbclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta-arago-distro/classes/kernel-fitimage.bbclass +4 -4
index 16cb2bf..1cfa8d1 100644
@@ -451,11 +451,11 @@ fitimage_assemble() {
 	#
 	if test -n "${OPTEEFLAVOR}"; then
 		mkdir -p ${B}/usr
-		rm -f ${B}/usr/${OPTEEFLAVOR}
-		if [ -e "${DEPLOY_DIR_IMAGE}/${OPTEEFLAVOR}" ]; then
-			cp ${DEPLOY_DIR_IMAGE}/${OPTEEFLAVOR} ${B}/usr/.
+		rm -f ${B}/usr/${OPTEEFLAVOR}.optee
+		if [ -e "${DEPLOY_DIR_IMAGE}/${OPTEEFLAVOR}.optee" ]; then
+			cp ${DEPLOY_DIR_IMAGE}/${OPTEEFLAVOR}.optee ${B}/usr/.
 		fi
-		TEE_PATH="usr/${OPTEEFLAVOR}"
+		TEE_PATH="usr/${OPTEEFLAVOR}.optee"
 		fitimage_ti_secure ${TEE_PATH} ${TEE_PATH}.sec
 		if [ "x${FITIMAGE_TEE_BY_NAME}" = "x1" ] ; then
 			fitimage_emit_section_tee ${1} ${OPTEEFLAVOR}.optee ${TEE_PATH}.sec
Signature · 1 line
2.7.4