MLK-24793: samples: mpssd: change mpssd makefile to support arm64 architecture

Since imx-mic also need user space tool to boot vop, so use Intel's
mpssd tool directly. Here need change makefile to make mpssd can be
built on arm64 architecture.

For arm64 architecture, use below command to build mpssd:
make -C samples/mic/mpssd/ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
This commit is contained in:
Sherry Sun 2020-09-11 14:32:39 +08:00
parent 5d1afc6642
commit b29a0109ff
1 changed files with 1 additions and 3 deletions

View File

@ -1,9 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
ifndef CROSS_COMPILE
uname_M := $(shell uname -m 2>/dev/null || echo not)
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
ifeq ($(ARCH),x86)
ifeq ($(ARCH),$(filter $(ARCH),x86 arm64))
PROGS := mpssd
CC = $(CROSS_COMPILE)gcc
@ -25,4 +24,3 @@ clean:
rm -fr $(PROGS)
endif
endif