浏览代码

add stub for config-prepare if mini.config is not choosen

Waldemar Brodkorb 7 年之前
父节点
当前提交
9fb48ff071
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      target/Makefile

+ 5 - 0
target/Makefile

@@ -31,6 +31,7 @@ ADK_PACKAGE_CRYPTINIT_ROOT:=$(strip $(subst ",, $(ADK_PACKAGE_CRYPTINIT_ROOT)))
 ADK_PACKAGE_CRYPTINIT_SWAP:=$(strip $(subst ",, $(ADK_PACKAGE_CRYPTINIT_SWAP)))
 ADK_PACKAGE_CMDLINE:=root=$(ADK_PACKAGE_CRYPTINIT_ROOT) swap=$(ADK_PACKAGE_CRYPTINIT_SWAP) resume=/dev/mapper/swapcrypt
 
+ifeq ($(ADK_TARGET_KERNEL_USE_MINICONFIG),y)
 ifeq ($(ADK_TARGET_KERNEL_CUSTOMISING),y)
 config-prepare: $(ADK_TOPDIR)/.config
 	@PATH='$(HOST_PATH)' sed -n '/^ADK_KERNEL/s//CONFIG/p' $(ADK_TOPDIR)/.config \
@@ -124,6 +125,10 @@ config-prepare: $(ADK_TOPDIR)/.config
 	@cd $(BUILD_DIR) && cmp -s .kernelconfig.board .kernelconfig || \
 	    cp .kernelconfig.board .kernelconfig
 endif
+else
+config-prepare: $(ADK_TOPDIR)/.config
+	@true
+endif
 
 prepare: $(ADK_TARGET_ARCH)-prepare
 compile: $(ADK_TARGET_ARCH)-compile