scripts: bitbake-metadata2doc.sh: use a fresh build directory
PATCH 1/2 scripts: bitbake-metadata2doc.sh: use a fresh build directory
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 <[email protected]>
--- scripts/bitbake-metadata2doc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
scripts/bitbake-metadata2doc.sh +6 -1
@@ -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"
Signature · 1 line
1.7.10.4
PATCH 2/2 README: add "Contributing" section
Adapted from meta-fsl-arm README's "Contributing" section.
Signed-off-by Mario Domenech Goulart <[email protected]>
--- README | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
README +28 -0
@@ -1,4 +1,5 @@ Freescale Community BSP Documentation +------------------------------------- The documentation is written using Sphinx documentation system. To install it in Debian/Ubuntu, please do:
@@ -7,3 +8,30 @@ install it in Debian/Ubuntu, please do: Once this has been complete, you can run a 'make' and check the possible targets for building. + + +Contributing +------------ + +To contribute to this repository you should submit the patches for +review to the mailing list ([email protected]). + +Please refer to: +https://wiki.yoctoproject.org/wiki/Contribution_Guidelines#General_Information +for some useful guidelines to be followed when submitting patches. + +Mailing list: + + https://lists.yoctoproject.org/listinfo/meta-freescale + +Source code: + + https://github.com/Freescale/Documentation + +When creating patches, please use something like: + + git format-patch -s --subject-prefix='Documentation][PATCH' origin + +When sending patches, please use something like: + + git send-email --to [email protected] <generated patch>
Signature · 1 line
1.7.10.4