From a03eb1aa6aaee78fb2d599800ccab34f01bcfc3a Mon Sep 17 00:00:00 2001 From: Anjan Chanda Date: Fri, 2 Sep 2022 12:03:29 +0200 Subject: [PATCH] map-topology: add config EASYMESH_VENDOR_EXT_OUI --- map-topology/Config.in | 22 ++++++++++++++++++++++ map-topology/Makefile | 9 +++++++++ 2 files changed, 31 insertions(+) create mode 100644 map-topology/Config.in diff --git a/map-topology/Config.in b/map-topology/Config.in new file mode 100644 index 000000000..31556ac5a --- /dev/null +++ b/map-topology/Config.in @@ -0,0 +1,22 @@ +if (PACKAGE_map-topology) + +menu "Configurations" + +config TOPOLOGYD_EASYMESH_VENDOR_EXT + bool "Enable extra features through Easymesh vendor extension" + default y + +config TOPOLOGYD_EASYMESH_VENDOR_EXT_OUI_DEFAULT + string + default "\\\\x11\\\\x22\\\\x33" + +config TOPOLOGYD_EASYMESH_VENDOR_EXT_OUI + string "Vendor OUI in '\\\\xAB\\\\xCD\\\\xEF' format" + default TOPOLOGYD_EASYMESH_VENDOR_EXT_OUI_DEFAULT + help + Extra features not covered by the base Easymesh specification can be + enabled through TOPOLOGYD_EASYMESH_VENDOR_EXT. Please provide the Vendor's OUI + through which such features would be exposed. + +endmenu +endif diff --git a/map-topology/Makefile b/map-topology/Makefile index 4bef802c6..53a6ea694 100644 --- a/map-topology/Makefile +++ b/map-topology/Makefile @@ -31,6 +31,10 @@ define Package/map-topology TITLE:=Utility to build topology of a multi-AP network endef +define Package/map-topology/config + source "$(SOURCE)/Config.in" +endef + TARGET_CFLAGS += \ -Wno-error=deprecated-declarations \ -I$(STAGING_DIR)/usr/include \ @@ -44,6 +48,11 @@ endef MAKE_PATH:=src +ifeq ($(CONFIG_TOPOLOGYD_EASYMESH_VENDOR_EXT),y) +TARGET_CFLAGS += -DEASYMESH_VENDOR_EXT_OUI=\\\"$(CONFIG_TOPOLOGYD_EASYMESH_VENDOR_EXT_OUI)\\\" +endif + + ifeq ($(LOCAL_DEV),1) define Build/Prepare $(CP) -rf ~/git/map-topology/* $(PKG_BUILD_DIR)/