aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/roms
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-12-06 01:27:11 +0000
committerFrancis Rowe <info@gluglug.org.uk>2015-12-06 01:34:09 +0000
commit4f4ec55f08d55acadd6723a54db638bd5ef04484 (patch)
tree9056c144870951da8d4ded913ab7b585c1ce3726 /resources/scripts/helpers/build/roms
parentc13fe7aad75a74096f0e8d090c282e254fd78108 (diff)
downloadlibrebootfr-4f4ec55f08d55acadd6723a54db638bd5ef04484.tar.gz
librebootfr-4f4ec55f08d55acadd6723a54db638bd5ef04484.zip
build/roms/*: put libreboot version in .coreboot-version file
This is one of the things needed, for building coreboot in a reproducible fashion.
Diffstat (limited to 'resources/scripts/helpers/build/roms')
-rwxr-xr-xresources/scripts/helpers/build/roms/withdepthcharge3
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub_helper1
2 files changed, 3 insertions, 1 deletions
diff --git a/resources/scripts/helpers/build/roms/withdepthcharge b/resources/scripts/helpers/build/roms/withdepthcharge
index 8ae80a7e..03cda06b 100755
--- a/resources/scripts/helpers/build/roms/withdepthcharge
+++ b/resources/scripts/helpers/build/roms/withdepthcharge
@@ -86,10 +86,11 @@ buildcoreboot() {
version="$(cat ../version)"
else
# git repo is being used
- version="$(git describe --tags HEAD)"
+ version="$(git describe --tags HEAD)" # note: in libreboot, coreboot/.git doesn't exist, this uses libreboot .git
fi
printf '%s\n' "${version}" > "lbversion"
printf 'libreboot-%s' "${version}" > "ro-frid"
+ printf 'libreboot-%s\n' "${version}" > ".coreboot-version" # needed for reproducible builds in coreboot
make KBUILD_DEFCONFIG="$(pwd)/../resources/libreboot/config/depthcharge/${board}/config" defconfig
make -j"$(nproc)"
diff --git a/resources/scripts/helpers/build/roms/withgrub_helper b/resources/scripts/helpers/build/roms/withgrub_helper
index 7c16b432..40aa6cb1 100755
--- a/resources/scripts/helpers/build/roms/withgrub_helper
+++ b/resources/scripts/helpers/build/roms/withgrub_helper
@@ -46,6 +46,7 @@ else
version="$(git describe --tags HEAD)"
fi
printf '%s\n' "${version}" >"lbversion"
+printf 'libreboot-%s\n' "${version}" > ".coreboot-version" # needed for reproducible builds in coreboot
# Build ROM images with text-mode and corebootfb modes.