summaryrefslogtreecommitdiff
path: root/scripts/filter-targets
blob: 580a433390a44b3f7a337cbf52c6cb96076bfe1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

set -e
set -o pipefail

unset tag
unset bsp_dir
unset all_settings

bsp_dir="$1"
shift 1

all_settings=`find ${bsp_dir} -name settings.mk`

while [[ "$1" != "" ]]
do
	all_settings=`grep -le "TARGET_TAGS.*=.*$1.*" ${all_settings}`
	shift 1
done

echo ${all_settings}