| DESCRIPTION = "MET-UTILS" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=b415b1f2e589c23040ce1f39702002e6" |
| |
| inherit get_toolchain_name |
| inherit workonsrc |
| WORKONSRC = "${TOPDIR}/../src/devtools/met-utils" |
| export CONFIG_MTK_PLATFORM = "${TARGET_PLATFORM}" |
| #TOOLCHAIN = "gcc" |
| |
| export EXTRA_CFLAGS += "-Wl,--hash-style=gnu" |
| |
| do_compile() { |
| if [ -d "${WORKONSRC}" ]; then |
| echo ${TARGET_PLATFORM} met-utils start compile |
| |
| if test "${KERNEL_ARCH}" = "arm64"; then |
| oe_runmake -f ${WORKONSRC}/Makefile TOPDIR=${TOPDIR} ARCH=arm64 CROSS_COMPILE=aarch64-poky-linux- TOOLCHAIN_NAME=${TOOLCHAIN_NAME} |
| else |
| oe_runmake -f ${WORKONSRC}/Makefile TOPDIR=${TOPDIR} ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- TOOLCHAIN_NAME=${TOOLCHAIN_NAME} |
| fi |
| |
| echo ${TARGET_PLATFORM} met-utils end compile |
| fi |
| } |
| |
| do_install() { |
| oe_runmake \ |
| PREFIX="${prefix}" DESTDIR="${D}" PACKAGE_ARCH="${PACKAGE_ARCH}" install |
| } |
| |
| # Avoid QA Issue: No GNU_HASH in the elf binary |
| PN='met-utils' |
| INSANE_SKIP_${PN} += "already-stripped" |
| |