Skip to content

Commit e9ea535

Browse files
[nxp noup][examples][k32w0] Fix sign script location path
The path should be relative to the current file to take into account different build scripts that might change the location of the gn target, which will affect the relative location of the sign script. Signed-off-by: marius-alex-tache <marius.tache@nxp.com>
1 parent 50cc545 commit e9ea535

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/platform/nxp/k32w/k32w0/scripts/sign-outdir.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def main(args):
1111
path_prefix = "/core"
1212
sign_images_path = os.environ["NXP_K32W0_SDK_ROOT"] + path_prefix + "/tools/imagetool/sign_images.sh"
1313
else:
14-
sign_images_path = os.getcwd() + "/../../../../../../../third_party/nxp/github_sdk/k32w0/repo/core/tools/imagetool/sign_images.sh"
14+
sign_images_path = os.path.abspath(
15+
__file__ + "/../../../../../../../third_party/nxp/github_sdk/k32w0/repo/core/tools/imagetool/sign_images.sh")
1516

1617
# Give execute permission if needed
1718
if os.access(sign_images_path, os.X_OK) is False:

0 commit comments

Comments
 (0)