From patchwork Thu Dec 17 09:57:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bamvor Zhang Jian X-Patchwork-Id: 58535 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp260228lbb; Thu, 17 Dec 2015 01:58:55 -0800 (PST) X-Received: by 10.66.222.101 with SMTP id ql5mr70871591pac.144.1450346335354; Thu, 17 Dec 2015 01:58:55 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u74si11463354pfa.185.2015.12.17.01.58.55; Thu, 17 Dec 2015 01:58:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755974AbbLQJ6v (ORCPT + 29 others); Thu, 17 Dec 2015 04:58:51 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:32771 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932527AbbLQJ6T (ORCPT ); Thu, 17 Dec 2015 04:58:19 -0500 Received: by mail-pa0-f46.google.com with SMTP id ur14so39777740pab.0 for ; Thu, 17 Dec 2015 01:58:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YlU/blgxzYT4crnAk9XV3lthViI7cntEK0864agEoXA=; b=ZQOe1ovXHX/Bjj59xIdLJxBEwY5xWx3i6pRz4145D7da7jPn93fK/jCTDJH7RHAtiW zElcW1eRKU8epIB+7Ihp7ZxrjfJWeMlzBlAlwLLXLvEunmCE2UMs05XW/cqDL1ZMTuLo wH9xNPw4tvRATk3ktYn6pubpxNowKh+HEkPYw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YlU/blgxzYT4crnAk9XV3lthViI7cntEK0864agEoXA=; b=DXNL7KUwatJ4EJOlPD9tuVyquP4enne1qiWlsvu607Xqa7rq6r4r0b2TZ4lOKR+/Ez /cPjnbVnCrx7c3+5AvBmLujsYLOneg9dsZYGc7c9+DnBe8Sbpgm/DLr0NAWrS+QBPgkz z0gJ1iOzLj3xKfaRfB2lCee9NiCKtSOgk8VJYorKrHGVgITCYYKvM4PxmO/ajR07oYVr JUp3PyE4gwc2LHuIaJU+BvfcfDHngyaE4LOdGwBmC1TYsw1Tf6foa5EXjlIdY2yFBpR3 VOe/emv8ucozQqbYsXxozayUbQLpD5Onbf7inXT6PsymNwBdZ6ikxkHMVlvR+Ej3w4Xi kMPA== X-Gm-Message-State: ALoCoQkyBlCYVr7OKUlp1id7e7vul17CeVFHOvG1Vqk9NsFmst2nhiJL5BPUqjSbpuBwkgmFXLkIDkvhmW7xdbxpPwJkpnAnNA== X-Received: by 10.66.161.70 with SMTP id xq6mr27572518pab.73.1450346298818; Thu, 17 Dec 2015 01:58:18 -0800 (PST) Received: from linux-j170.site (li753-237.members.linode.com. [106.185.42.237]) by smtp.gmail.com with ESMTPSA id o22sm10236621pfi.2.2015.12.17.01.58.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Dec 2015 01:58:18 -0800 (PST) From: Bamvor Jian Zhang To: linux-api@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, shuahkh@osg.samsung.com, yann.morin.1998@free.fr, khilman@linaro.org, tyler.baker@linaro.org, broonie@kernel.org, mpe@ellerman.id.au, dvhart@infradead.org, Bamvor Jian Zhang Subject: [PATCH v3 2/2] scripts/kconfig/Makefile: add kselftest-mergeconfig Date: Thu, 17 Dec 2015 17:57:53 +0800 Message-Id: <1450346273-31633-4-git-send-email-bamvor.zhangjian@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1450346273-31633-1-git-send-email-bamvor.zhangjian@linaro.org> References: <1450346273-31633-1-git-send-email-bamvor.zhangjian@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add kselftest-mergeconfig to enable the dependencies of kernel config for all the kselftest testcases. User could call it after create the kernel configuration(.config), eg: $ make kselftest-mergeconfig Signed-off-by: Bamvor Jian Zhang --- scripts/kconfig/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index d79cba4..2694638 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -126,6 +126,14 @@ PHONY += tinyconfig tinyconfig: $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config +PHONY += kselftest-mergeconfig +kselftest-mergeconfig: $(obj)/conf + $(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!)) + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \ + -m $(objtree)/.config \ + $(srctree)/tools/testing/selftests/*/config + +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig + # Help text used by make help help: @echo ' config - Update current config utilising a line-oriented program' @@ -151,6 +159,7 @@ help: @echo ' kvmconfig - Enable additional options for kvm guest kernel support' @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support' @echo ' tinyconfig - Configure the tiniest possible kernel' + @echo ' kselftest-mergeconfig - Merge all the config dependencies of kselftest to .config' # lxdialog stuff check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh