blob: 0c03d58775287113590a4785a5576f8cfefca1a7 [file] [log] [blame]
inherit externalsrc
DESCRIPTION = "mediatek update image demo"
LICENSE = "MediaTekProprietary"
DEPENDS += "libdrm curl android-tools-fsutils zlib"
MTK_SRC = "${TOPDIR}/../src/multimedia/mtk-demo-app/upgrade_app"
#LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
PN='upgrade_app'
INSANE_SKIP_${PN} +="installed-vs-shipped"
S="${WORKDIR}"
inherit workonsrc
WORKONSRC = "${TOPDIR}/../src/multimedia/mtk-demo-app/upgrade_app"
inherit pkgconfig
inherit systemd
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "upgrade_app.service"
FILES_${PN} += "${systemd_unitdir}/system/upgrade_app.service"
do_compile() {
oe_runmake \
CFLAGS=" -lpthread ${CFLAGS}" \
LDFLAGS="-Wl,--whole-archive -lsparse -Wl,--no-whole-archive -lz -ldrm -lstdc++ -lpthread -lm -lcurl ${LDFLAGS}" \
BOOTDEV_TYPE=${BOOTDEV_TYPE}
}
do_install(){
oe_runmake \
PREFIX="${PREFIX}" DESTDIR="${D}" install
}
do_install_append() {
install -d ${D}${systemd_unitdir}/system
install -m 0755 ${TOPDIR}/../meta/meta-mediatek/recipes-bsp/upgrade_app/upgrade_app.service ${D}${systemd_unitdir}/system
}