blob: 6ceacb105040d57a953d6c4e0cb9b19b51fe3231 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "MET-UTILS"
2LICENSE = "MediaTekProprietary"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=b415b1f2e589c23040ce1f39702002e6"
4
5inherit get_toolchain_name
6inherit workonsrc
7WORKONSRC = "${TOPDIR}/../src/devtools/met-utils"
8export CONFIG_MTK_PLATFORM = "${TARGET_PLATFORM}"
9#TOOLCHAIN = "gcc"
10
11export EXTRA_CFLAGS += "-Wl,--hash-style=gnu"
12
13do_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
27do_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
33PN='met-utils'
34INSANE_SKIP_${PN} += "already-stripped"
35