rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "MET-UTILS" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b415b1f2e589c23040ce1f39702002e6" |
| 4 | |
| 5 | inherit get_toolchain_name |
| 6 | inherit workonsrc |
| 7 | WORKONSRC = "${TOPDIR}/../src/devtools/met-utils" |
| 8 | export CONFIG_MTK_PLATFORM = "${TARGET_PLATFORM}" |
| 9 | #TOOLCHAIN = "gcc" |
| 10 | |
| 11 | export EXTRA_CFLAGS += "-Wl,--hash-style=gnu" |
| 12 | |
| 13 | do_compile() { |
| 14 | if [ -d "${WORKONSRC}" ]; then |
| 15 | echo ${TARGET_PLATFORM} met-utils start compile |
| 16 | |
| 17 | if test "${KERNEL_ARCH}" = "arm64"; then |
| 18 | oe_runmake -f ${WORKONSRC}/Makefile TOPDIR=${TOPDIR} ARCH=arm64 CROSS_COMPILE=aarch64-poky-linux- TOOLCHAIN_NAME=${TOOLCHAIN_NAME} |
| 19 | else |
| 20 | oe_runmake -f ${WORKONSRC}/Makefile TOPDIR=${TOPDIR} ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- TOOLCHAIN_NAME=${TOOLCHAIN_NAME} |
| 21 | fi |
| 22 | |
| 23 | echo ${TARGET_PLATFORM} met-utils end compile |
| 24 | fi |
| 25 | } |
| 26 | |
| 27 | do_install() { |
| 28 | oe_runmake \ |
| 29 | PREFIX="${prefix}" DESTDIR="${D}" PACKAGE_ARCH="${PACKAGE_ARCH}" install |
| 30 | } |
| 31 | |
| 32 | # Avoid QA Issue: No GNU_HASH in the elf binary |
| 33 | PN='met-utils' |
| 34 | INSANE_SKIP_${PN} += "already-stripped" |
| 35 | |