Skip to content

Commit

Permalink
cmake: use flags instead of strings
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
axel-h committed Dec 1, 2023
1 parent d344043 commit 67a82f0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,10 @@ set_property(
# These options are now set in seL4Config.cmake
if(DEFINED CALLED_declare_default_headers)
# calculate the irq cnode size based on MAX_NUM_IRQ
if("${KernelArch}" STREQUAL "riscv")
if(KernelArchRiscV)
math(EXPR MAX_NUM_IRQ "${CONFIGURE_MAX_IRQ} + 2")
else()
if(
DEFINED KernelMaxNumNodes
AND CONFIGURE_NUM_PPI GREATER "0"
AND "${KernelArch}" STREQUAL "arm"
)
if(DEFINED KernelMaxNumNodes AND CONFIGURE_NUM_PPI GREATER "0" AND KernelArchARM)
math(
EXPR MAX_NUM_IRQ
"(${KernelMaxNumNodes}-1)*${CONFIGURE_NUM_PPI} + ${CONFIGURE_MAX_IRQ}"
Expand Down

0 comments on commit 67a82f0

Please sign in to comment.