blob: eb2d805b9dcccf06867c4d08abaadb3cebb23449 [file] [log] [blame]
inherit externalsrc package
DESCRIPTION = "carota update"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS += "bootctrl nandapi liblynq-protcl liblynq-log liblynq-fota"
inherit workonsrc
WORKONSRC = "${TOPDIR}/../src/lynq/packages/thirdpart/Konoda/lynq-konoda-rock/src"
TARGET_CC_ARCH += "${LDFLAGS}"
#Parameters passed to do_compile()
#EXTRA_OEMAKE = "'TARGET_PLATFORM = ${TARGET_PLATFORM}'"
#INHIBIT_PACKAGE_STRIP = "1"
do_compile () {
if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then
oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float"
else
oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST}"
fi
}
do_install() {
install -d ${D}${bindir}/
install -m 0755 ${S}/lynq-konoda-rock ${D}${bindir}/
# cp otamaster ${D}${bindir}/
# chmod 777 ${D}${bindir}/otamaster
install -d ${D}${includedir}
}