From 4c15117d2b2a7b8e9dc2967992fe9b742602ee27 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 30 Aug 2015 16:04:24 +0100 Subject: build/config/coreboot*: unify config path --- resources/scripts/helpers/build/config/corebootreplace | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'resources/scripts/helpers/build/config/corebootreplace') diff --git a/resources/scripts/helpers/build/config/corebootreplace b/resources/scripts/helpers/build/config/corebootreplace index 0c41c9e1..36d45584 100755 --- a/resources/scripts/helpers/build/config/corebootreplace +++ b/resources/scripts/helpers/build/config/corebootreplace @@ -25,6 +25,8 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e +configpath="resources/libreboot/config/grub" + hackconfig () { cd "coreboot/" @@ -33,14 +35,14 @@ hackconfig () { make menuconfig - [ ! -d "../resources/libreboot/config/grub/${1}/" ] && mkdir -p "../resources/libreboot/config/grub/${1}/" - mv ".config" "../resources/libreboot/config/grub/${1}/config" + [ ! -d "../${configpath}/${1}/" ] && mkdir -p "../${configpath}/${1}/" + mv ".config" "../${configpath}/${1}/config" cd "../" } if [ $# -lt 1 ]; then - for config in resources/libreboot/config/grub/*; do hackconfig "${config##*/}"; done + for config in ${configpath}/*; do hackconfig "${config##*/}"; done else for config in "${@}"; do hackconfig "${config}"; done fi -- cgit v1.2.3-70-g09d2