Pavol Rusnak
299e14ad79
make: add new debugging targets
2019-01-27 16:40:11 +01:00
Pavol Rusnak
14b1a04b0a
fix Clang compile issue with unicode literals
...
https://lists.llvm.org/pipermail/llvm-bugs/2015-July/040965.html
2018-09-12 15:58:58 +02:00
Yannick Heneault
33dcb4ae8a
use pkg-config to find sdl2 installation correctly. ( #391 )
2018-08-15 19:41:26 +02:00
Yannick Heneault
df5348fb14
emulator: support /dev/{u,}random configuration at compile time; default is still /dev/urandom ( #396 )
2018-08-10 15:40:08 +02:00
Saleem Rashid
7949911748
Makefile.include: Hide command invocation unless V=1
2018-06-27 18:09:40 +02:00
Tomas Susanka
3185eb0fd4
build: ciscript includes firmware sign
...
so that emulator build uses pipenv to ensure stable environment for python-trezor
but fetching python-trezor and friends doesn't needlessly slow down non-emulator builds
that don't need it
2018-06-08 16:57:06 +02:00
Jochen Hoenicke
c09590b54d
Cleaner flash handling using FLASH_PTR
...
Use `FLASH_PTR` macro to convert a flash address to a const pointer.
For real hardware it is just a cast, for emulator we subtract the
`FLASH_ORIGIN` and use it as index into the memory mapped flash file.
Make write access to flash with volatile pointers
Also use FLASH_PTR in DebugMemory* for now. This allows for reading and
writing the flash in the emulator or just crash it by reading outside
the flash...
2018-03-29 01:16:46 +02:00
Karel Bilek
a48dcac07d
emulator: use SDL2 directly
2018-02-19 02:13:05 +01:00
Karel Bilek
998690fe41
emulator: fix Makefile
2018-02-19 02:13:05 +01:00
Pavol Rusnak
1209e48dff
make: update flash command to use openocd
2018-02-13 15:17:32 +01:00
Pavol Rusnak
c4e3596803
update trezor-crypto, adapt firmware to to changes
2018-01-13 15:20:10 +01:00
Saleem Rashid
78bc7377a0
Makefile.include: Refactor and support other compilers
2017-12-20 15:04:43 +01:00
Saleem Rashid
fd57b89902
Makefile: Use $PYTHON
2017-12-19 14:11:51 +01:00
Saleem Rashid
ba5b44d0c5
emulator: Initial commit
2017-12-18 20:09:59 +01:00
Saleem Rashid
7c630141d4
Makefile.include: Use LDLIBS & LIBDEPS
2017-12-18 20:09:59 +01:00
Saleem Rashid
d006ef6bf7
Makefile.include: Generate dependency files before build ( #225 )
...
* Makefile.include: Generate .d files before build
* Makefile.include: Generate .small.d files before build
2017-10-10 20:54:21 +02:00
Jason Zavaglia
8983a346d9
Have coins.h and coins.c generated at build time ( #220 )
2017-09-30 11:09:11 +02:00
Jochen Hoenicke
98e617d874
startup: use custom reset_handler
...
+ group confidential data in one place
+ zero all SRAM where needed
2017-08-16 13:52:01 +02:00
mruddy
1c55ec0fb3
fix hangs due to stale rng status ( #195 )
2017-07-19 11:54:26 +02:00
mruddy
90d214eb4b
add ability for developers to easily avoid locking their flash memory sectors
2017-06-30 15:47:16 +02:00
Jochen Hoenicke
db19dd1306
Set -mcpu=cortex-m3 linker flag.
...
This fixes a bug with Ubuntu 17.04.
It includes the correct architecture (armv7-m) and also includes
the flag -mfix-cortex-m3-ldrd as default.
2017-06-23 00:11:20 +02:00
Pavol Rusnak
5faee8149f
update trezor-crypto
2017-05-08 17:16:20 +02:00
Pavol Rusnak
d7d3d0490e
update trezor-crypto
2017-03-28 23:19:59 +02:00
Saleem Rashid
11d37c87cd
Makefile: Generate dependency files ( #141 )
2017-01-15 14:49:36 +01:00
Saleem Rashid
2dcef5cf04
Makefile: Build and sign before uploading ( #140 )
2017-01-13 19:04:59 +01:00
Pavol Rusnak
1e297c68fa
cosmetic changes to matrix recovery
2017-01-10 14:58:28 +01:00
Roman Zeyde
b57c0ff430
Use trezor-crypto ECDH, adding Curve25519 support
2016-10-16 01:34:02 +02:00
Pavol Rusnak
94b6733a6e
fix ar usage
2016-05-24 20:27:45 +02:00
Pavol Rusnak
f5ea14a85f
fix bugs in debug
2016-04-29 17:06:21 +02:00
Pavol Rusnak
b3aabec565
add -std=c99 to Makefile
2016-04-28 14:37:05 +02:00
Jochen Hoenicke
51f02ff763
ed25519 support
2016-04-22 18:22:45 +02:00
Pavol Rusnak
a7ef132ce5
rework OPTFLAGS, add DBGFLAGS (so it's easier to just replace -O3 to -Os for building bootloader)
2016-02-19 00:27:40 +01:00
Pavol Rusnak
6e3aec0c1b
move submodules to vendor subdirectory
2015-12-15 23:01:54 +01:00
Pavol Rusnak
8d183608c2
include libopencm3 as submodule
2015-12-15 00:20:34 +01:00
Pavol Rusnak
f6820ad5f6
gcc-arm-none-eabi is not available in travis yet, install manually
2015-08-05 17:24:16 +02:00
Pavol Rusnak
39e29c1037
use -O3 instead of -Os
2015-07-07 18:36:54 +02:00
Pavol Rusnak
1441dffe0e
cmdtr -> trezorctl
2015-03-12 15:21:22 +01:00
Jochen Hoenicke
2a28680d6e
Disable assertion checking
...
The trezor-crypto has some assertions, which are enabled unless
compiled with -DNDEBUG. This does not make much sense for the Trezor
as could not write the assertion errors to stderr anyway.
This simple patch removes the dependency to assert, printf, etc. It
saves about 11kb flash and 2.2kb ram.
2015-02-14 11:50:12 +01:00
Pavol Rusnak
e5d55967a0
implement GetAddress.show_display
2014-08-13 11:08:15 +02:00
Pavol Rusnak
524f2a957a
enable stack protector
2014-07-31 19:44:03 +02:00
Pavol Rusnak
8ee9d50eb6
leave GPIO9 floating
2014-07-01 20:29:44 +02:00
Pavol Rusnak
b6b49a20f5
small changes to scripts for deterministic builds
2014-06-19 02:31:07 +02:00
Pavol Rusnak
e3d7687b7d
add CFLAGS optimizations
2014-06-19 02:19:48 +02:00
Pavol Rusnak
add928373f
detect absolute path to Makefile.include automagically
2014-06-18 11:54:54 +02:00
Pavol Rusnak
efe6e552da
rename cmd tool in makefile
2014-05-28 14:56:31 +02:00
Pavol Rusnak
0d0a1ab5f2
import v1.0.0
2014-04-29 14:38:32 +02:00