aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/config/corebootreplace
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-30 16:04:24 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-08-30 16:04:24 +0100
commit4c15117d2b2a7b8e9dc2967992fe9b742602ee27 (patch)
tree8f95c8152392a0dc8c356f3636812e56f0c1eeab /resources/scripts/helpers/build/config/corebootreplace
parent09fe37e979847cd83a581698366270224c68babd (diff)
downloadlibrebootfr-4c15117d2b2a7b8e9dc2967992fe9b742602ee27.tar.gz
librebootfr-4c15117d2b2a7b8e9dc2967992fe9b742602ee27.zip
build/config/coreboot*: unify config path
Diffstat (limited to 'resources/scripts/helpers/build/config/corebootreplace')
-rwxr-xr-xresources/scripts/helpers/build/config/corebootreplace8
1 files changed, 5 insertions, 3 deletions
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