summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_collection.sh
blob: 4d4c23136dbe1a3cbe7f5b434e5d288b0919b28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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