Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 01DF9E0087E; Thu, 18 Sep 2014 07:01:11 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.48 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-qg0-f48.google.com (mail-qg0-f48.google.com [209.85.192.48]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 76BF4E00790 for ; Thu, 18 Sep 2014 07:00:55 -0700 (PDT) Received: by mail-qg0-f48.google.com with SMTP id f51so1128419qge.21 for ; Thu, 18 Sep 2014 07:00:55 -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:organization; bh=Ku/De15yGn32m33Q2YHzSJUd2BV5vZ8UArMz94biL5c=; b=iojJhGuZbY8FFKB9Dn2ouRus44wYaUBuv3wW2dqtJAbmKFHOQw449HA/lMkkmd8rKV DXQE35DTZDhlYGiZWJuYV9a7LMnMofZTp6y4kGhVDo5dm6x39UYO9M4zUKU9pgyOO/CC D1rf55Gs/CcMyFgqt4k12HthgavGbPevnLoFBJK1YvJbcprWWgK6XrZ1XDciZRRgSS+9 PpmoQ3hwrm7LmwDSavXswzLyFkjSvuGjH4JZii0yzcNefCI2GdLg03iZjPcHJhge14MK nBQDA0KE4YSZ8b3c8SE0oh/MbeF8eWzVathUi4IMVpJXn944Dxiqe6U+M96kg6xJ+skv NwwA== X-Received: by 10.236.97.10 with SMTP id s10mr2728841yhf.130.1411048854852; Thu, 18 Sep 2014 07:00:54 -0700 (PDT) Received: from mario.lab.ossystems.com.br ([177.35.70.10]) by mx.google.com with ESMTPSA id n36sm9079282yhp.49.2014.09.18.07.00.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Sep 2014 07:00:54 -0700 (PDT) Sender: Mario Domenech Goulart From: Mario Domenech Goulart To: meta-freescale@yoctoproject.org Date: Thu, 18 Sep 2014 11:00:40 -0300 Message-Id: <1411048841-6227-1-git-send-email-mario@ossystems.com.br> X-Mailer: git-send-email 1.7.10.4 Organization: O.S. Systems Software LTDA. Subject: [Documentation][PATCH 1/2] scripts: bitbake-metadata2doc.sh: use a fresh build directory X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2014 14:01:11 -0000 Before this change we were using a hardcoded build directory ("build"). That approach could lead to problems if the build directory already existed and contained settings other than the default ones (setup-environment would not overwrite conf/local.conf and/or bblayers.conf). This patch changes that by creating a fresh build directory, thus making setup-environment create new configuration files with the default settings, which will make scripts generate more deterministic results. Signed-off-by: Mario Domenech Goulart --- scripts/bitbake-metadata2doc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/bitbake-metadata2doc.sh b/scripts/bitbake-metadata2doc.sh index d0cfed8..64e6bc0 100755 --- a/scripts/bitbake-metadata2doc.sh +++ b/scripts/bitbake-metadata2doc.sh @@ -75,9 +75,12 @@ marshalled_data_file=doc-data.pckl rm -f $anchor/$marshalled_data_file +build_dir=`mktemp -d --tmpdir=$yocto_dir` + for machine in $machines; do cd $yocto_dir - MACHINE=$machine . ./setup-environment build + echo "Using $build_dir as build directory" + MACHINE=$machine . ./setup-environment `basename $build_dir` MACHINE=$machine python $anchor/extract-bitbake-metadata.py \ $anchor/$marshalled_data_file \ @@ -124,5 +127,7 @@ for machine in $machines; do fi done +rm -rf $build_dir + cd $anchor python ./bitbake-metadata2doc.py $marshalled_data_file "../release-notes/source" "$yocto_dir" "$gitdm_dir" "$start_commit" "$end_commit" -- 1.7.10.4