[BOOT] Multiboot compliant kernel which runs 64 bit code

This commit is contained in:
thomas committed 2017-03-27 23:09:07 +02:00
1 parent 1f8d5b3482
commit df86be2973
13 files changed
+433 -4

No files matched your search

+14 -2
View File
@@ -4,12 +4,24 @@ ifeq ($(MITTOS64),)
$(error Build environment is not activated. Please source activate)
endif
.PHONY: all clean
.PHONY: all clean kernel
SHELL := bash
all:
CC=$(TARGET)-gcc
FLAGS_TO_PASS:= \
CC=$(CC)
all: kernel
# A trick to only build phony target if necessary
kernel:
ifeq ($(shell make -sqC kernel || echo 1), 1)
@(. util/helpers.sh; print_info "Building kernel")
$(MAKE) -C kernel install $(FLAGS_TO_PASS)
endif
clean:
@(. util/helpers.sh; print_info "Cleaning up")
$(MAKE) -C kernel clean
rm -f mittos64.iso
rm -f qemu-error.log