Implemented support for building host binaries to test kernel features

This commit is contained in:
2022-12-26 22:12:53 +00:00
parent 23e8e654d9
commit 83c7f2293c
7 changed files with 67 additions and 2 deletions

View File

@@ -60,9 +60,10 @@ $(BUILD_DIR)/%.o: %.c
@$(CC) $< -o $@ -c $(CFLAGS) $(ARCH_CFLAGS)
clean:
@printf " \033[1;93mRM\033[0m Deleting build artefacts.\n"
@printf " \033[1;93mRM\033[0m Deleting kernel build artefacts.\n"
@rm -rf $(BUILD_DIR)
@$(MAKE) -C sandbox clean
all: $(BUILD_DIR)/$(KERNEL_EXEC)
@@ -73,10 +74,13 @@ $(BUILD_DIR)/compile_commands.json:
@./tools/make/generate_compile_commands.py
sandbox:
@$(MAKE) -C sandbox
compile-db: $(BUILD_DIR)/compile_commands.json
include arch/$(ARCH)/extra.mk
.PHONY: all compile-db
.PHONY: all compile-db sandbox
.INTERMEDIATE: $(ARCH_TEMP_FILES)