Commit 01843f6d authored by Stephen Boyd's avatar Stephen Boyd

skales: Remove source bashism

source is a bash builtin, replace it with the POSIX compliant '.'
instead. This fixes these scripts for non-bash shells.
Signed-off-by: 's avatarStephen Boyd <sboyd@codeaurora.org>
parent c99a93e2
......@@ -64,7 +64,7 @@ A simple workflow:
1.1 Add skales to your path
$ source source-me
$ . source-me
1.2. Copy the config.sh.example to config.sh
......
#!/bin/sh
#
# Copyright (c) 2013, The Linux Foundation. All rights reserved.
# Copyright (c) 2013, 2016, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
......@@ -34,11 +34,11 @@ META_ROOT=$(cd "$META_ROOT" && pwd)
if test -f "$META_ROOT/config.sh"
then
source "$META_ROOT/config.sh"
. "$META_ROOT/config.sh"
fi
if test -f .skales/config
then
source .skales/config
. .skales/config
fi
BOOTIMG_DIR="${BOOTIMG_DIR:-../}"
BOOTIMG_DIR="$(readlink -f $BOOTIMG_DIR)"
......
#!/bin/sh
#
# Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
# Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
......@@ -35,12 +35,12 @@ META_ROOT=$(cd "$META_ROOT" && pwd)
if test -f "$META_ROOT/config.sh"
then
source "$META_ROOT/config.sh"
. "$META_ROOT/config.sh"
fi
if test -f .skales/config
then
source .skales/config
. .skales/config
fi
export CROSS_COMPILE=$CROSS_COMPILE
......
#!/bin/sh
#
# Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
# Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
......@@ -35,11 +35,11 @@ META_ROOT=$(cd "$META_ROOT" && pwd)
if test -f "$META_ROOT/config.sh"
then
source "$META_ROOT/config.sh"
. "$META_ROOT/config.sh"
fi
if test -f .skales/config
then
source .skales/config
. .skales/config
fi
export CROSS_COMPILE=$CROSS_COMPILE
KOBJ="${KOBJ:-../kobj}"
......
#!/bin/sh
#
# Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
# Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
......@@ -45,11 +45,11 @@ META_ROOT=$(cd "$META_ROOT" && pwd)
if test -f "$META_ROOT/config.sh"
then
source "$META_ROOT/config.sh"
. "$META_ROOT/config.sh"
fi
if test -f .skales/config
then
source .skales/config
. .skales/config
fi
KOBJ="${KOBJ:-../kobj}"
BOOTIMG_DIR="${BOOTIMG_DIR:-../}"
......@@ -85,7 +85,7 @@ case "$target" in
*)
if test -f "$META_ROOT/boards/$1"
then
source "$META_ROOT/boards/$1"
. "$META_ROOT/boards/$1"
else
die "Unknown architecture $1"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment