refactor #1 + adding documentation (#36)
Build and publish release / metadata (push) Successful in 44s
Build and publish release / create-release (push) Successful in 49s
Build and publish release / publish-release (push) Canceled after 0s
Build and publish release / build (push) Canceled after 7m44s

Reviewed-on: #36
Co-authored-by: Koda YeenBean <n122330@gmail.com>
This commit was merged in pull request #36.
This commit is contained in:
2026-07-19 21:26:28 +01:00
committed by Koda
parent db81260d7f
commit 3fcd99af1f
31 changed files with 4068 additions and 2598 deletions
+15 -14
View File
@@ -26,27 +26,28 @@ endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
$(CP) ./src/. $(PKG_BUILD_DIR)/
endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -DENABLE_LOGGING=1
OPENUF_SRCS := \
main.c config.c state.c crypto.c http.c announce.c \
inform/inform.c inform/payload.c inform/packet.c inform/response.c \
wlan/common.c wlan/uci.c wlan/radio.c wlan/provision.c \
wlan/legacy.c wlan/telemetry.c \
sysinfo.c clients.c lldp.c models.c
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-I$(PKG_BUILD_DIR) \
-I$(PKG_BUILD_DIR)/inform \
-I$(PKG_BUILD_DIR)/wlan \
-DENABLE_LOGGING=1
TARGET_LDFLAGS += -lmbedtls -lmbedcrypto -luci -ljson-c
define Build/Compile
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
-o $(PKG_BUILD_DIR)/openuf \
$(PKG_BUILD_DIR)/main.c \
$(PKG_BUILD_DIR)/config.c \
$(PKG_BUILD_DIR)/state.c \
$(PKG_BUILD_DIR)/crypto.c \
$(PKG_BUILD_DIR)/http.c \
$(PKG_BUILD_DIR)/announce.c \
$(PKG_BUILD_DIR)/inform.c \
$(PKG_BUILD_DIR)/wlan.c \
$(PKG_BUILD_DIR)/sysinfo.c \
$(PKG_BUILD_DIR)/clients.c \
$(PKG_BUILD_DIR)/lldp.c \
$(PKG_BUILD_DIR)/models.c
$(addprefix $(PKG_BUILD_DIR)/,$(OPENUF_SRCS))
endef
define Package/openuf/install