summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/config/dcreplace
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/config/dcreplace')
-rwxr-xr-xresources/scripts/helpers/build/config/dcreplace18
1 files changed, 15 insertions, 3 deletions
diff --git a/resources/scripts/helpers/build/config/dcreplace b/resources/scripts/helpers/build/config/dcreplace
index 13511fc..b4b05ff 100755
--- a/resources/scripts/helpers/build/config/dcreplace
+++ b/resources/scripts/helpers/build/config/dcreplace
@@ -30,8 +30,15 @@ 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 "Replacing or creating new config for %s (%s payload)\n" "${board}" "${payload}"
sleep 2
@@ -41,7 +48,12 @@ hackconfig () {
[ ! -d "../../../${configpath}/${board}/" ] && mkdir -p "../../../${configpath}/${board}/"
mv ".config" "../../../${configpath}/${board}/config"
- cd "../../../"
+ git checkout master
+ (
+ cd "3rdparty/vboot/"
+ git checkout master
+ )
+)
}
if [ $# -lt 1 ]; then