Add elf building step to makefile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user