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:
parent
8fbb809a5e
commit
29404c4199
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
aedrix-kernel
|
||||
*.o
|
||||
*.swp
|
7
Makefile
7
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
|
||||
|
Loading…
Reference in New Issue
Block a user