linaro-swg / optee_examples

OP-TEE Sample Applications
Other
163 stars 140 forks source link

Makefile: Fix non-portable sh check for plugins #94

Closed ricardosalveti closed 2 years ago

ricardosalveti commented 2 years ago

Comparison with "==" is non-portable, resulting in an error:

/bin/sh: 6: [: acipher: unexpected operator /bin/sh: 6: [: plugins: unexpected operator /bin/sh: 6: [: hello_world: unexpected operator /bin/sh: 6: [: hotp: unexpected operator /bin/sh: 6: [: aes: unexpected operator /bin/sh: 6: [: random: unexpected operator /bin/sh: 6: [: secure_storage: unexpected operator

if /bin/sh doesnt point to bash.

Signed-off-by: Alejandro Enedino Hernandez Samaniego alhe@linux.microsoft.com Signed-off-by: Ricardo Salveti ricardo@foundries.io

ricardosalveti commented 2 years ago

Original patch from OE meta-arm available at https://github.com/jonmason/meta-arm/blob/50b34c5cc9496441152ad28bf1022e5fc5ab0a7e/meta-arm/recipes-security/optee/optee-examples/0001-Makefile-Fix-non-portable-sh-check-for-plugins.patch

ricardosalveti commented 2 years ago

tag applied