summaryrefslogtreecommitdiffstats
path: root/core/bin
diff options
context:
space:
mode:
authorJonathan Bauer2020-04-15 11:06:20 +0200
committerJonathan Bauer2020-04-15 11:06:20 +0200
commitdd19dacf67ff85105b9d5c16f6ff730a47f4a8ad (patch)
treeeea70928cb52dd9b2b31d0ac7fbdc0ee2f9e2f1d /core/bin
parent[vmware12/vmware15] Add vnckeymap directory (diff)
downloadmltk-dd19dacf67ff85105b9d5c16f6ff730a47f4a8ad.tar.gz
mltk-dd19dacf67ff85105b9d5c16f6ff730a47f4a8ad.tar.xz
mltk-dd19dacf67ff85105b9d5c16f6ff730a47f4a8ad.zip
setup_target: introduce @ prefix for optional REQUIRED_FILES
Diffstat (limited to 'core/bin')
-rwxr-xr-xcore/bin/setup_target7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/bin/setup_target b/core/bin/setup_target
index a895a38a..e521592e 100755
--- a/core/bin/setup_target
+++ b/core/bin/setup_target
@@ -233,6 +233,13 @@ copy_files_with_deps () {
# from REQUIRED_FILES - these are assumed to be simple files, so only follow symlinks
[ ! -z "${REQUIRED_FILES}" ] && pinfo "Gathering required files from config file..."
for ENTRY in ${REQUIRED_FILES}; do
+ if [ "${ENTRY:0:1}" = "@" ]; then
+ ENTRY="${ENTRY:1}"
+ if [ ! -e "${MODULE_BUILD_DIR}/${ENTRY}" ]; then
+ pinfo "Skipping missing optional file: ${MODULE_BUILD_DIR}/${ENTRY}"
+ continue
+ fi
+ fi
get_link_chain "${MODULE_BUILD_DIR}/${ENTRY}" "${MODULE_BUILD_DIR}" >> "${COPYFILES_LIST}"
done