summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass6
-rw-r--r--meta/files/toolchain-shar-extract.sh11
2 files changed, 15 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 5e2ebd7969..2bbd181208 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -365,6 +365,12 @@ sdk_ext_preinst() {
365 exit 1 365 exit 1
366 fi 366 fi
367 SDK_EXTENSIBLE="1" 367 SDK_EXTENSIBLE="1"
368 if [ "$publish" = "1" ] ; then
369 EXTRA_TAR_OPTIONS="$EXTRA_TAR_OPTIONS --exclude=ext-sdk-prepare.py"
370 if [ "${SDK_EXT_TYPE}" = "minimal" ] ; then
371 EXTRA_TAR_OPTIONS="$EXTRA_TAR_OPTIONS --exclude=sstate-cache"
372 fi
373 fi
368} 374}
369SDK_PRE_INSTALL_COMMAND_task-populate-sdk-ext = "${sdk_ext_preinst}" 375SDK_PRE_INSTALL_COMMAND_task-populate-sdk-ext = "${sdk_ext_preinst}"
370 376
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 0295bded6e..23a86dd52f 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -38,12 +38,14 @@ fi
38 38
39DEFAULT_INSTALL_DIR="@SDKPATH@" 39DEFAULT_INSTALL_DIR="@SDKPATH@"
40SUDO_EXEC="" 40SUDO_EXEC=""
41EXTRA_TAR_OPTIONS=""
41target_sdk_dir="" 42target_sdk_dir=""
42answer="" 43answer=""
43relocate=1 44relocate=1
44savescripts=0 45savescripts=0
45verbose=0 46verbose=0
46while getopts ":yd:nDRS" OPT; do 47publish=0
48while getopts ":yd:npDRS" OPT; do
47 case $OPT in 49 case $OPT in
48 y) 50 y)
49 answer="Y" 51 answer="Y"
@@ -54,6 +56,10 @@ while getopts ":yd:nDRS" OPT; do
54 n) 56 n)
55 prepare_buildsystem="no" 57 prepare_buildsystem="no"
56 ;; 58 ;;
59 p)
60 prepare_buildsystem="no"
61 publish=1
62 ;;
57 D) 63 D)
58 verbose=1 64 verbose=1
59 ;; 65 ;;
@@ -70,6 +76,7 @@ while getopts ":yd:nDRS" OPT; do
70 echo " -d <dir> Install the SDK to <dir>" 76 echo " -d <dir> Install the SDK to <dir>"
71 echo "======== Extensible SDK only options ============" 77 echo "======== Extensible SDK only options ============"
72 echo " -n Do not prepare the build system" 78 echo " -n Do not prepare the build system"
79 echo " -p Publish mode (implies -n)"
73 echo "======== Advanced DEBUGGING ONLY OPTIONS ========" 80 echo "======== Advanced DEBUGGING ONLY OPTIONS ========"
74 echo " -S Save relocation scripts" 81 echo " -S Save relocation scripts"
75 echo " -R Do not relocate executables" 82 echo " -R Do not relocate executables"
@@ -181,7 +188,7 @@ fi
181payload_offset=$(($(grep -na -m1 "^MARKER:$" $0|cut -d':' -f1) + 1)) 188payload_offset=$(($(grep -na -m1 "^MARKER:$" $0|cut -d':' -f1) + 1))
182 189
183printf "Extracting SDK..." 190printf "Extracting SDK..."
184tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir --checkpoint=.2500 || exit 1 191tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1
185echo "done" 192echo "done"
186 193
187printf "Setting it up..." 194printf "Setting it up..."