From 2e7768fc290113f0963b87d2fd06480304c6c645 Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Sat, 14 Nov 2015 20:27:07 +0000 Subject: [PATCH] rumprun-bake: _uniq only just-in-time It's not *that* difficult, and it's way faster. --- app-tools/rumprun-bake.in | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/app-tools/rumprun-bake.in b/app-tools/rumprun-bake.in index f763c74..0cb662f 100644 --- a/app-tools/rumprun-bake.in +++ b/app-tools/rumprun-bake.in @@ -198,6 +198,7 @@ debugdump () _haveconf ${confname} + _uniq CONFIG_${confname} eval echo \${CONFIG_${confname}} } @@ -246,16 +247,8 @@ _readconfig () unset CURCONF # Publish configs which are not private - # Note: technically we need to _uniq configs only when they are - # used, but this is easier and less error-prone. Consider - # just-in-time an ace up our sleeve for when config processing - # really gets too slow. for x in ${ALLCONFIGS}; do - if [ "${x#_}" = "${x}" ]; then - _uniq CONFIG_${x} - else - _filter ${x} ALLCONFIGS - fi + [ "${x#_}" = "${x}" ] || _filter ${x} ALLCONFIGS done } @@ -353,6 +346,8 @@ if [ "$c" != "$config" ]; then exit 1 fi +_uniq CONFIG_${config} + PLATFORM=${config%%_*} eval LIBS="\${CONFIG_${config}}" -- 2.39.5