Use local configuration (fio).
This commit is contained in:
parent
4e603c991f
commit
091c46b636
@ -41,12 +41,6 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0
|
|||||||
# #
|
# #
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
# You can find the latest fio source bundles here:
|
|
||||||
#
|
|
||||||
# https://github.com/axboe/fio/releases
|
|
||||||
#
|
|
||||||
FIO_SOURCE_URL=https://github.com/axboe/fio/archive/fio-3.2.tar.gz
|
|
||||||
|
|
||||||
# You need to manually download Oracle's JRE or JDK and set the property with
|
# You need to manually download Oracle's JRE or JDK and set the property with
|
||||||
# the absolute path to the downloaded archive. Example:
|
# the absolute path to the downloaded archive. Example:
|
||||||
#
|
#
|
||||||
|
5
src/minimal_overlay/bundles/fio/.config
Normal file
5
src/minimal_overlay/bundles/fio/.config
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# You can find the latest fio source bundles here:
|
||||||
|
#
|
||||||
|
# https://github.com/axboe/fio/releases
|
||||||
|
#
|
||||||
|
FIO_SOURCE_URL=https://github.com/axboe/fio/archive/fio-3.2.tar.gz
|
@ -4,15 +4,13 @@ set -e
|
|||||||
|
|
||||||
. ../../common.sh
|
. ../../common.sh
|
||||||
|
|
||||||
# Grab everything after the '=' character.
|
# Read the common configuration properties.
|
||||||
DOWNLOAD_URL=$(grep -i FIO_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=')
|
DOWNLOAD_URL=`read_property FIO_SOURCE_URL`
|
||||||
|
USE_LOCAL_SOURCE=`read_property USE_LOCAL_SOURCE`
|
||||||
|
|
||||||
# Grab everything after the last '/' character.
|
# Grab everything after the last '/' character.
|
||||||
ARCHIVE_FILE=${DOWNLOAD_URL##*/}
|
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
|
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."
|
echo "Source bundle $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE is missing and will be downloaded."
|
||||||
USE_LOCAL_SOURCE="false"
|
USE_LOCAL_SOURCE="false"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user