Skip to content

Commit

Permalink
CMake: fail for unsupported platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Jan 2, 2024
1 parent 3857c24 commit 5a81a5d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/Arm/vm_cross_connector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ elseif(KernelPlatformQEMUArmVirt)
if(SIMULATION)
GenerateSimulateScript()
endif()
else()
message(FATAL_ERROR "unsupported platform")
endif()

AddToFileServer("linux" "${CAMKES_VM_IMAGES_DIR}/${KernelARMPlatform}/linux")
Expand Down
2 changes: 2 additions & 0 deletions apps/Arm/vm_introspect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ elseif(KernelPlatformQEMUArmVirt)
GenerateSimulateScript()
endif()

else()
message(FATAL_ERROR "unsupported platform")
endif()

AddToFileServer("linux" "${CAMKES_VM_IMAGES_DIR}/${KernelARMPlatform}/linux")
Expand Down
3 changes: 3 additions & 0 deletions apps/Arm/vm_minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ elseif(KernelPlatformOdroidc2)
output_dtb_location
)
AddToFileServer("linux-dtb" "${output_dtb_location}" DEPENDS dtb_gen_target)

else()
message(FATAL_ERROR "unsupported platform")
endif()

AddCamkesCPPFlag(cpp_flags CONFIG_VARS VmEmmc2NoDMA VmVUSB Tk1DeviceFwd Tk1Insecure)
Expand Down
2 changes: 2 additions & 0 deletions apps/Arm/vm_multi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ elseif(KernelPlatformQEMUArmVirt)
if(SIMULATION)
GenerateSimulateScript()
endif()
else()
message(FATAL_ERROR "unsupported platform")
endif()

# Generate our overlayed rootfs images
Expand Down
3 changes: 3 additions & 0 deletions apps/Arm/vm_virtio_net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ elseif(KernelPlatformTx2)
set(rootfs_address "0xf7000000")
set(dtb_file "${CAMKES_VM_IMAGES_DIR}/${KernelARMPlatform}/linux-pci-dtb")
set(rootfs_file "${CAMKES_VM_IMAGES_DIR}/${KernelARMPlatform}/rootfs_crossvm.cpio.gz")

else()
message(FATAL_ERROR "unsupported platform")
endif()

# Generate overlayed rootfs
Expand Down

0 comments on commit 5a81a5d

Please sign in to comment.