With CONFIG_HAB_CERTS_ENV=y, paths and PKCS#11 URIs to the HAB certificates are taken from environment variables (allowing for better integration with build systems). In this case these values are passed internally via compiler macros (-D) to the imx-image host tool. PKCS#11 URIs usually contain semicolons. The semicolons didn't make it through to the imx-image configuration file due to wrong escapes. Fix this by expanding the environment variables using make rather than shell. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index f195ddb7e8..7dcd8c9892 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -579,7 +579,7 @@ cmd_imximage_S_dcd= \ overwrite-hab-env = $(shell set -e; \ test -n "$(CONFIG_HAB_CERTS_ENV)"; \ test -n "$$$(1)"; \ - echo -D$(1)=\\\"$(shell echo $$$(1))\\\") + echo -D$(1)=\''"${${1}}"'\') overwrite-fit-env = $(shell set -e; \ test -n "$(CONFIG_BOOTM_FITIMAGE_PUBKEY_ENV)"; \ -- 2.39.5