diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-13 18:32:07 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-13 18:32:07 +0200 |
commit | 0431aecf1ef30a297c5a02c29b55eff11475dc43 (patch) | |
tree | d87c276081de8c1ff4371b125eb252644c4bbd8d /makefile | |
parent | libk: add Result<T, E> class (diff) | |
download | kernel.cpp-0431aecf1ef30a297c5a02c29b55eff11475dc43.tar.xz |
Add conf and mconf source code
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -2,7 +2,7 @@ include toolchain.makefile include .config OBJ_DIR != echo $(CONFIG_OBJ_DIR) -.PHONY: default clean test todo run +.PHONY: default clean test todo run menuconfig default: $(OBJ_DIR)/glitch.elf include libk/makefile @@ -38,6 +38,7 @@ $(CXX_TEST_OBJ): $(OBJ_DIR)/%.o : %.cc clean: @rm -rf $(autogen) $(AS_OBJ) $(CXX_OBJ) $(CXX_DEP) $(CXX_TEST_OBJ) $(OBJ_DIR)/glitch.elf $(OBJ_DIR)/isodir + @make -C tools/kconfig OBJ_DIR=$(CURDIR)/$(OBJ_DIR)/kconfig clean # testing test: $(CXX_TEST_OBJ) @@ -57,3 +58,11 @@ $(OBJ_DIR)/glitch.iso: $(OBJ_DIR)/glitch.elf grub/grub.cfg run: $(OBJ_DIR)/glitch.iso @$(EMU) $< -no-reboot -no-shutdown -monitor stdio +# menuconfig and mconf +CONF := $(OBJ_DIR)/kconfig/conf +MCONF := $(OBJ_DIR)/kconfig/mconf +$(CONF) $(MCONF): + @make -C tools/kconfig OBJ_DIR=$(CURDIR)/$(OBJ_DIR)/kconfig $(CURDIR)/$@ + +menuconfig: Kconfig $(MCONF) + $(MCONF) $< |