From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mail.openembedded.org (Postfix) with ESMTP id C375660616 for ; Tue, 19 Apr 2016 16:50:29 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 19 Apr 2016 09:50:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,506,1455004800"; d="scan'208";a="958360267" Received: from linux.intel.com ([10.23.219.25]) by orsmga002.jf.intel.com with ESMTP; 19 Apr 2016 09:50:29 -0700 Received: from vmed.fi.intel.com (vmed.fi.intel.com [10.237.72.51]) by linux.intel.com (Postfix) with ESMTP id 3A9B86A4006; Tue, 19 Apr 2016 10:38:07 -0700 (PDT) From: Ed Bartosh To: bitbake-devel@lists.openembedded.org Date: Tue, 19 Apr 2016 17:30:36 +0300 Message-Id: <1461076236-9289-1-git-send-email-ed.bartosh@linux.intel.com> X-Mailer: git-send-email 2.1.4 Subject: [PATCH] bitbake: main: add 2 environment variables 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: Tue, 19 Apr 2016 16:50:31 -0000 Bitbake uses set of environment variables to set command line options, e.g. seeting BBTOKEN variable has the same effect as using --token command line option. Added new environment variables BBPRECONF and BBPOSTCONF that are equivalents of --read and --postread command line options. They can be used by high level scripts to append or prepend configuration files to conf/local.conf [YOCTO #9235] Signed-off-by: Ed Bartosh --- bitbake/lib/bb/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index e302173..1dd7877 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py @@ -250,6 +250,12 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): if "BBEVENTLOG" in os.environ: options.writeeventlog = os.environ["BBEVENTLOG"] + if "BBPRECONF" in os.environ: + option.prefile = os.environ["BBPRECONF"] + + if "BBPOSTCONF" in os.environ: + option.postfile = os.environ["BBPOSTCONF"] + # fill in proper log name if not supplied if options.writeeventlog is not None and len(options.writeeventlog) == 0: import datetime -- 2.1.4