From 94bbb1e9719ddca56db6d03d16b024c8c7bffd33 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Thu, 26 Jan 2017 18:15:38 +0100 Subject: scripts/aglsetup: remove duplicate features before generating config With features dependencies, it may happen that the final list of features to handle contains duplicates. With recent changes on configuration fragments, this produces some WARNINGS due to multiple inclusions of the same file in the generated local.conf . This commit cleans up the features list resolved internally by removing duplicates before generating local.conf Change-Id: I009c41108086e76b76272e62c8ba9101fcc45437 Signed-off-by: Stephane Desneux --- scripts/.aglsetup_genconfig.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/.aglsetup_genconfig.bash b/scripts/.aglsetup_genconfig.bash index 285ecee50..af2b7473b 100755 --- a/scripts/.aglsetup_genconfig.bash +++ b/scripts/.aglsetup_genconfig.bash @@ -324,8 +324,8 @@ for FEATURE in $FEATURES;do TMP_FEATURES="$TMP_FEATURES $FEATURE" TMP_FEATURES="$TMP_FEATURES $(find_feature_dependency $FEATURE $TMP_FEATURES)" done -FEATURES=$TMP_FEATURES -echo "Features used: $FEATURES" +# remove duplicate features if any +FEATURES=$(for x in $TMP_FEATURES; do echo $x; done | sort -u | awk '{printf("%s ",$1);}') # validate the features for f in $FEATURES; do -- cgit 1.2.3-korg