| inherit workonsrc autotools |
| |
| DESCRIPTION = "abupdate bootctrl" |
| LICENSE = "MediaTekProprietary" |
| # LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| |
| FILESEXTRAPATHS_prepend := "${THISDIR}:" |
| |
| WORKONSRC = "${TOPDIR}/../src/support/bootctrl" |
| |
| DEPENDS += "${@bb.utils.contains("BOOTDEV_TYPE", "nand", "nandapi", "", d)} libhardware libavb" |
| |
| EXTRA_OEMAKE = "NANDAPIDIR=${TOPDIR}/../src/support/libnandapi" |
| |
| INHIBIT_PACKAGE_STRIP = "1" |
| |
| do_configure_prepend() { |
| install -d ${S}/include/hardware |
| install -d ${S}/mediatek/bootctrl/avb/libavb |
| install -m 0755 ${STAGING_DIR_HOST}/${includedir}/hardware.h ${S}/include/hardware |
| install -m 0755 ${STAGING_DIR_HOST}/${includedir}/boot_control.h ${S}/include/hardware |
| install -m 0755 ${STAGING_DIR_HOST}/${includedir}/avb_util.h ${S}/mediatek/bootctrl/avb/libavb |
| install -m 0755 ${STAGING_DIR_HOST}/${datadir}/avb_crc32.c ${S}/mediatek/bootctrl/avb/libavb |
| install -m 0755 ${STAGING_DIR_HOST}/${datadir}/avb_util.c ${S}/mediatek/bootctrl/avb/libavb |
| } |