Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com> Change-Id: I6992cb04d73cd519098e2576233e4ca64536b4c0
63 lines
2.2 KiB
PHP
63 lines
2.2 KiB
PHP
require gcnano-userland.inc
|
|
|
|
LICENSE = "Proprietary"
|
|
LIC_FILES_CHKSUM = "file://${GCNANO_TAR_FILENAME}/LICENSE;md5=dd36864f287701862a189a69fc50f1d8"
|
|
|
|
DEPENDS += " libdrm wayland "
|
|
|
|
SRC_URI = "git://github.com/STMicroelectronics/gcnano-binaries;protocol=https;branch=gcnano-${GCNANO_VERSION}-binaries"
|
|
SRCREV = "787d3311e1bae40805fe2091be653eaadf059611"
|
|
|
|
PV = "${GCNANO_VERSION}+${GCNANO_DATE}"
|
|
|
|
GCNANO_VERSION = "6.4.9"
|
|
GCNANO_DATE = "20221020"
|
|
|
|
S = "${WORKDIR}/git"
|
|
B = "${S}/${GCNANO_TAR_FILENAME}"
|
|
|
|
#------------------------------------------
|
|
# Overwrite of do_unpack to untar the tarball
|
|
python() {
|
|
# Make sure that we're dealing with recipe that enables externalsrc class
|
|
if bb.data.inherits_class('externalsrc', d):
|
|
bb.build.addtask('gcnano_userland_binaries_unpack', 'do_populate_lic', None, d)
|
|
bb.build.addtask('gcnano_userland_binaries_unpack', 'do_configure', None, d)
|
|
}
|
|
|
|
do_gcnano_userland_binaries_unpack[depends] += "xz-native:do_populate_sysroot"
|
|
do_gcnano_userland_binaries_unpack() {
|
|
cd ${S}
|
|
rm -rf ${GCNANO_TAR_FILENAME}
|
|
if [ -f "${GCNANO_TAR_FILENAME}.bin" ]; then
|
|
sh ${GCNANO_TAR_FILENAME}.bin --auto-accept
|
|
else
|
|
bbfatal "Missing '${GCNANO_TAR_FILENAME}.bin' file in ${S} folder."
|
|
fi
|
|
}
|
|
|
|
do_unpack[depends] += "xz-native:do_populate_sysroot"
|
|
python do_unpack() {
|
|
eula = d.getVar('ACCEPT_EULA_'+d.getVar('MACHINE'))
|
|
eula_file = d.getVar('EULA_FILE_ST')
|
|
machine = d.getVar('MACHINE')
|
|
pkg = d.getVar('PN')
|
|
if eula == None:
|
|
bb.fatal("To use '%s' you need to accept the STMicroelectronics EULA at '%s'. "
|
|
"Please read it and in case you accept it, write: "
|
|
"ACCEPT_EULA_%s = \"1\" in your local.conf." % (pkg, eula_file, machine))
|
|
elif eula == '0':
|
|
bb.fatal("To use '%s' you need to accept the STMicroelectronics EULA." % pkg)
|
|
else:
|
|
bb.note("STMicroelectronics EULA has been accepted for '%s'" % pkg)
|
|
|
|
try:
|
|
externalsrc = d.getVar('EXTERNALSRC')
|
|
if not externalsrc:
|
|
bb.build.exec_func('base_do_unpack', d)
|
|
bb.build.exec_func('do_gcnano_userland_binaries_unpack', d)
|
|
except:
|
|
raise
|
|
}
|
|
do_unpack[vardepsexclude] += "EULA_FILE_ST"
|