Making kernel Higher-Half
This commit is contained in:
parent
9dc527b3be
commit
f13b26eeb4
18 changed files with 290 additions and 131 deletions
|
@ -1,5 +1,5 @@
|
|||
EXEC := boucane
|
||||
CC := g++ -nostdlib -nostdinc -no-pie -fno-builtin -fno-stack-protector -I ./ -I include
|
||||
CC := g++ -mcmodel=large -nostdlib -nostdinc -no-pie -fno-builtin -fno-stack-protector -I ./ -I include
|
||||
LD_SCRIPT := linker.ld
|
||||
|
||||
# Note that BOOT_OBJ do not match boot.S
|
||||
|
@ -14,8 +14,7 @@ RES_OBJ := $(addsuffix .o,$(basename $(shell find ./res -type f)))
|
|||
all: $(EXEC)
|
||||
|
||||
$(EXEC): boot/boot.o $(BOOT_OBJ) $(DRIVERS_OBJ) $(LIBS_OBJ) $(CORE_OBJ) $(RES_OBJ) boucane.o
|
||||
echo "Resource: $(RES_OBJ)"
|
||||
$(CC) -n -T $(LD_SCRIPT) -nostdlib -o $@ $^
|
||||
$(CC) -T $(LD_SCRIPT) -nostdlib -o $@ $^
|
||||
|
||||
%.o: %.S
|
||||
as -o $@ $^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue