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

* [tisdk-build-scripts][PATCH v2 2/2] configs: Add BB_GENERATE_MIRROR_TARBALLS and EXPORT_ARAGO_SRC config params.
  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 ` 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
  1 sibling, 0 replies; 3+ messages in thread
From: Jacob Stiffler @ 2015-01-05 15:51 UTC (permalink / raw)
  To: meta-arago

* By default, these are set to "0" (disabled)

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 configs/amsdk/amsdk-config-05.06.00.00.txt      |    9 +++++++++
 configs/amsdk/amsdk-config-05.07.00.00.txt      |    9 +++++++++
 configs/amsdk/amsdk-config-06.00.00.00.txt      |    9 +++++++++
 configs/amsdk/amsdk-config-07.00.00.00.txt      |    9 +++++++++
 configs/amsdk/amsdk-config-07.01.00.00.txt      |    9 +++++++++
 configs/amsdk/amsdk-config-08.00.00.00.txt      |    9 +++++++++
 configs/arago-core-tisdk-daisy-puget.txt        |    9 +++++++++
 configs/arago-core-tisdk-danny-puget.txt        |    9 +++++++++
 configs/arago-core-tisdk-dora-puget.txt         |    9 +++++++++
 configs/arago-core-tisdk-dylan-puget.txt        |    9 +++++++++
 configs/coresdk/arago-core-amsdk-2013.04.01.txt |    9 +++++++++
 configs/coresdk/arago-core-tisdk-2013.04.00.txt |    9 +++++++++
 configs/coresdk/arago-core-tisdk-2013.04.01.txt |    9 +++++++++
 configs/coresdk/arago-core-tisdk-2013.04.02.txt |    9 +++++++++
 configs/coresdk/arago-core-tisdk-2013.10.00.txt |    9 +++++++++
 configs/coresdk/arago-core-tisdk-2013.12.00.txt |    9 +++++++++
 configs/coresdk/arago-core-tisdk-2013.12.01.txt |    9 +++++++++
 configs/coresdk/arago-core-tisdk-2014.08.00.txt |    9 +++++++++
 configs/distroless-meta-ti-puget.txt            |    9 +++++++++
 19 files changed, 171 insertions(+)

diff --git a/configs/amsdk/amsdk-config-05.06.00.00.txt b/configs/amsdk/amsdk-config-05.06.00.00.txt
index ca4ac43..5f2c879 100644
--- a/configs/amsdk/amsdk-config-05.06.00.00.txt
+++ b/configs/amsdk/amsdk-config-05.06.00.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -257,6 +261,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/amsdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/amsdk/amsdk-config-05.07.00.00.txt b/configs/amsdk/amsdk-config-05.07.00.00.txt
index 5424320..3057689 100644
--- a/configs/amsdk/amsdk-config-05.07.00.00.txt
+++ b/configs/amsdk/amsdk-config-05.07.00.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -272,6 +276,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/amsdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/amsdk/amsdk-config-06.00.00.00.txt b/configs/amsdk/amsdk-config-06.00.00.00.txt
index 228761c..5854f25 100644
--- a/configs/amsdk/amsdk-config-06.00.00.00.txt
+++ b/configs/amsdk/amsdk-config-06.00.00.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -278,6 +282,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/amsdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/amsdk/amsdk-config-07.00.00.00.txt b/configs/amsdk/amsdk-config-07.00.00.00.txt
index d967cbb..5c75d32 100644
--- a/configs/amsdk/amsdk-config-07.00.00.00.txt
+++ b/configs/amsdk/amsdk-config-07.00.00.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -278,6 +282,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/amsdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/amsdk/amsdk-config-07.01.00.00.txt b/configs/amsdk/amsdk-config-07.01.00.00.txt
index 3e4774e..a2af353 100644
--- a/configs/amsdk/amsdk-config-07.01.00.00.txt
+++ b/configs/amsdk/amsdk-config-07.01.00.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -278,6 +282,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/amsdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/amsdk/amsdk-config-08.00.00.00.txt b/configs/amsdk/amsdk-config-08.00.00.00.txt
index 44d75c7..67e8857 100644
--- a/configs/amsdk/amsdk-config-08.00.00.00.txt
+++ b/configs/amsdk/amsdk-config-08.00.00.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -282,6 +286,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/amsdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/arago-core-tisdk-daisy-puget.txt b/configs/arago-core-tisdk-daisy-puget.txt
index 740f967..f595ed6 100644
--- a/configs/arago-core-tisdk-daisy-puget.txt
+++ b/configs/arago-core-tisdk-daisy-puget.txt
@@ -139,6 +139,10 @@ DL_DIR="/OE/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -289,6 +293,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/arago-core-tisdk-danny-puget.txt b/configs/arago-core-tisdk-danny-puget.txt
index 3480ea8..73449e9 100644
--- a/configs/arago-core-tisdk-danny-puget.txt
+++ b/configs/arago-core-tisdk-danny-puget.txt
@@ -139,6 +139,10 @@ DL_DIR="/OE/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -279,6 +283,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/arago-core-tisdk-dora-puget.txt b/configs/arago-core-tisdk-dora-puget.txt
index 591d8f2..8d1c95c 100644
--- a/configs/arago-core-tisdk-dora-puget.txt
+++ b/configs/arago-core-tisdk-dora-puget.txt
@@ -139,6 +139,10 @@ DL_DIR="/OE/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -279,6 +283,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/arago-core-tisdk-dylan-puget.txt b/configs/arago-core-tisdk-dylan-puget.txt
index 0fd8161..4a3d1c9 100644
--- a/configs/arago-core-tisdk-dylan-puget.txt
+++ b/configs/arago-core-tisdk-dylan-puget.txt
@@ -139,6 +139,10 @@ DL_DIR="/OE/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -279,6 +283,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/coresdk/arago-core-amsdk-2013.04.01.txt b/configs/coresdk/arago-core-amsdk-2013.04.01.txt
index d6cc83a..0203553 100644
--- a/configs/coresdk/arago-core-amsdk-2013.04.01.txt
+++ b/configs/coresdk/arago-core-amsdk-2013.04.01.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -280,6 +284,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/amsdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/coresdk/arago-core-tisdk-2013.04.00.txt b/configs/coresdk/arago-core-tisdk-2013.04.00.txt
index 158d388..3435335 100644
--- a/configs/coresdk/arago-core-tisdk-2013.04.00.txt
+++ b/configs/coresdk/arago-core-tisdk-2013.04.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -280,6 +284,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/coresdk/arago-core-tisdk-2013.04.01.txt b/configs/coresdk/arago-core-tisdk-2013.04.01.txt
index 00e413f..b2b583b 100644
--- a/configs/coresdk/arago-core-tisdk-2013.04.01.txt
+++ b/configs/coresdk/arago-core-tisdk-2013.04.01.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -280,6 +284,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/coresdk/arago-core-tisdk-2013.04.02.txt b/configs/coresdk/arago-core-tisdk-2013.04.02.txt
index 1054e7c..8536021 100644
--- a/configs/coresdk/arago-core-tisdk-2013.04.02.txt
+++ b/configs/coresdk/arago-core-tisdk-2013.04.02.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -280,6 +284,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/coresdk/arago-core-tisdk-2013.10.00.txt b/configs/coresdk/arago-core-tisdk-2013.10.00.txt
index 1eb8397..cb65f40 100644
--- a/configs/coresdk/arago-core-tisdk-2013.10.00.txt
+++ b/configs/coresdk/arago-core-tisdk-2013.10.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -278,6 +282,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/coresdk/arago-core-tisdk-2013.12.00.txt b/configs/coresdk/arago-core-tisdk-2013.12.00.txt
index 6a90b05..b0bbff4 100644
--- a/configs/coresdk/arago-core-tisdk-2013.12.00.txt
+++ b/configs/coresdk/arago-core-tisdk-2013.12.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -278,6 +282,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/coresdk/arago-core-tisdk-2013.12.01.txt b/configs/coresdk/arago-core-tisdk-2013.12.01.txt
index 4118467..e9dff89 100644
--- a/configs/coresdk/arago-core-tisdk-2013.12.01.txt
+++ b/configs/coresdk/arago-core-tisdk-2013.12.01.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -278,6 +282,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/coresdk/arago-core-tisdk-2014.08.00.txt b/configs/coresdk/arago-core-tisdk-2014.08.00.txt
index a5be245..8cefd0a 100644
--- a/configs/coresdk/arago-core-tisdk-2014.08.00.txt
+++ b/configs/coresdk/arago-core-tisdk-2014.08.00.txt
@@ -139,6 +139,10 @@ DL_DIR="/home/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -282,6 +286,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data/coresdk"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
diff --git a/configs/distroless-meta-ti-puget.txt b/configs/distroless-meta-ti-puget.txt
index a789850..71d156b 100644
--- a/configs/distroless-meta-ti-puget.txt
+++ b/configs/distroless-meta-ti-puget.txt
@@ -125,6 +125,10 @@ DL_DIR="/OE/downloads"
 # obtain the build sources.
 #SOURCE_MIRROR_URL="http://some.web.server/arago-sources/"
 
+# Seeting this variable to "1" configures the build to generate mirror tarballs
+# of the source repos.
+BB_GENERATE_MIRROR_TARBALLS="0"
+
 # This variable points to an optional location where additional installer
 # content can be placed to be packaged inside of any image recipe that
 # inherits the tisdk-image class.  It is expected that the directory
@@ -269,6 +273,11 @@ WEB_EXTRAS_ROOT="/home/jenkins/extra-files/web_content"
 #   - WEBGEN_MAK_ROOT/$TISDK_VERSION/<machine>/webgen.mak
 WEBGEN_MAK_ROOT="$SCRIPTS_ROOT/publish-sdk-data"
 
+# This variable enables the source downloads in "DL_DIR" to be tar'd and copied
+# to the webgen exports directory. Setting this variable to "1" will override
+# the "BB_GENERATE_MIRROR_TARBALLS" configuration with a value of "1".
+EXPORT_ARAGO_SRC="0"
+
 # This variable specifies whether or not to copy the build contents to
 # a remote web hosting server.
 COPY_TO_WEB="true"
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [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 [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 ` Denys Dmytriyenko
  1 sibling, 0 replies; 3+ messages in thread
From: Denys Dmytriyenko @ 2015-01-05 16:02 UTC (permalink / raw)
  To: Jacob Stiffler; +Cc: meta-arago

Both patches look good to me, thanks.


On Mon, Jan 05, 2015 at 10:51:00AM -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] 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.