From cd006b9357bcb632a2d4539c086fb93ca6ae23c6 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 17 Nov 2025 23:37:49 +0800
Subject: [PATCH] Update lightd to support DS18B20 and TLS2561
---
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