diff options
author | Koen Kooi <koen.kooi@linaro.org> | 2017-11-23 10:20:40 +0100 |
---|---|---|
committer | Koen Kooi <koen.kooi@linaro.org> | 2018-03-09 11:41:21 +0100 |
commit | 75dfb67bbb14a70cd47afda9726e2e1c76731885 (patch) | |
tree | 8a0f3e948034767b82395bc59c8f35b685db67d1 | |
parent | b4058cd3c3ee9139f49d7be240b6174cb4280326 (diff) |
optee-os: simplify deploy logic
The complicated logic forces recipes to hardcode the SRCREVs in downstream recipes, leading to sync issues.
Change-Id: I72363339ea48ed61b6b9f113814a8f71918c1f62
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
-rw-r--r-- | meta-optee/recipes-security/optee/optee-os_git.bb | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/meta-optee/recipes-security/optee/optee-os_git.bb b/meta-optee/recipes-security/optee/optee-os_git.bb index 2d274d2a..31205756 100644 --- a/meta-optee/recipes-security/optee/optee-os_git.bb +++ b/meta-optee/recipes-security/optee/optee-os_git.bb @@ -56,17 +56,10 @@ do_install() { PACKAGE_ARCH = "${MACHINE_ARCH}" do_deploy() { - long_srvrev=${SRCREV} - short_srvrev=$(echo $long_srvrev | awk '{ string=substr($0, 1, 8); print string; }' ) - OPTEE_CORE_SUFFIX="${MACHINE}-$short_srvrev" - install -d ${DEPLOYDIR}/optee - for f in ${D}/lib/firmware/*; do - filename=$(basename "$f") - extension="${filename##*.}" - sfilename="${filename%.*}" - bbnote "Deploy $sfilename-${OPTEE_CORE_SUFFIX}.$extension" - install -m 644 $f ${DEPLOYDIR}/optee/$sfilename-${OPTEE_CORE_SUFFIX}.$extension - done + install -d ${DEPLOYDIR}/optee + for f in ${D}/lib/firmware/*; do + install -m 644 $f ${DEPLOYDIR}/optee/ + done } addtask deploy before do_build after do_install |