Skip to content

Commit

Permalink
feat(setup-cfg): Add make flags for IRQ controller to the cfg
Browse files Browse the repository at this point in the history
This commit adds a irq_flags variable as an output of the setup-cfg.
These flags are filled according to the platform arch.
  • Loading branch information
miguelafsilva5 committed May 31, 2024
1 parent 8f5aa3d commit c9ac9d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/setup-cfg/setup-cfg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
, bao-tests ? " "
, tests_srcs ? " "
, baremetal_patch ? " "
, GIC_VERSION ? " "
, IRQC ? " "
, IPIC ? " "
}:
let
platforms-arch = {
Expand Down Expand Up @@ -43,4 +46,8 @@ in {
bao-tests = bao-tests;
tests_srcs = tests_srcs;
baremetal_patch = baremetal_patch;

irq_flags = if arch == "riscv64" then
"IRQC=${IRQC} IPIC=${IPIC}"
else "GIC_VERSION=${GIC_VERSION}"
}

0 comments on commit c9ac9d8

Please sign in to comment.