Ensure OpTEE UUID is lowercase 24/192424/1
authorIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Mon, 5 Nov 2018 10:28:48 +0000 (11:28 +0100)
committerIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Mon, 5 Nov 2018 10:28:48 +0000 (11:28 +0100)
OpTEE expects TA filenames to be in lowercase.

Change-Id: I9846b07b4d47609c7ddb260575060b9d77b7ed99
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
rpm/macros.optee.in

index 19a8158..3bab5ec 100644 (file)
@@ -3,7 +3,7 @@
 %_tastoredir @TASTORE_DIR@
 
 # change TA UUID to suit optee format
-%unified_ta_devkit_get_ta_name() %(val=%1;echo ${val:0:8}-${val:8:4}-${val:12:4}-${val:16:4}-${val:20:12}.ta)
+%unified_ta_devkit_get_ta_name() %(val=`echo %1 | tr A-F a-f`;echo ${val:0:8}-${val:8:4}-${val:12:4}-${val:16:4}-${val:20:12}.ta)
 
 %unified_ta_devkit_export() \
 %{nil}