aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2015-05-27 14:58:07 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2015-06-01 15:25:56 +0800
commitf97132d5e79c453a1162cec4f8929be164295136 (patch)
tree1d1ff0ee922af0d9413bee98fbbe5ff562d78acb
parent299051697dbdbfaf1488c120aa9d5b88060bb29e (diff)
downloadlinaro-android-build-tools-f97132d5e79c453a1162cec4f8929be164295136.tar.gz
create-user-build-script: copy the source overlay package to the root
Change-Id: Iac1570680836b932fab6d28fac0daa401667a73a Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xbuild-scripts/create-user-build-script2
1 files changed, 2 insertions, 0 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script
index 4e45bc0..63faeaa 100755
--- a/build-scripts/create-user-build-script
+++ b/build-scripts/create-user-build-script
@@ -326,6 +326,8 @@ EOF
if [ -n \${SOURCE_OVERLAY} ]; then
# extract the vendor's source overlay
tar -x -a -f "\${SOURCE_OVERLAY}" -C .
+ source_overlay_name=\$(basename \${SOURCE_OVERLAY})
+ [ -f ./\${source_overlay_name} ] || cp -uv "\${SOURCE_OVERLAY}" .
fi
EOF
fi