diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb70d51 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +aedrix-kernel +*.o +*.swp diff --git a/Makefile b/Makefile index 94808cf..ecedcec 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,8 @@ CC = $(TOOL_PREFIX)gcc LD = $(TOOL_PREFIX)ld # Define the flags we'll need for our tools -KCFLAGS = -Wall -Wextra -Werror -nostdlib -nostartfiles -ffreestanding -std=gnu99 +INCLUDES = -I include +KCFLAGS = -Wall -Wextra -Werror -nostdlib -nostartfiles -ffreestanding -std=gnu99 $(INCLUDES) KLDFLAGS = -T link.ld KOBJS = @@ -51,3 +52,7 @@ clean: @rm -f $(KOBJS) @echo ' CLEAN aedrix-kernel' @rm -f aedrix-kernel + +.PHONY: boot +boot: aedrix-kernel + @qemu-system-arm -m 128 -kernel aedrix-kernel -serial stdio