Use local configuration (make).

This commit is contained in:
Ivan Davidov 2017-12-04 16:57:30 +02:00
parent d6899a5bef
commit f6a5ceba7e
3 changed files with 8 additions and 11 deletions

View File

@ -41,12 +41,6 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0
# #
#####################################################################
# You can find the latest make source bundles here:
#
# http://www.gnu.org/software/make
#
MAKE_SOURCE_URL=ftp://ftp.gnu.org/gnu/make/make-4.2.1.tar.bz2
# You can find the latest nano source bundles here:
#
# https://nano-editor.org/download.php

View File

@ -0,0 +1,5 @@
# You can find the latest make source bundles here:
#
# http://www.gnu.org/software/make
#
MAKE_SOURCE_URL=ftp://ftp.gnu.org/gnu/make/make-4.2.1.tar.bz2

View File

@ -4,15 +4,13 @@ set -e
. ../../common.sh
# Grab everything after the '=' character.
DOWNLOAD_URL=$(grep -i MAKE_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=')
# Read the common configuration properties.
DOWNLOAD_URL=`read_property MAKE_SOURCE_URL`
USE_LOCAL_SOURCE=`read_property USE_LOCAL_SOURCE`
# Grab everything after the last '/' character.
ARCHIVE_FILE=${DOWNLOAD_URL##*/}
# Read the 'USE_LOCAL_SOURCE' property from '.config'
USE_LOCAL_SOURCE="$(grep -i USE_LOCAL_SOURCE $MAIN_SRC_DIR/.config | cut -f2 -d'=')"
if [ "$USE_LOCAL_SOURCE" = "true" -a ! -f $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE ] ; then
echo "Source bundle $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE is missing and will be downloaded."
USE_LOCAL_SOURCE="false"