refactor #1 + adding documentation
Validate source documentation / generated-wiki (pull_request) Failing after 10s
Validate source documentation / generated-wiki (pull_request) Failing after 10s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user