1
0
Fork 0

Add .gitignore, update Makefile

Add 'boot' make target, which boots the kernel in a simple QEMU
configuration. Also updated CFLAGS in Makefile.
This commit is contained in:
Aaron Lindsay 2012-09-07 23:58:19 -04:00
parent 8fbb809a5e
commit 29404c4199
2 changed files with 9 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
aedrix-kernel
*.o
*.swp

View File

@ -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