create a platform config-* file if there is none already when running kernel_menuconfig or kernel_oldconfig
SVN-Revision: 11460
This commit is contained in:
parent
983b22aa95
commit
d26fa58d25
3 changed files with 2 additions and 1 deletions
BIN
include/.target.mk.swp
Normal file
BIN
include/.target.mk.swp
Normal file
Binary file not shown.
|
@ -77,6 +77,7 @@ define BuildKernel
|
|||
$(MAKE) -C image compile TARGET_BUILD=
|
||||
|
||||
oldconfig menuconfig: $(STAMP_PREPARED) FORCE
|
||||
[ -e "$(LINUX_CONFIG)" ] || touch "$(LINUX_CONFIG)"
|
||||
$(LINUX_CONFCMD) > $(LINUX_DIR)/.config
|
||||
touch $(LINUX_CONFIG)
|
||||
$(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) $$@
|
||||
|
|
|
@ -109,7 +109,7 @@ GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/patches$(shell [ -d "$(GENERIC_PLAT
|
|||
GENERIC_FILES_DIR := $(GENERIC_PLATFORM_DIR)/files$(shell [ -d "$(GENERIC_PLATFORM_DIR)/files-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true )
|
||||
|
||||
GENERIC_LINUX_CONFIG?=$(firstword $(wildcard $(GENERIC_PLATFORM_DIR)/config-$(KERNEL_PATCHVER) $(GENERIC_PLATFORM_DIR)/config-default))
|
||||
LINUX_CONFIG?=$(firstword $(wildcard $(foreach subdir,$(PLATFORM_DIR) $(PLATFORM_SUBDIR),$(subdir)/config-$(KERNEL_PATCHVER) $(subdir)/config-default)))
|
||||
LINUX_CONFIG?=$(firstword $(wildcard $(foreach subdir,$(PLATFORM_DIR) $(PLATFORM_SUBDIR),$(subdir)/config-$(KERNEL_PATCHVER) $(subdir)/config-default)) $(PLATFORM_DIR)/config-$(KERNEL_PATCHVER))
|
||||
LINUX_SUBCONFIG?=$(firstword $(wildcard $(PLATFORM_SUBDIR)/config-$(KERNEL_PATCHVER) $(PLATFORM_SUBDIR)/config-default))
|
||||
ifeq ($(LINUX_CONFIG),$(LINUX_SUBCONFIG))
|
||||
LINUX_SUBCONFIG:=
|
||||
|
|
Loading…
Reference in a new issue