Skip to content

Commit ecaf208

Browse files
ichdreamlsf37
authored andcommitted
cmake: create script only if SIMULATION is enabled
The simulation scripts are useless if the target is a real board and not a QEMU simulation. Thus they will only be created if SIMULATION is explicitly ON (-DSIMULATION=TRUE). SIMULATION is disabled by default Signed-off-by: ichdream <chensheng0802@outlook.com>
1 parent 989759f commit ecaf208

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ elfloader_import_project()
3030

3131
add_subdirectory(apps/sel4test-driver)
3232

33-
include(simulation)
34-
if(KernelSel4ArchX86_64)
35-
SetSimulationScriptProperty(MEM_SIZE "3G")
33+
if(SIMULATION)
34+
include(simulation)
35+
if(KernelSel4ArchX86_64)
36+
SetSimulationScriptProperty(MEM_SIZE "3G")
37+
endif()
38+
if(KernelPlatformQEMUArmVirt)
39+
SetSimulationScriptProperty(MEM_SIZE "2G")
40+
endif()
41+
GenerateSimulateScript()
3642
endif()
37-
if(KernelPlatformQEMUArmVirt)
38-
SetSimulationScriptProperty(MEM_SIZE "2G")
39-
endif()
40-
41-
GenerateSimulateScript()

0 commit comments

Comments
 (0)