Skip to content

Commit

Permalink
fix(baremetal.nix): fix arch check condition
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Costa <[email protected]>
  • Loading branch information
Diogo21Costa authored and ESCristiano committed Jul 31, 2024
1 parent f9ab3c1 commit db1516f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/guest/baremetal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
buildPhase = ''
export ARCH=${setup-cfg.arch}
export CROSS_COMPILE=${setup-cfg.toolchain_name}-
if [ ARCH == "aarch64" ]; then
if [ "$ARCH" == "aarch64" ]; then
make -C $out PLATFORM=${setup-cfg.platform_name} \
${setup-cfg.irq_flags}
else
Expand Down
2 changes: 1 addition & 1 deletion pkgs/guest/tf/baremetal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
export CROSS_COMPILE=${setup-cfg.toolchain_name}-
export TESTF_TESTS_DIR=$out/tests/src
export TESTF_REPO_DIR=$out/tests/bao-tests
if [ ARCH == "aarch64" ]; then
if [ "ARCH" == "aarch64" ]; then
make -C $out PLATFORM=${setup-cfg.platform_name} \
BAO_TEST=1 SUITES=${list_suites} TESTS=${list_tests} \
TESTF_LOG_LEVEL=${log_level} \
Expand Down

0 comments on commit db1516f

Please sign in to comment.