aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/config/grubmodify
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2016-03-08 05:51:47 +0000
committerFrancis Rowe <info@gluglug.org.uk>2016-03-08 05:51:47 +0000
commit2e5e505da125f9d90dd63c1cbcb08bf5316b21ae (patch)
tree63507200881a2c50e55124c80411673b8f2e4ee8 /resources/scripts/helpers/build/config/grubmodify
parent5b29f719ac3b226ca17937c4c9e82abca39675fc (diff)
downloadlibrebootfr-2e5e505da125f9d90dd63c1cbcb08bf5316b21ae.tar.gz
librebootfr-2e5e505da125f9d90dd63c1cbcb08bf5316b21ae.zip
build/config/*: Update to work with new build system
Diffstat (limited to 'resources/scripts/helpers/build/config/grubmodify')
-rwxr-xr-xresources/scripts/helpers/build/config/grubmodify24
1 files changed, 20 insertions, 4 deletions
diff --git a/resources/scripts/helpers/build/config/grubmodify b/resources/scripts/helpers/build/config/grubmodify
index f05f22e7..a9ccccb0 100755
--- a/resources/scripts/helpers/build/config/grubmodify
+++ b/resources/scripts/helpers/build/config/grubmodify
@@ -30,15 +30,26 @@ configpath="resources/libreboot/config/${payload}"
hackconfig () {
board="${1}"
-
- cd "coreboot/${payload}/${board}/"
+ cbrevision="$(cat ${configpath}/${board}/cbrevision)"
+ vbootrevision="$(cat ${configpath}/${board}/vbootrevision)"
+(
+ cd "coreboot/${cbrevision}/${cbrevision}/"
+ git checkout ${payload}_${board}
+ (
+ cd "3rdparty/vboot/"
+ git checkout ${payload}_${board}
+ )
printf "Modifying config for %s (%s payload)\n" "${board}" "${payload}"
sleep 2
if [ ! -d "../../../${configpath}/${board}/" ]; then
printf "build/config/grubmodify WARNING: config '%s' does not exist. Skipping.\n" "${board}"
- cd "../../../"
+ git checkout master
+ (
+ cd "3rdparty/vboot/"
+ git checkout master
+ )
return
fi
@@ -46,7 +57,12 @@ hackconfig () {
make menuconfig
mv ".config" "../../../${configpath}/${board}/config"
- cd "../../../"
+ git checkout master
+ (
+ cd "3rdparty/vboot/"
+ git checkout master
+ )
+)
}
if [ $# -lt 1 ]; then