meta-st-stm32mp/recipes-bsp/drivers/gcnano-driver-stm32mp_6.2.4.bb

32 lines
982 B
BlitzBasic

SUMMARY = "GCNano kernel drivers"
LICENSE = "GPLv1 & MIT"
# Note get md5sum with: $ head -n 53 Makefile | md5sum
LIC_FILES_CHKSUM = "file://Makefile;endline=53;md5=d77ff5896dbbf8a8bc3f7c5e8f905fcc"
SRC_URI = "git://github.com/STMicroelectronics/gcnano-binaries.git;protocol=https;branch=gcnano-6.2.4_p4-binaries"
SRCREV = "c01642ed5e18cf09ecd905af193e935cb3be95ed"
PV = "6.2.4.p4"
PR = "tar${SRCPV}"
S = "${WORKDIR}/gcnano-driver-${PV}"
include gcnano-driver-stm32mp.inc
GCNANO_DRIVER_TARBALL = "gcnano-driver-${PV}.tar.xz"
DEPENDS += "xz-native"
do_unpack[depends] += "xz-native:do_populate_sysroot"
python () {
externalsrc = d.getVar('EXTERNALSRC')
if not externalsrc:
d.prependVarFlag('do_unpack', 'postfuncs', " do_patch_extract_tarball ")
}
# add to do_patch for untar the tarball
do_patch_extract_tarball() {
bbnote "tar xfJ ${WORKDIR}/git/${GCNANO_DRIVER_TARBALL} -C ${WORKDIR}"
tar xfJ ${WORKDIR}/git/${GCNANO_DRIVER_TARBALL} -C ${WORKDIR}
}