From b29a0109ff7eaac910894cbe73a7fec84d1bf9db Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Fri, 11 Sep 2020 14:32:39 +0800 Subject: [PATCH] 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 Signed-off-by: Joakim Zhang Reviewed-by: Frank Li Reviewed-by: Fugang Duan --- samples/mic/mpssd/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/mic/mpssd/Makefile b/samples/mic/mpssd/Makefile index a7a6e0c70424..7e2ed4e0532c 100644 --- a/samples/mic/mpssd/Makefile +++ b/samples/mic/mpssd/Makefile @@ -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