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