configs: add several mirrors for gnome url 63/4263/1
authorJackie Huang <jackie.huang@windriver.com>
Mon, 29 Jun 2020 11:22:32 +0000 (19:22 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Mon, 29 Jun 2020 14:09:42 +0000 (22:09 +0800)
Add several mirrors for gnome url just in case the
ftp.gnome.org is too busy or is unreachable.

Issue-ID: INF-177
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ia4f5ed36e5576706b17fbb359d3d51b48ac326aa

scripts/build_inf.sh
scripts/configs/local-mirrors.conf [new file with mode: 0644]

index 46c6bb3..2a5437a 100755 (executable)
@@ -375,6 +375,7 @@ add_configs_stx_build () {
     echo_info "Adding the following extra configs into local.conf"
     cat ${SRC_CONFIGS}/local-stx.conf | \
         sed -e "s/@BSP@/${BSP}/" | tee -a conf/local.conf
+    cat ${SRC_CONFIGS}/local-mirrors.conf | tee -a conf/local.conf
 
     echo "DL_DIR = '${PRJ_SHARED_DL_DIR}'" | tee -a conf/local.conf
     echo "SSTATE_DIR = '${PRJ_SHARED_SS_DIR}'" | tee -a conf/local.conf
@@ -454,6 +455,7 @@ add_configs_anaconda_build () {
         sed -e "s/@BSP@/${BSP}/" \
             -e "s|@TARGET_BUILD@|${PRJ_BUILD_DIR}|" \
             | tee -a conf/local.conf
+    cat ${SRC_CONFIGS}/local-mirrors.conf | tee -a conf/local.conf
 
     echo "DL_DIR = '${PRJ_SHARED_DL_DIR}'" | tee -a conf/local.conf
     echo "SSTATE_DIR = '${PRJ_SHARED_SS_DIR}'" | tee -a conf/local.conf
diff --git a/scripts/configs/local-mirrors.conf b/scripts/configs/local-mirrors.conf
new file mode 100644 (file)
index 0000000..afcb11b
--- /dev/null
@@ -0,0 +1,7 @@
+# Add extra mirrors for src_url
+MIRRORS += "\
+    ${GNOME_MIRROR}  https://download.gnome.org/sources/ \n \
+    ${GNOME_MIRROR}  https://mirror.umd.edu/gnome/sources \n \
+    ${GNOME_MIRROR}  http://ftp.rpmfind.net/linux/gnome.org/sources \n \
+    ${GNOME_MIRROR}  http://ftp.cse.buffalo.edu/pub/Gnome/sources \n \
+"