Commit Graph

13 Commits

Author SHA1 Message Date
Andreas Rammhold
3cd5413447
coreboot-toolchain: refactor the package set structure
Previously we were unable to override individual attributes within the
coreboot-toolchain packageset. By using callPackage on each of the
attributes individually we retain the ability to call the override
function to inject custom dependencies into the build.
2021-11-24 00:25:56 +01:00
Felix Singer
bcbc7c0f21 coreboot-toolchain: Add other target architectures
Add the following target architectures:
  * x86_64
  * arm
  * aarch64
  * riscv
  * ppc64
  * nds32le

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-11-20 02:18:10 +01:00
Felix Singer
8002a4a133 coreboot-toolchain: Allow adding new architectures
Rework package so that new target architectures can be added and reuse
common configurations.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-11-20 02:18:05 +01:00
Felix Singer
0faf3230fb coreboot-toolchain: Improve reproducibility
For reproducibility, the toolchain build system appends a specific
version string to the usual version string of the tools. Before 4.15,
the build system used git for that at runtime and since the .git
directory is removed by the NixOS build system, the version string was
empty and resulted in `v_`.

Now, the toolchain build system prefers using the environment variable
`CROSSGCC_VERSION` if set. Thus, extract the version string in the
postFetch phase and set `CROSSGCC_VERSION` in the build phase.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-11-10 20:15:05 +01:00
Felix Singer
ee2417a226 coreboot-toolchain: 4.14 -> 4.15
Update to latest release.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-11-10 19:39:12 +01:00
Felix Singer
60d1033025 coreboot-toolchain: Rework update script
Rework update script so that it needs to be run from the root directory
of nixpkgs and get rid of relative paths. Also, move the resulting file
`sources.nix` into the package directory.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-11-10 19:38:31 +01:00
Felix Singer
4e75ca5bae coreboot-toolchain: Disable fetching of submodules
Submodules are not needed. Thus, disable fetching of the submodules.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-11-10 19:05:19 +01:00
Sandro
3ae4c035be
coreboot-toolchain: minor cleanup 2021-10-11 15:17:05 +02:00
Felix Singer
0b2b0331f0 coreboot-toolchain: Use sources.nix generated by update.sh
Use sources.nix for all source files (except coreboot) generated by
update.sh.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-10-10 01:05:45 +02:00
Felix Singer
28383a922e coreboot-toolchain: Introduce script for generating sources file
Add and adjust update script from
https://git.petabyte.dev/petabyteboy/corenix.

The script is meant to be run from the package directory of the
coreboot-toolchain. The script generates a sources.nix files, which
contains all sources used for the coreboot toolchain and some other
tools. Thus, it needs to be stripped down to the necessary sources.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-10-09 22:19:46 +02:00
Felix Singer
cff7863c34 coreboot-toolchain: Use git repository as source
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-10-09 19:39:54 +02:00
Felix Singer
6d7fd89453 coreboot-toolchain: Set pname instead of name
Set `pname` instead of `name` since `name` is derived from
`${pname}-${version}`.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-10-08 04:46:09 +02:00
Felix Singer
f0b20bad9c coreboot-toolchain: Init at 4.14
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2021-09-28 21:14:16 +02:00