Skip to content

Commit

Permalink
updated for pitrezor firmware 1.8.1 (using new git repo)
Browse files Browse the repository at this point in the history
  • Loading branch information
heneault committed Jun 1, 2019
1 parent ac8e291 commit 02e5c63
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions meta-pitrezor/recipes-core/pitrezor/pitrezor_git.bb
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
SUMMARY = "Pitrezor application"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02"
LIC_FILES_CHKSUM = "file://legacy/COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02"

DEPENDS = "libsdl2 bcm2835 protobuf-native python3-protobuf-native python3-six-native python3-click-native python3-trezor-native dos2unix-native python3-mako-native python3-munch-native libconfig"
RDEPENDS_${PN} = "rng-tools dos2unix"

inherit pkgconfig python3native

SRC_URI = "gitsm://github.com/heneault/trezor-mcu.git;branch=pitrezor \
SRC_URI = "git://github.com/heneault/trezor-firmware.git;branch=pitrezor \
file://start_pitrezor \
file://pitrezor.config \
"

SRCREV = "6cb50070a8d1db19394a862f17c0c4208eff4f63"
SRCREV = "fe67188aba848892bd66a4b0a2689cefc5c9a084"

S = "${WORKDIR}/git"

do_configure() {
}

do_compile() {
export EMULATOR=1
export PIZERO=1
export CPUFLAGS=""
export RANDOM_DEV_FILE="/dev/random"
cd legacy
make vendor
make -C emulator/pizero
make -C emulator
make -C vendor/nanopb/generator/proto
Expand All @@ -34,7 +39,7 @@ do_install() {
install -d ${D}${bindir}
install -d ${D}${datadir}/pitrezor
install -m 0755 ${WORKDIR}/start_pitrezor ${D}${bindir}
install -m 0766 ${B}/firmware/trezor.elf ${D}${bindir}/pitrezor
install -m 0766 ${B}/legacy/firmware/trezor.elf ${D}${bindir}/pitrezor
install -m 0444 ${WORKDIR}/pitrezor.config ${D}${datadir}/pitrezor
unix2dos ${D}${datadir}/pitrezor/pitrezor.config
}
Expand Down

0 comments on commit 02e5c63

Please sign in to comment.