gensio: Avoid building unused python and libstdcpp dependecies
authorBoris Krasnovskiy <borkra@gmail.com>
Fri, 22 Jul 2022 18:23:54 +0000 (14:23 -0400)
committerBoris Krasnovskiy <borkra@gmail.com>
Sat, 30 Jul 2022 23:10:06 +0000 (19:10 -0400)
Avoid building unused python and libstdcpp dependecies

Signed-off-by: Boris Krasnovskiy <borkra@gmail.com>
net/gensio/Makefile

index a94eb0e01cf35dcf735b92db0ce5c3378af18631..2744a2acca91fc4bb1472a0e5f75107b9ea0bd93 100644 (file)
@@ -33,6 +33,8 @@ PKG_CONFIG_DEPENDS:= \
        CONFIG_GENSIO_TCL \
        CONFIG_GENSIO_SSHD
 
+PKG_BUILD_DEPENDS:=PACKAGE_python3-gensio:swig
+
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/python/python3-package.mk
 
@@ -130,8 +132,7 @@ $(call Package/gensio/Default)
   TITLE+= (Python3-bindings)
   SECTION:=lang
   CATEGORY:=Languages
-  BUILD_DEPENDS:=+swig +python3
-  DEPENDS:=+python3-light +libgensio
+  DEPENDS:=+PACKAGE_python3-gensio:python3-light +libgensio
 endef
 
 define Package/python3-gensio/description
@@ -146,7 +147,7 @@ $(call Package/gensio/Default)
   SECTION:=libs
   CATEGORY:=Libraries
   ABI_VERSION:=0
-  DEPENDS:=+libgensio +libstdcpp
+  DEPENDS:=+libgensio +PACKAGE_libgensiocpp:libstdcpp
 endef
 
 define Package/libgensiocpp/description