Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mail.openembedded.org (Postfix) with ESMTP id 6E42260248 for ; Thu, 26 May 2016 08:07:30 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 26 May 2016 01:05:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,367,1459839600"; d="scan'208";a="962672159" Received: from marquiz.fi.intel.com ([10.237.72.155]) by orsmga001.jf.intel.com with ESMTP; 26 May 2016 01:05:45 -0700 From: Markus Lehtonen To: bitbake-devel@lists.openembedded.org Date: Thu, 26 May 2016 11:05:43 +0300 Message-Id: <1464249943-30513-1-git-send-email-markus.lehtonen@linux.intel.com> X-Mailer: git-send-email 2.6.6 Subject: [PATCH v2] cookerdata: print an error if layer dir does not exist X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 08:07:31 -0000 Makes it easier for user to identify problems, e.g. typos, in BBLAYERS. [YOCTO #9507] Signed-off-by: Markus Lehtonen --- lib/bb/cookerdata.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index 1615db5..dc34efe 100644 --- a/lib/bb/cookerdata.py +++ b/lib/bb/cookerdata.py @@ -292,6 +292,10 @@ class CookerDataBuilder(object): data = bb.data.createCopy(data) approved = bb.utils.approved_variables() for layer in layers: + if not os.path.isdir(layer): + parselog.critical("Layer directory '%s' does not exist! " + "Please check BBLAYERS in %s" % (layer, layerconf)) + sys.exit(1) parselog.debug(2, "Adding layer %s", layer) if 'HOME' in approved and '~' in layer: layer = os.path.expanduser(layer) -- 2.6.6