@@ -10,8 +10,6 @@ trigger:
10
10
- trying
11
11
# Build pull requests.
12
12
- master
13
- # Build post braches
14
- - post-*
15
13
16
14
strategy :
17
15
matrix :
@@ -64,11 +62,11 @@ steps:
64
62
displayName : ' Print Rust Version'
65
63
continueOnError : true
66
64
67
- - script : rustup component add rust-src
68
- displayName : ' Install Rustup Src Component '
65
+ - script : rustup component add rust-src llvm-tools-preview
66
+ displayName : ' Install Rustup Components '
69
67
70
- - script : cargo install cargo-xbuild bootimage --debug
71
- displayName : ' Install cargo-xbuild and bootimage '
68
+ - script : cargo install cargo-xbuild cargo-binutils --debug
69
+ displayName : ' Install cargo-xbuild cargo-binutils '
72
70
73
71
- script : sudo apt update && sudo apt install qemu-system-x86
74
72
condition : eq( variables['Agent.OS'], 'Linux' )
@@ -96,20 +94,15 @@ steps:
96
94
workingDirectory : example-kernel
97
95
displayName : ' Build Example Kernel'
98
96
99
- - script : cargo run -- --kernel ../example-kernel/target/x86_64-example-kernel/debug/example-kernel
100
- workingDirectory : builder
97
+ - script : cargo xbuild --release
101
98
displayName : ' Build Bootloader'
99
+ env : { KERNEL: "example-kernel/target/x86_64-example-kernel/debug/example-kernel" }
100
+
101
+ - script : cargo objcopy -- -I elf64-x86-64 -O binary --binary-architecture=i386:x86-64 target/x86_64-bootloader/release/bootloader target/x86_64-bootloader/release/bootloader.bin
102
+ displayName : ' Convert Bootloader ELF to Binary'
102
103
103
104
- bash : |
104
- qemu-system-x86_64 -drive format=raw,file=target/x86_64-bootloader/release/bootimage .bin -device isa-debug-exit,iobase=0xf4,iosize=0x04 -display none
105
+ qemu-system-x86_64 -drive format=raw,file=target/x86_64-bootloader/release/bootloader .bin -device isa-debug-exit,iobase=0xf4,iosize=0x04 -display none
105
106
if [ $? -eq 123 ]; then (exit 0); else (exit 1); fi
106
107
displayName : ' Test Bootloader'
107
108
108
- - script : cargo run -- --kernel ../example-kernel/target/x86_64-example-kernel/debug/example-kernel --features vga_320x200
109
- workingDirectory : builder
110
- displayName : ' Build Bootloader (Feature vga_320x200)'
111
-
112
- - bash : |
113
- qemu-system-x86_64 -drive format=raw,file=target/x86_64-bootloader/release/bootimage.bin -device isa-debug-exit,iobase=0xf4,iosize=0x04 -display none
114
- if [ $? -eq 123 ]; then (exit 0); else (exit 1); fi
115
- displayName : ' Test Bootloader (Feature vga_320x200)'
0 commit comments