Skip to content

Commit

Permalink
aarch64 nix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
theverygaming committed Sep 30, 2024
1 parent 3791e6e commit 316009e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,21 @@ jobs:
step_bootimg: make bootimg-x86-32 MAKE_ARCH=x86
nm: i686-elf-nm
runcmd: qemu-system-x86_64 -cdrom vix.iso -nographic
ignore_test_failure: false
- flake: x86-64
step_config: make alldefconfig MAKE_ARCH=x86 && make tests MAKE_ARCH=x86 && sed -i "s/CONFIG_ENABLE_KERNEL_32=y/# CONFIG_ENABLE_KERNEL_32=y\nCONFIG_ENABLE_KERNEL_64=y/g" kernel/.config
step_build: make MAKE_ARCH=x86 CROSS_COMPILE=x86_64-elf-
step_bootimg: make bootimg-x86-64 MAKE_ARCH=x86
nm: x86_64-elf-nm
runcmd: qemu-system-x86_64 -nographic -serial mon:stdio -hda vix_uefi.img
ignore_test_failure: false
- flake: aarch64
step_config: make alldefconfig MAKE_ARCH=aarch64 && make tests MAKE_ARCH=aarch64
step_build: make MAKE_ARCH=aarch64 CROSS_COMPILE=aarch64-none-elf-
step_bootimg: make bootimg-aarch64 MAKE_ARCH=aarch64
nm: aarch64-none-elf-nm
runcmd: qemu-system-aarch64 -m 1024m -bios "$VIX_QEMU_UEFI_BIOS_PATH" -cpu cortex-a53 -smp 4 -machine virt -device ramfb -device qemu-xhci -device usb-kbd -nographic -serial mon:stdio -hda vix_uefi.img
ignore_test_failure: true
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -45,6 +54,7 @@ jobs:
# name: ci-run-x86_32
# path: ${{runner.workspace}}/vix/vix.iso
- name: Check Tests
continue-on-error: ${{ matrix.stuff.ignore_test_failure }}
run: |
nix develop .#${{ matrix.stuff.flake }} --command bash -c '${{ matrix.stuff.nm }} --format=bsd -n kernel/kernel.o | python3 tools/testparser.py log.txt >> $GITHUB_STEP_SUMMARY'
nix develop .#${{ matrix.stuff.flake }} --command bash -c '${{ matrix.stuff.nm }} --format=bsd -n kernel/kernel.o | python3 tools/testparser.py log.txt -f'
Expand Down
3 changes: 2 additions & 1 deletion nix-shells/aarch64.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ pkgs.stdenv.mkDerivation {
] ++ common.commonPkgs ++ common.limine ++ common.fatTools;

shellHook = common.shellHook + ''
export VIX_QEMU_UEFI_BIOS_PATH="${pkgs.qemu}/share/qemu/edk2-aarch64-code.fd"
alias vix-build='make MAKE_ARCH=aarch64 CROSS_COMPILE=aarch64-none-elf- -j$NIX_BUILD_CORES && make bootimg-aarch64'
alias vix-run='qemu-system-aarch64 -m 1024 -bios "${pkgs.qemu}/share/qemu/edk2-aarch64-code.fd" -cpu cortex-a53 -smp 4 -machine virt -device ramfb -device qemu-xhci -device usb-kbd -hda vix_uefi.img'
alias vix-run='qemu-system-aarch64 -m 1024 -bios "$VIX_QEMU_UEFI_BIOS_PATH" -cpu cortex-a53 -smp 4 -machine virt -device ramfb -device qemu-xhci -device usb-kbd -hda vix_uefi.img'
'';
}

0 comments on commit 316009e

Please sign in to comment.