Move confign to defconfig
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# vi: ft=make :
|
||||
ENABLE_UNIX=0
|
||||
ENABLE_NET=0
|
||||
ENABLE_VESA=0
|
||||
@@ -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)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
ifneq (,$(wildcard ./Kernel.config))
|
||||
include Kernel.config
|
||||
endif
|
||||
|
||||
ifeq ($(ENABLE_UNIX),1)
|
||||
KERNEL_DEF+=-DENABLE_UNIX=1
|
||||
|
||||
Reference in New Issue
Block a user