1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-05 22:18:16 +00:00
Commit Graph

53 Commits

Author SHA1 Message Date
Martin Milata
6f2aa465d7 build: work around broken docker build
Broken by a44c660ccc
2024-11-02 18:58:46 +01:00
Martin Milata
9b6496358b build(core): add T3T1 to build-docker.sh 2024-06-06 21:17:54 +00:00
matejcik
af6c4efed5 build: allow targets list in build-docker.sh
this is a cleaner way to skip building firmware when we don't have data
for it

also removes --prodtest option, which is superseded by the targets list
2024-04-17 14:40:30 +02:00
matejcik
5b0b145f12 build(core): allow custom vendor header for prodtest
to facilitate building prodtest with unsigned VH and then replacing it
2024-04-17 14:40:29 +02:00
matejcik
f04aff1e47 build: differentiate between models for prodtest build 2023-06-14 12:23:03 +02:00
matejcik
b5b98b26eb build: add boardloader to docker build 2023-06-14 12:03:13 +02:00
matejcik
ddd974b56a build: add support for model R to build-docker
provisional, we will want to use the internal model names here too, but
that's gonna need to wait for the change of the TREZOR_MODEL env vars
2023-06-12 16:25:59 +02:00
matejcik
3d73ca957c build: add support for prodtest into build-docker 2023-04-17 11:57:46 +02:00
matejcik
1890e3c04d build: modify build-docker.sh to behave nicely with things that are not branches 2023-04-05 23:38:41 +02:00
matejcik
806ded05ae build: faster docker builds by reusing snapshots 2023-04-05 16:36:29 +02:00
matejcik
331bba9b70 build: also build bootloader during build-docker 2023-04-03 22:01:26 +02:00
grdddj
12eb192b3f feat(legacy): use new artifacts naming for legacy builds
[no changelog]
2023-03-21 15:52:19 +01:00
Martin Milata
233a292fd2 Merge branch 'master' into secfix/23.03
Conflicts:
	core/Makefile
	core/SConscript.firmware
	core/embed/firmware/bootloader.bin
	core/embed/firmware/bootloaders/bootloader_T.bin
	core/embed/firmware/bootloaders/bootloader_T2T1.bin
	python/src/trezorlib/firmware/core.py
	python/src/trezorlib/firmware/models.py
2023-02-28 15:20:36 +01:00
matejcik
53cac7381f build: improve option parsing for build-docker.sh 2023-02-27 14:54:25 +01:00
Pavol Rusnak
5668b5db2b chore(build): make it possible to override the docker command
via DOCKER environment variable

useful when using podman for example
2023-01-09 13:59:06 +01:00
Pavol Rusnak
b09585e192 chore(build): use host network instead of the default (bridge)
It seems that bridge is not a good default because it does not always
work out of the box.

