Removed STD stuff

rust
E. Almqvist 3 years ago
parent 5b13d9b1ba
commit 314719e12b
  1. 5
      Makefile
  2. 3
      kernel/test.rs

@ -7,7 +7,8 @@ CFLAGS = -fno-pie -m32 -Os -ffreestanding
# Rust
RC = rustc
# WARN: target might not exist on your machine. Just swap it out to whatever 32bit target that you have.
RFLAGS = --emit=obj --target i686-unknown-linux-gnu
RTARGET = i686-unknown-linux-gnu
RFLAGS = --emit=obj --target $(RTARGET)
# Assembly
AA = nasm
@ -55,7 +56,7 @@ kernel.bin: kernel/kernel_entry.o kernel/enable_paging.o $(OBJ) $(ROBJ)
$(CC) $(CFLAGS) -c $< -o $@
%.o : %.rs
$(RC) $(RFLAGS) $< -o $@
$(RC) $< -o $@ $(RFLAGS)
%.o : %.asm
$(AA) $< -f elf -o $@ $(AFLAGS)

@ -1,3 +1,6 @@
#![no_std]
#![no_main]
extern "C" {
fn println(text: &str);
}

Loading…
Cancel
Save