Add elf building step to makefile

This commit is contained in:
greg
2017-03-30 17:24:12 -07:00
parent 17466c6547
commit 2677cf131d

View File

@@ -18,8 +18,11 @@ rust_loader.o: rust_loader.s
#rust_kernel.o: rust_kernel.rs
# rustc --target ./arm-none-eabihf.json --emit=obj -Cpanic=abort -C lto rust_kernel.rs
xargo_step: src/lib.rs
~/.cargo/bin/xargo build
kernel.elf: rust_kernel.o rust_loader.o
arm-none-eabi-gcc -T rust_linker_script.ld -o kernel.elf -ffreestanding -nostdlib rust_loader.o rust_kernel.o
arm-none-eabi-gcc -T rust_linker_script.ld -o kernel.elf -ffreestanding -nostdlib rust_loader.o target/arm-none-eabihf/debug/libraspi_xargo.rlib
clean:
rm -f *.o