| DESCRIPTION = "update engine sideload" |
| |
| HOMEPAGE = "https://github.com/coreos/update_engine" |
| |
| LICENSE = "BSD-3-Clause" |
| LIC_FILES_CHKSUM = "file://MODULE_LICENSE_APACHE2;md5=d41d8cd98f00b204e9800998ecf8427e" |
| |
| |
| FILESEXTRAPATHS_prepend := "${THISDIR}:" |
| SRC_URI = "git://android.googlesource.com/platform/system/update_engine;protocol=https;name=platform/system/update_engine;destsuffix=platform/system/update_engine/ \ |
| file://update_engine.patch \ |
| file://file_descriptor.patch \ |
| file://erase_partition.patch \ |
| " |
| |
| SRCREV_platform/system/update_engine = "e5d1deba6185ba59da0345cb970d2d60c312ab76" |
| |
| S = "${WORKDIR}/platform/system/update_engine" |
| |
| CPPFLAGS += "-I${WORKDIR}/platform/system/" |
| |
| |
| DEPENDS += "bzip2 glog gtest openssl curl gflags protobuf dbus-glib bootctrl platform-libs-updateengine protobuf-native ${@bb.utils.contains("BOOTDEV_TYPE", "nand", "nandapi", "", d)}" |
| |
| |
| inherit autotools pkgconfig |
| |
| # Avoid QA Issue: 'Files/directories were installed but not shipped' |
| INSANE_SKIP_${PN} += "installed-vs-shipped dev-deps" |
| |
| EXTRA_OEMAKE = "PACKAGE_ARCH=${PACKAGE_ARCH} LIBDIR=${WORKDIR}/recipe-sysroot/usr/lib64 BOOTDEV_TYPE=${BOOTDEV_TYPE}" |
| |
| FILES_${PN} += "/etc/update_engine" |
| FILES_${PN} += "/etc/update_engine/update-payload-key.pub.pem" |
| FILES_${PN} += "/var/lib/update_engine" |
| |
| EXTRA_OECONF = "${@bb.utils.contains("BOOTDEV_TYPE", "nand", "--enable-nand=yes", "", d)}" |
| |
| do_configure_prepend() { |
| install -m 0755 ${TOPDIR}/../meta/meta-mediatek/recipes-support/update-engine-sideload/files/makefiles/Makefile.am ${S}/Makefile.am |
| install -m 0755 ${TOPDIR}/../meta/meta-mediatek/recipes-support/update-engine-sideload/files/makefiles/configure.ac ${S}/configure.ac |
| install -m 0755 ${TOPDIR}/../meta/meta-mediatek/recipes-support/update-engine-sideload/files/update-payload-key.pub.pem ${S}/update-payload-key.pub.pem |
| install -m 0755 ${TOPDIR}/../meta/meta-mediatek/recipes-support/update-engine-sideload/files/buildinfo.sh ${S}/buildinfo.sh |
| } |
| |
| do_install_append() { |
| install -d ${D}${libdir} |
| install -d ${D}/etc/update_engine |
| install -d ${D}/var/lib/update_engine |
| install -m 0644 ${S}/update-payload-key.pub.pem ${D}/etc/update_engine/update-payload-key.pub.pem |
| sh ${S}/buildinfo.sh > ${D}/etc/update_engine/build.prop |
| cp ${S}/update_engine.conf ${D}/etc/update_engine/ |
| } |