Skip to content

Commit 5477998

Browse files
dxxbdbrignoli
authored andcommitted
ports:unix: add modubus wrapper for libubus
1 parent cd086f4 commit 5477998

2 files changed

Lines changed: 824 additions & 0 deletions

File tree

ports/unix/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,15 @@ CFLAGS += $(LIBFFI_CFLAGS) -DMICROPY_PY_FFI=1
193193
LDFLAGS += $(LIBFFI_LDFLAGS)
194194
endif
195195

196+
ifeq ($(MICROPY_PY_UBUS),1)
197+
LIBUBUS_LDFLAGS := "-lubus"
198+
199+
CFLAGS += $(LIBUBUS_CFLAGS_MOD) -DMICROPY_PY_UBUS=1
200+
LDFLAGS += $(LIBUBUS_LDFLAGS)
201+
SRC_C += modubus.c
202+
endif
203+
204+
196205
ifeq ($(MICROPY_PY_JNI),1)
197206
# Path for 64-bit OpenJDK, should be adjusted for other JDKs
198207
CFLAGS += -I/usr/lib/jvm/java-7-openjdk-amd64/include -DMICROPY_PY_JNI=1

0 commit comments

Comments
 (0)