From 3644db97b7bdead131302ed14b99982a97b2f01d Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Fri, 5 Feb 2021 09:53:04 -0800 Subject: [PATCH] Add dynamic UUID generation Signed-off-by: Travis F. Collins --- CI/scripts/bsp.tmpl | 2 +- CI/scripts/genTlbx.m | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CI/scripts/bsp.tmpl b/CI/scripts/bsp.tmpl index 16c8b4d..8119d6e 100644 --- a/CI/scripts/bsp.tmpl +++ b/CI/scripts/bsp.tmpl @@ -37,7 +37,7 @@ Support: https://ez.analog.com/ 9.0 - 40075943-d2d1-4d90-8e59-b3eff5f58180 + __UUID__ % CI/* slprj/* diff --git a/CI/scripts/genTlbx.m b/CI/scripts/genTlbx.m index 487b85d..d0c5997 100644 --- a/CI/scripts/genTlbx.m +++ b/CI/scripts/genTlbx.m @@ -7,7 +7,7 @@ function genTlbx(examples) version = '20.1.1'; ml = ver('MATLAB'); ml = ml.Release(2:end-1); - +uuid = matlab.lang.internal.uuid; %% cd(fileparts((mfilename('fullpath')))); @@ -26,6 +26,7 @@ function genTlbx(examples) f = strrep(f,'__REPO-ROOT__',p); f = strrep(f,'__VERSION__',version); f = strrep(f,'__ML-RELEASE__',ml); +f = strrep(f,'__UUID__',uuid); fid = fopen('../../bsp.prj','w'); fprintf(fid,'%s',f);