diff --git a/fre/make/create_compile_script.py b/fre/make/create_compile_script.py index 6b1bd94a..ed131bcc 100644 --- a/fre/make/create_compile_script.py +++ b/fre/make/create_compile_script.py @@ -56,7 +56,7 @@ def compile_create(yamlfile,platform,target,jobs,parallel,execute,verbose): if modelYaml.platforms.hasPlatform(platformName): pass else: - raise ValueError (platformName + " does not exist in " + modelYaml.combined.get("compile").get("platformYaml")) + raise ValueError (f"{platformName} does not exist in platforms.yaml") platform=modelYaml.platforms.getPlatformFromName(platformName) ## Make the bldDir based on the modelRoot, the platform, and the target diff --git a/fre/make/create_docker_script.py b/fre/make/create_docker_script.py index e785dc82..cde401c2 100644 --- a/fre/make/create_docker_script.py +++ b/fre/make/create_docker_script.py @@ -42,8 +42,7 @@ def dockerfile_create(yamlfile,platform,target,execute): if modelYaml.platforms.hasPlatform(platformName): pass else: - raise ValueError (platformName + " does not exist in " + \ - modelYaml.combined.get("compile").get("platformYaml")) + raise ValueError (f"{platformName} does not exist in platforms.yaml") platform = modelYaml.platforms.getPlatformFromName(platformName) diff --git a/fre/make/create_makefile_script.py b/fre/make/create_makefile_script.py index fe12e62d..3a3ccaec 100644 --- a/fre/make/create_makefile_script.py +++ b/fre/make/create_makefile_script.py @@ -9,6 +9,9 @@ import fre.yamltools.combine_yamls as cy def makefile_create(yamlfile,platform,target): + """ + Create the makefile + """ srcDir="src" checkoutScriptName = "checkout.sh" baremetalRun = False # This is needed if there are no bare metal runs @@ -39,7 +42,7 @@ def makefile_create(yamlfile,platform,target): if modelYaml.platforms.hasPlatform(platformName): pass else: - raise ValueError (platformName + " does not exist in " + modelYaml.combined.get("compile").get("platformYaml")) + raise ValueError (f"{platformName} does not exist in platforms.yaml") platform=modelYaml.platforms.getPlatformFromName(platformName) ## Make the bldDir based on the modelRoot, the platform, and the target diff --git a/fre/make/run_fremake_script.py b/fre/make/run_fremake_script.py index 0d0ea534..f1e44970 100644 --- a/fre/make/run_fremake_script.py +++ b/fre/make/run_fremake_script.py @@ -69,8 +69,7 @@ def fremake_run(yamlfile,platform,target,parallel,jobs,no_parallel_checkout,exec if modelYaml.platforms.hasPlatform(platformName): pass else: - raise ValueError(f'{platformName} does not exist in ' - f'{modelYaml.combined.get("compile").get("platformYaml")}') + raise ValueError (f"{platformName} does not exist in platforms.yaml") platform = modelYaml.platforms.getPlatformFromName(platformName)