aboutsummaryrefslogtreecommitdiff
path: root/scripts/uboot-script-gen
diff options
context:
space:
mode:
authorSwagath Gadde2020-05-12 17:07:37 -0700
committerStefano Stabellini2020-05-13 16:37:45 -0700
commita1dd51b3aa7b498f37ead3da74a9d3fb7fd7a965 (patch)
tree5b4de64d93339e5da55b112dbc13010143d10969 /scripts/uboot-script-gen
parenta22803b46499d54c154e32c27f1a5ce7a55c1eea (diff)
Add support for absolute paths in config
Some build systems like yocto use absolute paths. Add support for them so they can be used in the config file. Signed-off-by: Swagath Gadde <swagath.gadde@xilinx.com> Signed-off-by: Brian Woods <brian.woods@xilinx.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'scripts/uboot-script-gen')
-rwxr-xr-x[-rw-r--r--]scripts/uboot-script-gen4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen
index 167e980..9393602 100644..100755
--- a/scripts/uboot-script-gen
+++ b/scripts/uboot-script-gen
@@ -116,7 +116,9 @@ function load_file()
{
local filename=$1
- echo "$LOAD_CMD $memaddr $filename" >> $UBOOT_SOURCE
+ local relative_path="$(realpath --relative-to=$PWD $filename)"
+
+ echo "$LOAD_CMD $memaddr $relative_path" >> $UBOOT_SOURCE
add_size $filename
}