From 6c30d22a56871640b009d804acae53e031549e00 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 5 Feb 2015 14:00:17 +0000 Subject: [PATCH] Allow u-boot repository URL to be overridden This allows the URL used to clone our specific version of u-boot to be specified in the environment, instead of being hard-coded. This new flexibility will be required by the new Continuous Integration infrastructure, whose test nodes are in a network without direct internet access. Change-Id: I7440b5bba6786f979623b4509111e4e99c6558f6 --- releasetools/fetch_u-boot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/releasetools/fetch_u-boot.sh b/releasetools/fetch_u-boot.sh index 140346402..5531cd5b8 100755 --- a/releasetools/fetch_u-boot.sh +++ b/releasetools/fetch_u-boot.sh @@ -2,6 +2,8 @@ # # Perform a checkout / update the MINIX u-boot git repo if needed # +: ${UBOOT_REPO_URL=git://git.minix3.org/u-boot} + # -o output dir OUTPUT_DIR="" GIT_VERSION="" @@ -38,7 +40,7 @@ fi # if [ ! -e "$OUTPUT_DIR" ] then - git clone git://git.minix3.org/u-boot -b minix $OUTPUT_DIR + git clone ${UBOOT_REPO_URL} -b minix $OUTPUT_DIR fi (