diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-08-30 11:04:24 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-08-30 11:04:24 (EDT) |
commit | 4c15117d2b2a7b8e9dc2967992fe9b742602ee27 (patch) | |
tree | 8f95c8152392a0dc8c356f3636812e56f0c1eeab /resources/scripts/helpers/build/config/corebootupdate | |
parent | 09fe37e979847cd83a581698366270224c68babd (diff) | |
download | libreboot-4c15117d2b2a7b8e9dc2967992fe9b742602ee27.zip libreboot-4c15117d2b2a7b8e9dc2967992fe9b742602ee27.tar.gz libreboot-4c15117d2b2a7b8e9dc2967992fe9b742602ee27.tar.bz2 |
build/config/coreboot*: unify config path
Diffstat (limited to 'resources/scripts/helpers/build/config/corebootupdate')
-rwxr-xr-x | resources/scripts/helpers/build/config/corebootupdate | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/resources/scripts/helpers/build/config/corebootupdate b/resources/scripts/helpers/build/config/corebootupdate index 6f55eb0..6390253 100755 --- a/resources/scripts/helpers/build/config/corebootupdate +++ b/resources/scripts/helpers/build/config/corebootupdate @@ -25,27 +25,29 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e +configpath="resources/libreboot/config/grub" + hackconfig () { cd "coreboot/" printf "Updating config for %s\n" "${1}" sleep 2 - if [ ! -d "../resources/libreboot/config/grub/${1}/" ]; then + if [ ! -d "../${configpath}/${1}/" ]; then printf "build/config/corebootupdate WARNING: config '%s' does not exist. Skipping.\n" "${1}" cd "../" return fi - mv "../resources/libreboot/config/grub/${1}/config" ".config" + mv "../${configpath}/${1}/config" ".config" make oldconfig - mv ".config" "../resources/libreboot/config/grub/${1}/config" + 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 |