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:
		
							
								
								
									
										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
 | 
					LD = $(TOOL_PREFIX)ld
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Define the flags we'll need for our tools
 | 
					# 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
 | 
					KLDFLAGS = -T link.ld
 | 
				
			||||||
 | 
					
 | 
				
			||||||
KOBJS = 
 | 
					KOBJS = 
 | 
				
			||||||
@@ -51,3 +52,7 @@ clean:
 | 
				
			|||||||
	@rm -f $(KOBJS)
 | 
						@rm -f $(KOBJS)
 | 
				
			||||||
	@echo '  CLEAN aedrix-kernel'
 | 
						@echo '  CLEAN aedrix-kernel'
 | 
				
			||||||
	@rm -f aedrix-kernel
 | 
						@rm -f aedrix-kernel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.PHONY: boot
 | 
				
			||||||
 | 
					boot: aedrix-kernel
 | 
				
			||||||
 | 
						@qemu-system-arm -m 128 -kernel aedrix-kernel -serial stdio
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user