summaryrefslogtreecommitdiff
path: root/recipes-bsp/tegrarcm/tegrarcm.bb
blob: 953c3ea457e1a7552120c62069649dc590fe67e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SUMMARY = "TegraRCM"
DESCRIPTION = "Utility used to upload payloads to a NVIDIA Tegra based device in recovery mode (RCM)."
SECTION = "bootloader"
DEPENDS = "libusb1-native libcryptopp-native"

LICENSE = "NVIDIA-Public"
LIC_FILES_CHKSUM = "file://LICENSE;md5=395fe5affb633ad84474e42989a8e5be"

BBCLASSEXTEND = "native nativesdk"

SRC_URI = " \
    git://github.com/NVIDIA/tegrarcm.git \
    file://0001-configure.ac-link-crypotpp-as-a-static-library.patch \
"

SRCREV = "6bdc10e4712f7091a9ceb39f43f7311ee6fccc58"
PV = "1.7"

EXTRA_OEMAKE='PREFIX="${prefix}" LIBDIR="${libdir}"'

LDFLAGS_append=" -static-libstdc++"

#we want tegrarcm binary to run on a 32-bit architecture, on x86_64 this requires the 32-bit compatibility libs
EXTRA_OEMAKE_class-native = "CC='${CC} -m32' CXX='${CXX} -m32'"

do_compile () {
    oe_runmake CPPFLAGS=-I${includedir}/cryptopp || die "make failed"
}

S = "${WORKDIR}/git"

inherit autotools native