* [tisdk-build-scripts][PATCH] config-build-env, package-sdks: Add support to export the downloads to web.
@ 2014-12-10 14:29 Jacob Stiffler
2014-12-10 17:47 ` Denys Dmytriyenko
0 siblings, 1 reply; 2+ messages in thread
From: Jacob Stiffler @ 2014-12-10 14:29 UTC (permalink / raw)
To: meta-arago
* This can be enabled by setting "EXPORT_ARAGO_SRC" in the config file.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [tisdk-build-scripts][PATCH] config-build-env, package-sdks: Add support to export the downloads to web.
2014-12-10 14:29 [tisdk-build-scripts][PATCH] config-build-env, package-sdks: Add support to export the downloads to web Jacob Stiffler
@ 2014-12-10 17:47 ` Denys Dmytriyenko
0 siblings, 0 replies; 2+ messages in thread
From: Denys Dmytriyenko @ 2014-12-10 17:47 UTC (permalink / raw)
To: Jacob Stiffler; +Cc: meta-arago
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 <j-stiffler@ti.com>
> ---
> 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
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-10 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-10 14:29 [tisdk-build-scripts][PATCH] config-build-env, package-sdks: Add support to export the downloads to web Jacob Stiffler
2014-12-10 17:47 ` Denys Dmytriyenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.