diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-03-01 13:42:18 +0000 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-03-01 13:45:39 +0000 |
commit | 6b9adad2bde07764bc0b28ff0a43c72306d5e139 (patch) | |
tree | 11015516426615cf6c558e45a571a9852719bb95 /scripts/cmake | |
parent | acc6b85c0086ff4a37d2108ec9edfb8faf6f43e6 (diff) | |
download | ml-embedded-evaluation-kit-6b9adad2bde07764bc0b28ff0a43c72306d5e139.tar.gz |
MLECO-2881: Minor improvements for downloaded resources
Check could have been bypassed if the script path provided as
an argument was incorrect. Also, a minor update in the CMake
function to fix the path.
Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Change-Id: Id3cd4027843783e3ed8700eac503e7ba3f09ad04
Diffstat (limited to 'scripts/cmake')
-rw-r--r-- | scripts/cmake/util_functions.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cmake/util_functions.cmake b/scripts/cmake/util_functions.cmake index ee9eceb..25f9731 100644 --- a/scripts/cmake/util_functions.cmake +++ b/scripts/cmake/util_functions.cmake @@ -196,9 +196,9 @@ function(check_update_public_resources resource_downloaded_dir) string(JOIN "/" FILE_URL ${resource_downloaded_dir}) execute_process( - COMMAND python3 ${CMAKE_SOURCE_DIR}/scripts/py/check_update_resources_downloaded.py + COMMAND python3 ${SCRIPTS_DIR}/py/check_update_resources_downloaded.py --resource_downloaded_dir ${resource_downloaded_dir} - --setup_script_path ${CMAKE_SOURCE_DIR}/set_up_default_resources.py + --setup_script_path ${SCRIPTS_DIR}/../set_up_default_resources.py RESULT_VARIABLE return_code ) if (NOT return_code EQUAL "0") |