diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/uboot-script-gen | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen index c23caca..0adf523 100755 --- a/scripts/uboot-script-gen +++ b/scripts/uboot-script-gen @@ -211,7 +211,9 @@ function load_file() local filename=$1 local fit_scr_name=$2 - local relative_path="$(realpath --no-symlinks --relative-to=$PWD $filename)" + local absolute_path="$(realpath --no-symlinks $filename)" + local base="$(realpath $PWD)"/ + local relative_path=${absolute_path#"$base"} if test "$FIT" then |