Skip to content

Commit 326665c

Browse files
dxxbdbrignoli
authored andcommitted
ports:unix: add modubus wrapper for libubus
1 parent aba1ecb commit 326665c

File tree

3 files changed

+829
-0
lines changed

3 files changed

+829
-0
lines changed

ports/unix/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@ LDFLAGS_MOD += $(LIBFFI_LDFLAGS_MOD)
212212
SRC_MOD += modffi.c
213213
endif
214214

215+
ifeq ($(MICROPY_PY_UBUS),1)
216+
LIBUBUS_LDFLAGS_MOD := "-lubus"
217+
218+
CFLAGS_MOD += $(LIBUBUS_CFLAGS_MOD) -DMICROPY_PY_UBUS=1
219+
LDFLAGS_MOD += $(LIBUBUS_LDFLAGS_MOD)
220+
SRC_MOD += modubus.c
221+
endif
222+
223+
215224
ifeq ($(MICROPY_PY_JNI),1)
216225
# Path for 64-bit OpenJDK, should be adjusted for other JDKs
217226
CFLAGS_MOD += -I/usr/lib/jvm/java-7-openjdk-amd64/include -DMICROPY_PY_JNI=1

0 commit comments

Comments
 (0)