From 4e19749f95f47cb329d408559b458c4ba9f9653a Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 27 Sep 2024 14:33:10 +0800
Subject: [PATCH] update booster makefile

---
 booster/testcase/makefile |    9 ++++++++-
 booster/makefile          |    8 +++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/booster/makefile b/booster/makefile
index d93b29d..3c592b3 100644
--- a/booster/makefile
+++ b/booster/makefile
@@ -13,7 +13,13 @@
 
 PWD=$(shell pwd )
 
-CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
+ARCH?=x86
+
+ifeq ($(ARCH), arm)
+	CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
+else ifeq ($(ARCH), arm64)
+	CROSS_COMPILE=/opt/gcc-aarch64-10.3-2021.07/bin/aarch64-none-linux-gnu-
+endif
 
 LIBNAME=$(shell basename ${PWD} )
 
diff --git a/booster/testcase/makefile b/booster/testcase/makefile
index b072d52..4f516ed 100644
--- a/booster/testcase/makefile
+++ b/booster/testcase/makefile
@@ -15,7 +15,14 @@
 PWD=$(shell pwd)
 INSTPATH=/tftp
 
-CROSS_COMPILE?=arm-linux-gnueabihf-
+ARCH?=x86
+
+ifeq ($(ARCH), arm)
+	CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
+else ifeq ($(ARCH), arm64)
+	CROSS_COMPILE=/opt/gcc-aarch64-10.3-2021.07/bin/aarch64-none-linux-gnu-
+endif
+
 CC=${CROSS_COMPILE}gcc
 
 LIB_PATH=$(shell dirname ${PWD})

--
Gitblit v1.9.1