From patchwork Mon May 20 15:48:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 2594001 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8B4633FD4E for ; Mon, 20 May 2013 15:48:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756158Ab3ETPsO (ORCPT ); Mon, 20 May 2013 11:48:14 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:64337 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755943Ab3ETPsN (ORCPT ); Mon, 20 May 2013 11:48:13 -0400 Received: by mail-we0-f181.google.com with SMTP id u57so932772wes.40 for ; Mon, 20 May 2013 08:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=kJd2wUovNFtqAVjL7Vpl/9FUF5yhPBn//AZCVmaZfG8=; b=Jtu2/RMGSJjpIC5sN1B9/00efrBBufUwNvAG4vRvP5+GLGKEPL04OILcap71NSP8xO 095CxTX4/tlXiFmyNLkDpZvp27mCO4TnEZmrGDwW+KH8BOMaOlabQfMKWoscOBDlH1pJ Y1FyCw0Cu7NjffjlPYSP7a1sG96q49UNpSocwwNoKy0/4rbEPh5ex/mae01+Du/lZoEh GoTzCMQ2WmCyLkG3hTviGeS+QBxSHOwpsr9viuBN2iXpGMB+R6xmjeTyqynBLk7F1MwG 1MzEI5zY48RB5dF1g5/Gc2dcCPWH+cT1aMf/mtfNb8tsDc0zlWLOqRSyUjeWSaoLCujK 1DxQ== X-Received: by 10.180.9.238 with SMTP id d14mr15138855wib.18.1369064891714; Mon, 20 May 2013 08:48:11 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id ed20sm15600510wic.0.2013.05.20.08.48.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 08:48:10 -0700 (PDT) From: "Yann E. MORIN" To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Clement Chauplannaz , "Yann E. MORIN" Subject: [PATCH 1/2] scripts/config: fix assignment of parameters for short version of --*-after options Date: Mon, 20 May 2013 17:48:02 +0200 Message-Id: <57a9c7609d7418ce75324df38f66cd7d937a77cb.1369064712.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Clement Chauplannaz When --*-after options are used, two parameters are parsed from the command-line before the adequate function is called: - the `before' option, after which the new option will be inserted, - the name of the option to enable/disable/modularise. With the short version of --*-after options (namely -E, -D, -M), the parsing step is not performed which leads to processing unset variables. Add options -E, -D, -M to the test that triggers assignment of parameters for --*-after options. Signed-off-by: Clement Chauplannaz Acked-by: Andi Kleen Signed-off-by: Yann E. MORIN --- scripts/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config b/scripts/config index bb4d3de..a65ecbb 100755 --- a/scripts/config +++ b/scripts/config @@ -105,7 +105,7 @@ while [ "$1" != "" ] ; do ;; --refresh) ;; - --*-after) + --*-after|-E|-D|-M) checkarg "$1" A=$ARG checkarg "$2"