From 29404c419952466184e72075ecf846ae95ddbf63 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Fri, 7 Sep 2012 23:58:19 -0400 Subject: [PATCH] Add .gitignore, update Makefile Add 'boot' make target, which boots the kernel in a simple QEMU configuration. Also updated CFLAGS in Makefile. --- .gitignore | 3 +++ Makefile | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .gitignore 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