Skip to content

Commit

Permalink
fix(baremetal): update baremetal recipe to use irq flags
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Costa <[email protected]>
  • Loading branch information
Diogo21Costa committed Jun 1, 2024
1 parent 0f1e0be commit 25dad55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkgs/guest/baremetal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
, setup-cfg
, guest_name ? "baremetal"
, baremetal_srcs_path ? " "
, irq_controller ? " "
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -43,7 +42,7 @@ stdenv.mkDerivation rec {
export CROSS_COMPILE=${setup-cfg.toolchain_name}-
if [ ARCH == "aarch64" ]; then
make -C $out PLATFORM=${setup-cfg.platform_name} \
GIC_VERSION=${irq_controller}
${setup-cfg.irq_flags}
else
make -C $out PLATFORM=${setup-cfg.platform_name}
fi
Expand Down
3 changes: 1 addition & 2 deletions pkgs/guest/tf/baremetal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
, list_tests ? " "
, list_suites ? " "
, log_level ? "2"
, irq_controller ? " "
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -67,7 +66,7 @@ stdenv.mkDerivation rec {
make -C $out PLATFORM=${setup-cfg.platform_name} \
BAO_TEST=1 SUITES=${list_suites} TESTS=${list_tests} \
TESTF_LOG_LEVEL=${log_level} \
GIC_VERSION=${irq_controller}
${setup-cfg.irq_flags}
else
make -C $out PLATFORM=${setup-cfg.platform_name} \
BAO_TEST=1 SUITES=${list_suites} TESTS=${list_tests} \
Expand Down

0 comments on commit 25dad55

Please sign in to comment.