2021-05-18 12:21:48 +00:00
|
|
|
---
|
|
|
|
title: Code review
|
|
|
|
x-toc-enable: true
|
|
|
|
...
|
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
libreboot repositories
|
2022-11-13 21:12:15 +00:00
|
|
|
===================
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
Information about who works on libreboot and who runs the project can be
|
2021-11-18 17:09:23 +00:00
|
|
|
found on [who.md](who.md)
|
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
The `libreboot` project has 3 main Git repositories:
|
2022-11-13 21:12:15 +00:00
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
* Build system: <https://codeberg.org/libreboot/lbmk>
|
|
|
|
* Website (+docs): <https://codeberg.org/libreboot/lbwww>
|
|
|
|
* Images (for website): <https://codeberg.org/libreboot/lbwww-img>
|
|
|
|
|
2023-04-11 21:50:27 +00:00
|
|
|
You can also *browse* lbmk on Libreboot's own cgit instance, though it is not
|
|
|
|
intended for development (use codeberg for that):\
|
|
|
|
<https://browse.libreboot.org/lbmk.git/>
|
|
|
|
|
2023-04-15 11:08:57 +00:00
|
|
|
If the main Git repositories are down, mirrors of `lbmk` and `lbwww` are listed
|
|
|
|
further down in this page
|
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
Libreboot was previously using NotABug, but it had continued reliability
|
|
|
|
issues due to HTTP 500 errors being returned, largely in the evenings, most
|
|
|
|
likely because too many people were on it; it was decided that Libreboot
|
|
|
|
needed something more stable, so now Libreboot is hosted on codeberg. See:
|
|
|
|
[announcement of move to codeberg, 8 April 2023](news/codeberg.md)
|
2022-11-13 21:12:15 +00:00
|
|
|
|
2023-05-07 10:43:45 +00:00
|
|
|
There are also these programs, hosted by the Libreboot project, and libreboot
|
2022-11-13 21:12:15 +00:00
|
|
|
either recommends them or makes use of them:
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
The `ich9utils` project is now available under `util/ich9utils` in lbmk, and
|
|
|
|
lbmk uses *that*, but the old standalone repository is still available on
|
|
|
|
notabug (bucts is also there):
|
|
|
|
|
2021-05-18 12:21:48 +00:00
|
|
|
* Bucts (utility): <https://notabug.org/libreboot/bucts>
|
|
|
|
* ich9utils (utility): <https://notabug.org/libreboot/ich9utils>
|
|
|
|
|
|
|
|
You can download any of these repositories, make whatever changes you like, and
|
|
|
|
then submit your changes using the instructions below.
|
|
|
|
|
2023-04-09 21:38:30 +00:00
|
|
|
It is recommended that you build libreboot (all parts of it) in a Linux
|
2022-11-14 02:31:12 +00:00
|
|
|
distribution. For example, the build system (lbmk) is untested on BSD systems.
|
2023-04-09 21:38:30 +00:00
|
|
|
Install `git` in your Linux system, and download one of the repositories.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
Development of libreboot is done using the Git version control system.
|
2021-05-18 12:21:48 +00:00
|
|
|
Refer to the [official Git documentation](https://git-scm.com/doc) if you don't
|
|
|
|
know how to use Git.
|
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
The `bucts` repository is hosted by the libreboot project, because the original
|
2021-05-18 12:21:48 +00:00
|
|
|
repository on `stuge.se` is no longer available, last time we checked. The
|
|
|
|
`bucts` program was written by Peter Stuge. You need `bucts` if you're flashing
|
2022-11-14 02:31:12 +00:00
|
|
|
internally an libreboot ROM onto a ThinkPad X60 or T60 that is currently running
|
2021-05-18 12:21:48 +00:00
|
|
|
the non-free Lenovo BIOS. Instructions for that are available here:\
|
2022-11-14 02:31:12 +00:00
|
|
|
[libreboot installation guides](docs/install/)
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
The `ich9utils` repository is used heavily, by the `lbmk` build system. However,
|
2021-05-18 12:21:48 +00:00
|
|
|
you can also download `ich9utils` on its own and use it. It generates ICH9M
|
|
|
|
descriptor+GbE images for GM45 ThinkPads that use the ICH9M southbridge. It may
|
|
|
|
also work for other systems using the same platform/chipset.
|
|
|
|
Documentation for `ich9utils` is available here:\
|
|
|
|
[ich9utils documentation](docs/install/ich9utils.md)
|
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
lbmk (libreboot-make)
|
2021-05-18 12:21:48 +00:00
|
|
|
---------------------
|
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
This is the core build system in libreboot. You could say that `lbmk` *is*
|
|
|
|
libreboot! Download the Git repository:
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
git clone https://codeberg.org/libreboot/lbmk
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
The `git` command, seen above, will download the libreboot build system `lbmk`.
|
2021-05-18 12:21:48 +00:00
|
|
|
You can then go into it like so:
|
|
|
|
|
2023-01-08 01:22:04 +00:00
|
|
|
cd lbmk
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
Make whatever changes you like, or simply build it. For instructions on how to
|
2022-11-14 02:31:12 +00:00
|
|
|
build `lbmk`, refer to the [build instructions](docs/build/).
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
Information about the build system itself, and how it works, is available in
|
2022-11-14 02:31:12 +00:00
|
|
|
the [lbmk maintenance guide](docs/maintain/).
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2022-11-16 22:56:15 +00:00
|
|
|
lbwww and lbwww-img
|
2021-05-18 12:21:48 +00:00
|
|
|
-------------------
|
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
The *entire* libreboot website and documentation is hosted in a Git repository.
|
2021-05-18 12:21:48 +00:00
|
|
|
Download it like so:
|
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
git clone https://codeberg.org/libreboot/lbwww
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
Images are hosted on <https://av.libreboot.org/> and available in a separate
|
2021-05-18 12:21:48 +00:00
|
|
|
repository:
|
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
git clone https://codeberg.org/libreboot/lbwww-img
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
Make whatever changes you like. See notes below about how to send patches.
|
|
|
|
|
|
|
|
The entire website is written in Markdown, specifically the Pandoc version of
|
2021-05-18 12:26:18 +00:00
|
|
|
it. The static HTML pages are generated with [Untitled](https://untitled.vimuser.org/).
|
2022-11-14 02:31:12 +00:00
|
|
|
Leah Rowe, the founder of libreboot, is also the founder of the Untitled static
|
2021-05-18 12:26:18 +00:00
|
|
|
site generator project.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
If you like, you can set up a local HTTP server and build your own local
|
|
|
|
version of the website. Please note that images will still link to the ones
|
2022-11-16 22:56:15 +00:00
|
|
|
hosted on <https://av.libreboot.org/>, so any images that you add to `lbwww-img`
|
2021-05-18 12:21:48 +00:00
|
|
|
will not show up on your local `lbwww` site if you make the image links (for
|
2022-11-14 02:31:12 +00:00
|
|
|
images that you add) link to `av.libreboot.org`. However, it is required that such
|
|
|
|
images be hosted on av.libreboot.org.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
Therefore, if you wish to add images to the website, please also submit to the
|
|
|
|
`lbwww-img` repository, with the links to them being
|
2022-11-16 22:56:15 +00:00
|
|
|
<https://av.libreboot.org/path/to/your/new/image/in/lbwww-img> for each one.
|
2022-11-14 02:31:12 +00:00
|
|
|
When it is merged on the libreboot website, your images will appear live.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
For development purposes, you might make your images local links first, and
|
|
|
|
then adjust the URLs when you submit your documentation/website patches.
|
|
|
|
|
2021-05-18 12:26:18 +00:00
|
|
|
Instructions are on the Untitled website, for how to set up your local version
|
|
|
|
of the website. Download untitled, and inside your `untitled` directory, create
|
2021-05-18 12:21:48 +00:00
|
|
|
a directory named `www/` then go inside the www directory, and clone the `lbwww`
|
|
|
|
repository there. Configure your local HTTP server accordingly.
|
|
|
|
|
2021-05-18 12:26:18 +00:00
|
|
|
Again, instructions are available on the Untitled website for this purpose.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
Name not required
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Contributions that you make are publicly recorded, in a Git repository which
|
|
|
|
everyone can access. This includes the name and email address of the
|
|
|
|
contributor.
|
|
|
|
|
|
|
|
In Git, for author name and email address, you do not have to use identifying
|
2022-11-14 02:31:12 +00:00
|
|
|
data. You can use `libreboot Contributor` and your email address could be
|
|
|
|
specified as contributor@libreboot.org. You are permitted to do this, if
|
2021-05-18 12:21:48 +00:00
|
|
|
you wish to maintain privacy. We believe in privacy. If you choose to remain
|
|
|
|
anonymous, we will honour this.
|
|
|
|
|
|
|
|
Of course, you can use whichever name and/or email address you like.
|
|
|
|
|
|
|
|
Legally speaking, all copyright is automatic under the Berne Convention of
|
|
|
|
international copyright law. It does not matter which name, or indeed whether
|
|
|
|
you even declare a copyright (but we do require that certain copyright
|
|
|
|
licenses are used - read more about that on this same page).
|
|
|
|
|
|
|
|
If you use a different name and email address on your commits/patches, then you
|
|
|
|
should be fairly anonymous. Use
|
|
|
|
[git log](https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History)
|
|
|
|
and [git show](https://git-scm.com/docs/git-show) to confirm that before you
|
|
|
|
push changes to a public Git repository.
|
|
|
|
|
2022-11-23 01:26:21 +00:00
|
|
|
Licenses (for contributors)
|
2021-05-18 12:21:48 +00:00
|
|
|
--------
|
|
|
|
|
2022-11-23 01:26:21 +00:00
|
|
|
Make sure to freely license your work, under a libre license. Libreboot no
|
|
|
|
longer sets arbitrary restrictions on what licenses are accepted, and many
|
|
|
|
licenses out there already exist. We will audit your contribution and tell
|
|
|
|
you if there are problems with it (e.g. no license).
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
*Always* declare a license on your work! Not declaring a license means that
|
|
|
|
the default, restrictive copyright laws apply, which would make your work
|
2022-11-23 01:26:21 +00:00
|
|
|
proprietary, subject to all of the same restrictions.
|
|
|
|
|
|
|
|
The MIT license is a good one to start with, and it is the preferred license
|
|
|
|
for all new works in Libreboot, but we're not picky. Libreboot has historically
|
|
|
|
used GNU licensing such as GPL; much of that remains, and is likely to remain.
|
|
|
|
It's your work; obviously, if you're deriving from an existing work,
|
|
|
|
it may make sense to use the same license on your contribution, for license
|
|
|
|
compatibility.
|
|
|
|
|
|
|
|
You can find common examples of licenses
|
|
|
|
[here](https://opensource.org/licenses).
|
|
|
|
|
|
|
|
If you *are* deriving from an existing work, it's important that your license
|
|
|
|
(for your contribution) be compatible with the licensing of the work from which
|
|
|
|
yours was derived. The MIT license is good because it's widely compatible
|
|
|
|
with many other licenses, and permits many freedoms (such as the freedom to
|
|
|
|
sublicense) that other licenses do not:
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2022-11-23 01:26:21 +00:00
|
|
|
<https://opensource.org/licenses/MIT>
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
Send patches
|
|
|
|
------------
|
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
Make an account on <https://codeberg.org/> and navigate (while logged in) to the
|
2021-05-18 12:21:48 +00:00
|
|
|
repository that you wish to work on. Click *Fork* and in your account,
|
2022-11-14 02:31:12 +00:00
|
|
|
you will have your own repository of libreboot. Clone your repository, make
|
2021-05-18 12:21:48 +00:00
|
|
|
whatever changes you like to it and then push to your repository, in your
|
2023-05-07 14:12:35 +00:00
|
|
|
account on Codeberg. You can also do this on a new branch, if you wish.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
In your Codeberg account, you can then navigate to the official libreboot
|
2021-08-18 00:37:55 +00:00
|
|
|
repository and submit a Pull Request. The way it works is similar to other
|
|
|
|
popular web-based Git platforms that people use these days.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
You can submit your patches there. Alternative, you can log onto the libreboot
|
2021-05-18 12:21:48 +00:00
|
|
|
IRC channel and notify the channel of which patches you want reviewed, if you
|
|
|
|
have your own Git repository with the patches.
|
|
|
|
|
2022-11-14 02:31:12 +00:00
|
|
|
Once you have issued a Pull Request, the libreboot maintainers will be notified
|
2021-05-18 12:21:48 +00:00
|
|
|
via email. If you do not receive a fast enough response from the project, then
|
2022-11-14 02:31:12 +00:00
|
|
|
you could also notify the project via the `#libreboot` channel on Libera Chat.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
Another way to submit patches is to email Leah Rowe directly:
|
2023-04-08 18:45:15 +00:00
|
|
|
[info@minifree.org](mailto:info@minifree.org) is Leah's project email address.
|
2021-05-18 12:21:48 +00:00
|
|
|
|
|
|
|
However, for transparency of the code review process, it's recommended that you
|
2023-04-08 18:45:15 +00:00
|
|
|
use Codeberg, for the time being.
|
|
|
|
|
2023-04-11 16:34:10 +00:00
|
|
|
Mirrors of lbmk.git
|
|
|
|
===================
|
|
|
|
|
|
|
|
The `lbmk` repository contains Libreboot's automated build system, which
|
|
|
|
produces Libreboot releases (including compiled ROM images).
|
|
|
|
|
|
|
|
You can run `git clone` on any of these links (the links are also clickable,
|
|
|
|
to view changes in your Web browser):
|
|
|
|
|
2023-04-15 11:08:57 +00:00
|
|
|
* <https://git.disroot.org/libreboot/lbmk>
|
2023-04-11 17:52:43 +00:00
|
|
|
* <https://gitea.treehouse.systems/libreboot/lbmk>
|
2023-04-12 14:35:24 +00:00
|
|
|
* <https://git.fosscommunity.in/libreboot/lbmk>
|
2023-04-11 17:52:43 +00:00
|
|
|
* <https://0xacab.org/libreboot/lbmk/>
|
2023-04-11 16:34:10 +00:00
|
|
|
* <https://framagit.org/libreboot/libreboot>
|
|
|
|
* <https://gitlab.com/libreboot/lbmk>
|
|
|
|
* <https://pagure.io/libreboot>
|
|
|
|
* <https://rocketgit.com/libreboot/libreboot>
|
|
|
|
|
|
|
|
lbwww.git mirror
|
|
|
|
----------------
|
|
|
|
|
2023-04-11 21:01:23 +00:00
|
|
|
The `lbwww` repository contains Markdown files (pandoc variant), for use
|
|
|
|
with the [Untitled Static Site Generator](https://untitled.vimuser.org/); this
|
|
|
|
is what Libreboot uses to provide HTML web pages, *including* the page that
|
|
|
|
you are reading right now!
|
|
|
|
|
|
|
|
You can run `git clone` on these links, and/or click to view changes in your
|
|
|
|
Web browser. See:
|
|
|
|
|
2023-04-15 11:08:57 +00:00
|
|
|
* <https://git.disroot.org/libreboot/lbwww>
|
2023-04-11 21:01:23 +00:00
|
|
|
* <https://gitea.treehouse.systems/libreboot/lbwww>
|
2023-04-12 14:35:24 +00:00
|
|
|
* <https://git.fosscommunity.in/libreboot/lbwww>
|
2023-04-11 21:01:23 +00:00
|
|
|
* <https://0xacab.org/libreboot/lbwww>
|
|
|
|
* <https://framagit.org/libreboot/lbwww/>
|
|
|
|
* <https://gitlab.com/libreboot/lbwww>
|
|
|
|
* <https://rocketgit.com/libreboot/lbwww>
|
|
|
|
|
|
|
|
NOTE: The `lbwww-img` repository is not generally provided, on mirrors, as
|
|
|
|
those are just image files which you can find on <https://av.libreboot.org>
|
|
|
|
and it is not the intention of the Libreboot project to bog down *mirrors*
|
|
|
|
with additional traffic by hosting images.
|
2023-04-11 16:34:10 +00:00
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
Notabug repositories
|
|
|
|
====================
|
|
|
|
|
2023-04-11 16:34:10 +00:00
|
|
|
Commits that go to codeberg are also still pushed to notabug, in addition to
|
|
|
|
the other mirrors. Notabug is considered a *mirror* since 8 April 2023, when
|
|
|
|
Libreboot's main development site moved to *Codeberg*.
|
|
|
|
|
2023-04-08 18:45:15 +00:00
|
|
|
OLD notabug repos are still pushed to as backup, but the codeberg mirror is
|
|
|
|
considered to be main/official now, as of the [announcement on 8
|
|
|
|
April 2023](news/codeberg.md). See:
|
|
|
|
|
|
|
|
* Build system: <https://notabug.org/libreboot/lbmk>
|
|
|
|
* Website (+docs): <https://notabug.org/libreboot/lbwww>
|
|
|
|
* Images (for website): <https://notabug.org/libreboot/lbwww-img>
|
|
|
|
|
|
|
|
For sending patches, it is now preferred that you use *codeberg*. Technically,
|
|
|
|
pull requests are still possible via Notabug. While Notabug still exists,
|
|
|
|
Libreboot patches will continue be pushed there, mirroring what gets pushed
|
|
|
|
on Notabug.
|
2023-04-11 16:34:10 +00:00
|
|
|
|
|
|
|
Because pull requests and issues were available on notabug in the past, it
|
|
|
|
makes sense to keep them open, though we ask that you send to codeberg. If
|
|
|
|
they were to be closed on notabug, existing PRs and issues won't be visible
|
|
|
|
anymore either, so they have to stay open.
|