1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00

openvswitch: fix libunbound dependency check

The ifeq check for CONFIG_OPENVSWITCH_WITH_LIBUNBOUND does not evaluate
correctly within the menuconfig, resulting in libunbound not being
selected, resulting in a failing libunbound.so.8 dependency.

Instead add this condition:dependency in the manner defined in the
OpenWrt developer guide.

Signed-off-by: Matthew Hagan <mathagan@fb.com>
This commit is contained in:
Matthew Hagan 2021-12-15 15:42:09 +00:00 committed by Yousong Zhou
parent 136003c44d
commit 5ffc45126d

View File

@ -153,10 +153,9 @@ $(eval $(call OvsKmodPackageTemplate,openvswitch-lisp-intree))
#
ovs_libopenvswitch_title:=Open vSwitch (libopenvswitch.so)
ovs_libopenvswitch_hidden:=1
ovs_libopenvswitch_depends:= +libatomic +libopenssl +!(arc||arceb):libunwind
ifeq ($(CONFIG_OPENVSWITCH_WITH_LIBUNBOUND),y)
ovs_libopenvswitch_depends+=+libunbound
endif
ovs_libopenvswitch_depends:= \
+libatomic +libopenssl +OPENVSWITCH_WITH_LIBUNBOUND:libunbound \
+!(arc||arceb):libunwind
ovs_libopenvswitch_files:=usr/lib/libopenvswitch*.so*
$(eval $(call OvsPackageTemplate,libopenvswitch))