[PATCH] scripts: imx: pass semicolons as substitute chars to compiler macros for CSF templating
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 10 03:31:31 PST 2025
Hi Basti,
On Mon, Jan 06, 2025 at 12:33:40PM +0100, Bastian Krause wrote:
> 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. Semicolons, however, cannot be passed
> via compiler macros and cannot be escaped.
Try harder.
gcc -DFOO='"bar;baz"' test.c
#include <stdio.h>
int main(void)
{
printf(FOO);
}
Works as expected, so does it work when you add single quotes around the
URI?
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list