summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-12-05 20:27:11 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-12-05 20:34:09 (EST)
commit4f4ec55f08d55acadd6723a54db638bd5ef04484 (patch)
tree9056c144870951da8d4ded913ab7b585c1ce3726
parentc13fe7aad75a74096f0e8d090c282e254fd78108 (diff)
downloadlibreboot-4f4ec55f08d55acadd6723a54db638bd5ef04484.zip
libreboot-4f4ec55f08d55acadd6723a54db638bd5ef04484.tar.gz
libreboot-4f4ec55f08d55acadd6723a54db638bd5ef04484.tar.bz2
build/roms/*: put libreboot version in .coreboot-version file
This is one of the things needed, for building coreboot in a reproducible fashion.
-rw-r--r--docs/src/tasks.texi2
-rwxr-xr-xresources/scripts/helpers/build/roms/withdepthcharge3
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub_helper1
3 files changed, 5 insertions, 1 deletions
diff --git a/docs/src/tasks.texi b/docs/src/tasks.texi
index 8503dc1..38adb93 100644
--- a/docs/src/tasks.texi
+++ b/docs/src/tasks.texi
@@ -209,6 +209,8 @@ Join #debian-reproducible on OFTC IRC.
merged in master (coreboot) - pay attention to these, especially the fact that the reproducibility relies on git (libreboot uses coreboot without git, and the reason makes this unavoidable): @uref{http://review.coreboot.org/#/c/8616/,http://review.coreboot.org/#/c/8616/} @uref{http://review.coreboot.org/#/c/8617/,http://review.coreboot.org/#/c/8617/} @uref{http://review.coreboot.org/#/c/8618/,http://review.coreboot.org/#/c/8618/} @uref{http://review.coreboot.org/#/c/8619/,http://review.coreboot.org/#/c/8619/}
@item
not yet merged in master (coreboot: @uref{http://review.coreboot.org/#/c/10515/,http://review.coreboot.org/#/c/10515/} -- not really relevant yet, but will be in the future. (libreboot currently ignores SeaBIOS)
+@item
+NOTE: see build/release/* commands for coreboot/.coreboot-version in libreboot
@end itemize
@end itemize
diff --git a/resources/scripts/helpers/build/roms/withdepthcharge b/resources/scripts/helpers/build/roms/withdepthcharge
index 8ae80a7..03cda06 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 7c16b43..40aa6cb 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.