diff options
author | Jonathan Bauer | 2020-04-15 11:06:20 +0200 |
---|---|---|
committer | Jonathan Bauer | 2020-04-15 11:06:20 +0200 |
commit | dd19dacf67ff85105b9d5c16f6ff730a47f4a8ad (patch) | |
tree | eea70928cb52dd9b2b31d0ac7fbdc0ee2f9e2f1d /core/bin | |
parent | [vmware12/vmware15] Add vnckeymap directory (diff) | |
download | mltk-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-x | core/bin/setup_target | 7 |
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 |