freedomofpress / freedomofpress/kernel-builder

Support reproducible builds

Open
#3 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5
Forks
3
PR merge metrics
No merged PRs in 30d

Description

See https://www.kernel.org/doc/html/latest/kbuild/reproducible-builds.html In order to support deterministic builds, set:

  • KBUILD_BUILD_TIMESTAMP
  • (and/or?) SOURCE_DATE_EPOCH
  • KBUILD_BUILD_USER
  • KBUILD_BUILD_HOST

Also of note:

If you enable CONFIG_GCC_PLUGIN_RANDSTRUCT, you will need to pre-generate the random seed in scripts/gcc-plugins/randomize_layout_seed.h so the same value is used in rebuilds.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked kernel reproducible-builds documentation and trace how this repository invokes kernel builds. Check how KBUILD_BUILD_TIMESTAMP, SOURCE_DATE_EPOCH, KBUILD_BUILD_USER, and KBUILD_BUILD_HOST could be supplied, and review scripts/gcc-plugins/randomize_layout_seed.h for the RANDSTRUCT case. Done means repeated builds use deterministic metadata and a stable random seed.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.