From d48b80fc277cb123738461b6125a58ffe9923019 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 21 Aug 2024 17:39:16 +0800
Subject: [PATCH] update cross compiler

---
 hal/api/makefile |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/hal/api/makefile b/hal/api/makefile
index 0c3525e..befd362 100644
--- a/hal/api/makefile
+++ b/hal/api/makefile
@@ -15,7 +15,7 @@
 PWD=$(shell pwd)
 INSTPATH=/tftp
 
-CROSS_COMPILE=arm-linux-gnueabihf-
+CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
 CC=${CROSS_COMPILE}gcc
 
 LDFLAGS += -lm
@@ -27,9 +27,9 @@
 BINARIES=$(SRCFILES:%.c=%)
 
 # libgpiod compile install path
-LIBGPIOD_PATH=libgpiod/install
-CFLAGS+=-I ${LIBGPIOD_PATH}/include
-LDFLAGS+=-L ${LIBGPIOD_PATH}/lib -lgpiod
+LIBS_PATH=install
+CFLAGS+=-I ${LIBS_PATH}/include
+LDFLAGS+=-L ${LIBS_PATH}/lib -lgpiod
 
 all: libs binaries install
 
@@ -48,7 +48,8 @@
 	@rm -f *.o *.lo $(BINARIES)
 
 distclean: clean
-	@rm -f  tags cscope*
+	@rm -f tags cscope*
 	@make clean -C libgpiod
+	@rm -rf install
 
 .PHONY: clean entry

--
Gitblit v1.9.1