From patchwork Wed Sep 3 20:48:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 385640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E956C1401FA for ; Thu, 4 Sep 2014 06:48:47 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 72F7FA7493; Wed, 3 Sep 2014 22:48:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ig5aVn0EIL9E; Wed, 3 Sep 2014 22:48:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8A44EA76A4; Wed, 3 Sep 2014 22:48:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B7609A76A4 for ; Wed, 3 Sep 2014 22:48:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uCyPyjRF-U5F for ; Wed, 3 Sep 2014 22:48:38 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by theia.denx.de (Postfix) with ESMTPS id 7D7CEA7493 for ; Wed, 3 Sep 2014 22:48:35 +0200 (CEST) Received: by mail-pa0-f41.google.com with SMTP id lj1so18269150pab.14 for ; Wed, 03 Sep 2014 13:48:33 -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; bh=5ZNncJEy47wZyrOQf3Y8pYTvngSYUt9UMoyfkAVlPzY=; b=nwQGx7wAkLn/GSETPYWztFZcd4bFo/euwPFWejVkyHqS7+HLhUle6l5XjBK/HfHGMU cL9esCSNTD6zPCwzDCsQEsA1QapJIEcgNEXxAAdFPWEzc9ojIG53Ek2wAHySOXpx+XA5 fm7wdiWlTAhODWehT5GU8ZQuauC7RS3kTkDW+H6lkYDtHowUqzLHRqb2cn/NQprvCPjH QgssPJ8jr4kJ08v/tK5cH1XHPMgto2c9gi/pE+Ockf4mgpTjE1RiJ+NciFxBnKnNOjIH fipXRijqIKUaWmxXRDlAHDD49mZMyhZZBSJHQWq4Nnqjt8hZTYkSUPqs3Hw3XtIS2cU4 HZiQ== X-Received: by 10.66.141.77 with SMTP id rm13mr109953pab.91.1409777312920; Wed, 03 Sep 2014 13:48:32 -0700 (PDT) Received: from oscar.sesame (112.136.125.45.er.eaccess.ne.jp. [112.136.125.45]) by mx.google.com with ESMTPSA id ms12sm7651731pbc.51.2014.09.03.13.48.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 13:48:32 -0700 (PDT) From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 4 Sep 2014 05:48:20 +0900 Message-Id: <1409777300-32069-1-git-send-email-yamada.m@jp.panasonic.com> X-Mailer: git-send-email 1.9.1 Cc: Stephen Warren Subject: [U-Boot] [PATCH] kconfig: show an error message when defconfig is not found X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de When a non-existing defconfig is specified, display an easy-to-understand message (fake the error message on Linux Kernel): $ make foo_defconfig *** *** Can't find default configuration "confis/foo_defconfig"! *** Signed-off-by: Masahiro Yamada --- scripts/multiconfig.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/multiconfig.sh b/scripts/multiconfig.sh index a579042..af8dbe1 100644 --- a/scripts/multiconfig.sh +++ b/scripts/multiconfig.sh @@ -118,6 +118,13 @@ do_board_defconfig () { defconfig_path=$srctree/configs/$1 tmp_defconfig_path=configs/.tmp_defconfig + if [ ! -r $defconfig_path ]; then + echo "***" + echo "*** Can't find default configuration \"confis/$1\"!" + echo "***" + exit 1 + fi + mkdir -p arch configs # defconfig for Normal: # pick lines without prefixes and lines starting '+' prefix