All of lore.kernel.org
 help / color / mirror / Atom feed
* [tisdk-build-scripts][PATCH v2 1/2] config-build-env, package-sdks: Add support to export the downloads to web.
@ 2015-01-05 15:51 Jacob Stiffler
  2015-01-05 15:51 ` [tisdk-build-scripts][PATCH v2 2/2] configs: Add BB_GENERATE_MIRROR_TARBALLS and EXPORT_ARAGO_SRC config params Jacob Stiffler
  2015-01-05 16:02 ` [tisdk-build-scripts][PATCH v2 1/2] config-build-env, package-sdks: Add support to export the downloads to web Denys Dmytriyenko
  0 siblings, 2 replies; 3+ messages in thread
From: Jacob Stiffler @ 2015-01-05 15:51 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] 3+ messages in thread

end of thread, other threads:[~2015-01-05 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-05 15:51 [tisdk-build-scripts][PATCH v2 1/2] config-build-env, package-sdks: Add support to export the downloads to web Jacob Stiffler
2015-01-05 15:51 ` [tisdk-build-scripts][PATCH v2 2/2] configs: Add BB_GENERATE_MIRROR_TARBALLS and EXPORT_ARAGO_SRC config params Jacob Stiffler
2015-01-05 16:02 ` [tisdk-build-scripts][PATCH v2 1/2] config-build-env, package-sdks: Add support to export the downloads to web 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.