Looks good. Do we want to populate this var in disabled state to other config files?
On Wed, Dec 10, 2014 at 09:29:58AM -0500, Jacob Stiffler wrote: > * This can be enabled by setting "EXPORT_ARAGO_SRC" in the config file. > > Signed-off-by: Jacob Stiffler <[email protected]> > --- > lib/oesdk/config-build-env | 8 ++++++++ > lib/oesdk/package-sdks | 12 ++++++++++++ > 2 files changed, 20 insertions(+) > > diff --git a/lib/oesdk/config-build-env b/lib/oesdk/config-build-env > index cace93f..4412987 100644 > --- a/lib/oesdk/config-build-env > +++ b/lib/oesdk/config-build-env > @@ -79,5 +79,13 @@ config_build_dir() { > echo "SOURCE_MIRROR_URL = \"$SOURCE_MIRROR_URL\"" >> local.conf > echo "INHERIT += \"own-mirrors\"" >> local.conf > fi > + > + if [ "$EXPORT_ARAGO_SRC" == "1" ]; then > + BB_GENERATE_MIRROR_TARBALLS=1 > + fi > + > + if [ ! -z "$BB_GENERATE_MIRROR_TARBALLS" ]; then > + sed -i "s+^BB_GENERATE_MIRROR_TARBALLS =.*+BB_GENERATE_MIRROR_TARBALLS > = \"$BB_GENERATE_MIRROR_TARBALLS\"+" local.conf > + fi > cd - > /dev/null 2>&1 > } > diff --git a/lib/oesdk/package-sdks b/lib/oesdk/package-sdks > index 9bfd887..31a44b6 100644 > --- a/lib/oesdk/package-sdks > +++ b/lib/oesdk/package-sdks > @@ -268,6 +268,18 @@ package_web_content() { > > rm -rf board-support-bin > > + if [ "$EXPORT_ARAGO_SRC" == "1" ] > + then > + tar -C $DL_DIR -czf > $exports_root/$m-sdk-arago-src-$TISDK_VERSION.tar.gz . > + > + if [ "$?" != 0 ] > + then > + echo "Could not create arago source tarball" > + echo "FAILED" > $LOG_DIR/$m-web-results.txt > + return 1 > + fi > + fi > + > # Copy any additional web files that are in the WEB_EXTRAS_ROOT > # directory. > web_extras="$WEB_EXTRAS_ROOT/$m" > -- > 1.7.9.5 > > _______________________________________________ > meta-arago mailing list > [email protected] > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