See https://docs.docker.com/network/ for more info.
2023-01-09 13:59:06 +01:00
Pavol Rusnak
a393267461
feat(ci): make it possible to combine --skip arguments to build-docker.sh 2022-11-10 16:55:03 +01:00
Pavol Rusnak
7f061949f2 feat(ci): add more output to build-docker.sh script 2022-01-12 21:01:34 +01:00
Pavol Rusnak
30a77a76bc
chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming (#2003) 2021-12-12 15:45:10 +01:00
Pavol Rusnak
aa4ade59dc chore(ci): update alpine-linux to 3.15.0 and nix to 2.4 2021-12-09 17:23:30 +01:00
Martin Milata
31d6cfb52d chore(ci): update alpine-linux to 3.14.2 and nix to 2.3.15 2021-09-29 16:15:42 +02:00
Pavol Rusnak
552427ff69
feat(ci): some systems do not have sha256sum only shasum
one example is freebsd/macos

shasum also requires two spaces between a hash and a filename
2021-07-20 17:30:15 +02:00
vdovhanych
63a42def17 feat(ci): add sha checksum for alpine download and change to https 2021-07-20 16:57:12 +02:00
Pavol Rusnak
8ed7bdbc27 chore(ci): update alpine-linux to 3.14.0 and nix to 2.3.14 2021-07-09 11:39:24 +02:00
Pavol Rusnak
77d00206ba build(docker): add possibility to skip core/legacy/bitcoinonly builds 2021-05-04 16:09:03 +02:00
Pavol Rusnak
c6dc708fe6
build(legacy): build bootloader and intermediary_fw in docker 2021-04-20 21:37:06 +02:00
Pavol Rusnak
206c9db661
fix(build): update build-docker.sh script
- autodetect arch
- autodetect wget/curl
- update alpine linux to 3.13.2
2021-02-22 17:32:37 +01:00
Pavol Rusnak
250f09245b
ci: drop experimental --platform argument from docker 2021-01-22 16:55:27 +01:00
Pavol Rusnak
453df567d3 ci: various fixes and updates
- fix Nix build on macOS Big Sur (by updating to nixpkgs-unstable)
- update gcc-arm-embedded from 9.x to 10.x
- update nix to 2.3.10
- update Alpine Linux to 3.12.3
- allow to change arch in Docker
2021-01-04 14:40:16 +01:00
Antonin Hildebrand
be9fcf7525
build: review the build script [skip ci]
1. make it work on macOS hosts
2. add quoting to paths to prevent failures if user was foolish
   enough to put the repo on a path with spaces
3. use -o pipefail for robustness
4. use wget --no-config to prevent surprises from ~/.wgetrc
5. add --init to docker run for better signals
6. detect effective USER:GROUP like a grown up
7. break fs download url into multiple configurable parts
8. make the script independent on launch location
9. build: generate nix-shell scripts with HEREDOC
9.1. this is easier on eyes, one could review generated script in ./build
9.2. we don't have to escape quotes and chain commands with &&
9.4. added some extra quoting for user-specified values
2020-11-11 16:53:42 +01:00
Pavol Rusnak
4fdb62c2e2 chore(python): replace pipenv with poetry 2020-10-07 16:21:00 +02:00
Martin Milata
1fc6c80b5d
build-docker.sh: print fw fingerprints after build (#1209) 2020-08-21 14:09:21 +02:00
Tomas Susanka
2b4de8e270
ci: use nix docker image 2020-07-03 17:33:59 +02:00
Pavol Rusnak
74450ee4bb docker: rename container name to trezor-firmware-build.nix 2020-06-07 17:08:25 +02:00
Pavol Rusnak
2930251eeb docker: don't use nixos/nix as base, use alpine from scratch 2020-06-07 17:08:25 +02:00
Pavol Rusnak
38c80a019f docker: don't run docker with --user, use chown instead 2020-06-07 17:08:25 +02:00
Pavol Rusnak
1d68c9b386 ci: use NixOS in Docker 2020-06-07 17:08:25 +02:00
matejcik
3742691111 build: in build-docker.sh, remove containers after we are done 2019-12-11 14:21:07 +01:00
Pavol Rusnak
d63f613238
ci/docker: use gcc-arm-embedded 9 2019-12-01 19:30:10 +01:00
Tomas Susanka
75c539ec55
all: replace /bin/bash with /usr/bin/env bash 2019-09-12 17:35:55 +02:00
Pavol Rusnak
d9e9fa6ceb
build: combine docker scripts for core and legacy into one 2019-09-08 17:16:53 +02:00
matejcik
e5670856a2 MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
Pavol Rusnak
4dcd3b5812
build: fix shebang and remove prodtest from build-docker 2019-03-25 19:14:44 +01:00
Pavol Rusnak
6ce1794248
docker: add PRODUCTION env variable to build script 2018-11-05 21:41:03 +01:00
Pavol Rusnak
65434fa49a
docker: fix Docker build 2018-10-23 12:00:42 +02:00
Pavol Rusnak
610233280d
build: unify Dockerfiles 2018-10-12 14:13:39 +02:00
Pavol Rusnak
04cdb68ed2
build: unify build-docker.sh and build-docker.gcc_source.sh 2018-10-12 13:57:27 +02:00
Yura Pakhuchiy
2865c9853c Docker: support local build and build from other gh repos
Similar to recent trezor-mcu changes
2018-07-01 20:35:22 +02:00
Pavol Rusnak
cf9c97288e
build: rework vendorheader handling, move them to embed/vendorheader 2018-01-31 16:46:15 +01:00
Pavol Rusnak
27f61ae121
build: add build-docker.gcc_source.sh script 2018-01-28 15:44:26 +01:00