From 7d9973022f5417a9fbd11f25536186f1cac5d38b Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sun, 23 Feb 2025 10:52:55 +0800 Subject: [PATCH] update modules makefile to support build libgpiod on x86 --- 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