blob: c8f5531353e0e7349362010c8d4d3aab30ab9572 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001TOOLCHAIN = "gcc"
2
3do_compile() {
4 if [ -d "${WORKONSRC}" ]; then
5 echo ${TARGET_PLATFORM} met-utils start compile
6
7 if test "${KERNEL_ARCH}" = "arm64"; then
8 oe_runmake -f ${WORKONSRC}/Makefile TOPDIR=${TOPDIR} ARCH=arm64 CROSS_COMPILE=aarch64${TARGET_VENDOR}-linux- TOOLCHAIN_NAME=${TOOLCHAIN}
9 else
10 oe_runmake -f ${WORKONSRC}/Makefile TOPDIR=${TOPDIR} ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- TOOLCHAIN_NAME=${TOOLCHAIN}
11 fi
12
13 echo ${TARGET_PLATFORM} met-utils end compile
14 fi
15}