Move confign to defconfig

This commit is contained in:
Mark
2020-08-07 13:01:24 +03:00
parent 236f4e5bf5
commit d0af6bbee5
3 changed files with 16 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
# vi: ft=make :
ENABLE_UNIX=0
ENABLE_NET=0
ENABLE_VESA=0
+10 -1
View File
@@ -1,7 +1,16 @@
export CC=$(CROSS_COMPILE)gcc
export O?=build
all: mkdirs $(O)/kernel
all: chkconfig mkdirs $(O)/kernel
chkconfig:
@[ -f Kernel.config ] || { \
echo "Kernel.config is not present. Run 'make defconfig' to make one" >&2; \
exit 1; \
}
defconfig: Kernel.defconfig
cp $< Kernel.config
clean:
rm -rf $(O)
+2
View File
@@ -1,4 +1,6 @@
ifneq (,$(wildcard ./Kernel.config))
include Kernel.config
endif
ifeq ($(ENABLE_UNIX),1)
KERNEL_DEF+=-DENABLE_UNIX=1