From f6a80713cf7f27bdb7e4fbbade8db3ea8bebc7d6 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 23 Apr 2025 14:23:15 +0800
Subject: [PATCH] update w25qflash to specify spidev

---
 project/modules/makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/project/modules/makefile b/project/modules/makefile
index 1b2a503..dbd9de2 100644
--- a/project/modules/makefile
+++ b/project/modules/makefile
@@ -25,11 +25,14 @@
 
 CFLAGS+=-I${OPENLIBS_INCPATH} -I${TOPDIR}/booster
 
-all: clean
+all: prelibs clean
 	@rm -f *.o
 	${CROSS_COMPILE}gcc ${CFLAGS} -c *.c
 	${CROSS_COMPILE}ar -rcs  lib${LIBNAME}.a *.o
 
+prelibs:
+	if [ -n "${CROSS_COMPILE}" ] ; then cd ${TOPDIR}/openlibs/libgpiod && ./build.sh ; fi;
+
 clean:
 	@rm -f *.o
 	@rm -f *.a

--
Gitblit v1.9.1