build: add buildinfo files for reproducibility
authorPaul Spooren <mail@aparcar.org>
Thu, 13 Jun 2019 00:24:04 +0000 (02:24 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 20:05:57 +0000 (16:05 -0400)
commit0ad9ecf62ba6d08522fbe3185f3a5d33b3792268
tree0a88a980ea3b71a92c3e3d032c9f605e0d1436a3
parentde3aeb16f6fed2dfc2682f5bfd2981a6230183fa
build: add buildinfo files for reproducibility

generate feeds.buildinfo and version.buildinfo in build dir after
containing the feed revisions (via ./scripts/feeds list -sf) as well as
the current revision of buildroot (via ./scripts/getver.sh).

With this information it should be possible to reproduce any build,
especially the release builds.

Usage would be to move feeds.buildinfo to feeds.conf and git checkout the
revision hash of version.buildinfo.

Content of feeds.buildinfo would look similar to this:

    src-git routing https://git.openwrt.org/feed/routing.git^bf475d6
    src-git telephony https://git.openwrt.org/feed/telephony.git^470eb8e
    ...

Content of version.buildinfo would look similar to this:

    r10203+1-c12bd3a21b

Without the exact feed revision it is not possible to determine
installed package versions.

Also rename config.seed to config.buildinfo to follow the recommended
style of https://reproducible-builds.org/docs/recording/

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 454021581f630d5d04afeb8ff6581c1bda295c87)
Makefile
config/Config-build.in
package/base-files/Makefile