From 24cfbe2e48e846db7a3e68125b681c1b0080e117 Mon Sep 17 00:00:00 2001 From: Anjan Chanda Date: Tue, 23 Sep 2025 22:43:17 +0200 Subject: [PATCH] map-plugins: 1.1.0 --- map-plugins/Makefile | 12 +++++++++--- map-plugins/plugins/zero-touch.mk | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 map-plugins/plugins/zero-touch.mk diff --git a/map-plugins/Makefile b/map-plugins/Makefile index 9abccf281..e9a95a591 100644 --- a/map-plugins/Makefile +++ b/map-plugins/Makefile @@ -5,12 +5,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=map-plugins -PKG_VERSION:=1.0.32 +PKG_VERSION:=1.1.0 LOCAL_DEV=0 ifneq ($(LOCAL_DEV),1) PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=d8b310edad1b9777aed805682394e3f9bb300d81 +PKG_SOURCE_VERSION:=3a31c6aa74d80d38411c0d4d0610da4b810c2c64 PKG_SOURCE_URL:=https://dev.iopsys.eu/multi-ap/map-plugins.git PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz PKG_MIRROR_HASH:=skip @@ -27,12 +27,18 @@ include $(INCLUDE_DIR)/package.mk include $(wildcard plugins/*.mk) +TARGET_CFLAGS += \ + -I$(STAGING_DIR)/usr/include \ + -I$(STAGING_DIR)/usr/include/libnl3 \ + -D_GNU_SOURCE + MAKE_FLAGS += \ CFLAGS="$(TARGET_CFLAGS) -Wall" plugins := \ $(if $(CONFIG_PACKAGE_map-plugins-steer-rate),steer-rate) \ - $(if $(CONFIG_PACKAGE_map-plugins-bsteer),bsteer) + $(if $(CONFIG_PACKAGE_map-plugins-bsteer),bsteer) \ + $(if $(CONFIG_PACKAGE_map-plugins-zero-touch),zero-touch) ppkg:=$(patsubst plugins/%.mk,map-plugins-%,$(wildcard plugins/*.mk)) diff --git a/map-plugins/plugins/zero-touch.mk b/map-plugins/plugins/zero-touch.mk new file mode 100644 index 000000000..ddf1c8cda --- /dev/null +++ b/map-plugins/plugins/zero-touch.mk @@ -0,0 +1,22 @@ +define Package/map-plugins-zero-touch + $(call Package/map-plugins/Default) + TITLE:=Full Zero-touch bootstrapping of Wi-Fi Repeater device(s) + DEPENDS= +libubox +libuci +libubus +libeasy +libnl-genl \ + +libjson-c +libblobmsg-json +map-controller \ + +map-plugins +endef + +define Package/map-plugins-zero-touch/install + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/lib/mapcontroller + $(CP) $(PKG_BUILD_DIR)/zero-touch/zerotouch.so $(1)/usr/lib/mapcontroller/zerotouch.so + $(CP) $(PKG_BUILD_DIR)/zero-touch/libztdpp.so $(1)/usr/lib/libztdpp.so + +endef + +define Build/Compile/map-plugins-zero-touch + $(MAKE) -C $(PKG_BUILD_DIR)/zero-touch \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)"; +endef