diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-20 09:58:20 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-20 16:24:21 +0100 |
commit | ba3505051fc3f46347eca7c7da677cf0c0881774 (patch) | |
tree | 2d264f16038ddc6ddd4cceee241ad5f99e9145ca /scripts | |
parent | bd3c30891b523312c9cb583a179704ca715fad3a (diff) | |
download | ptxdist-ba3505051fc3f46347eca7c7da677cf0c0881774.tar.gz ptxdist-ba3505051fc3f46347eca7c7da677cf0c0881774.tar.xz |
ptx/collection: validate collection files
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_collection.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_collection.sh b/scripts/lib/ptxd_make_collection.sh new file mode 100644 index 000000000..4d4c23136 --- /dev/null +++ b/scripts/lib/ptxd_make_collection.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# +# Copyright (C) 2018 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +ptxd_make_validate_collection() { + local file_dotconfig relative_file_dotconfig + ptxd_make_world_init || return + + exec 2>&1 >/dev/null + for file_dotconfig in ${ptx_collections}; do + ptxd_normalize_config && + ptxd_kconfig_setup_config run "${PTXDIST_TEMPDIR}/.collection-config" \ + "${relative_file_dotconfig}" "${file_dotconfig}" + done +} +export -f ptxd_make_validate_collection |