diff options
author | Francis Rowe <info@gluglug.org.uk> | 2016-01-02 17:10:32 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2016-01-04 15:28:39 (EST) |
commit | d1f408f3725aa02bc1d76c4c6aadb4697bd073c0 (patch) | |
tree | 7eed036543ae1f8c57b56825880a722a8efbedf1 /resources/scripts/helpers/build/config/grubmodify | |
parent | 91aec7e72005dcda72d19f2d024a02d8c0f86590 (diff) | |
download | libreboot-d1f408f3725aa02bc1d76c4c6aadb4697bd073c0.zip libreboot-d1f408f3725aa02bc1d76c4c6aadb4697bd073c0.tar.gz libreboot-d1f408f3725aa02bc1d76c4c6aadb4697bd073c0.tar.bz2 |
Use different coreboot revisions and patches per board
The release archives will be bigger, but this is a necessary change
that makes libreboot development easier.
At present, there are boards maintained in libreboot by different
people. By doing it this way, that becomes much easier. This is in
contrast to the present situation, where a change to one board
potentially affects all other boards, especially when updating to
a new version of coreboot.
Coreboot-libre scripts, download scripts, build scripts - everything.
The entire build system has been modified to reflect this change
of development.
For reasons of consistency, cbfstool and nvramtool are no longer
included in the util archives.
Diffstat (limited to 'resources/scripts/helpers/build/config/grubmodify')
-rwxr-xr-x | resources/scripts/helpers/build/config/grubmodify | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/resources/scripts/helpers/build/config/grubmodify b/resources/scripts/helpers/build/config/grubmodify index dc86653..f05f22e 100755 --- a/resources/scripts/helpers/build/config/grubmodify +++ b/resources/scripts/helpers/build/config/grubmodify @@ -3,7 +3,7 @@ # # helper script: run "make menuconfig" on config(s) to modify them # -# Copyright (C) 2014, 2015 Francis Rowe <info@gluglug.org.uk> +# Copyright (C) 2014, 2015, 2016 Francis Rowe <info@gluglug.org.uk> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,25 +25,28 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -configpath="resources/libreboot/config/grub" +payload="grub" +configpath="resources/libreboot/config/${payload}" hackconfig () { - cd "coreboot/" + board="${1}" - printf "Modifying config for %s\n" "${1}" + cd "coreboot/${payload}/${board}/" + + printf "Modifying config for %s (%s payload)\n" "${board}" "${payload}" sleep 2 - if [ ! -d "../${configpath}/${1}/" ]; then - printf "build/config/corebootmodify WARNING: config '%s' does not exist. Skipping.\n" "${1}" - cd "../" + if [ ! -d "../../../${configpath}/${board}/" ]; then + printf "build/config/grubmodify WARNING: config '%s' does not exist. Skipping.\n" "${board}" + cd "../../../" return fi - mv "../${configpath}/${1}/config" ".config" + mv "../../../${configpath}/${board}/config" ".config" make menuconfig - mv ".config" "../${configpath}/${1}/config" + mv ".config" "../../../${configpath}/${board}/config" - cd "../" + cd "../../../" } if [ $# -lt 1 ]; then |