ae2cb47091
frr build requires libyang 1.0.184 which conflicts with libyang 1.0.73. Solution here is to compile frr and libyang 1.0.184 first, and then uninstall libyang 1.0.184 after frr build. Then, compile libyang 1.0.73 and all packages depend on it later. Signed-off-by: Guohan Lu <lguohan@gmail.com>
40 lines
1.4 KiB
Makefile
40 lines
1.4 KiB
Makefile
# libyang
|
|
|
|
LIBYANG_VERSION_BASE = 1.0
|
|
LIBYANG_VERSION = $(LIBYANG_VERSION_BASE).73
|
|
LIBYANG_SUBVERSION = 1
|
|
|
|
export LIBYANG_VERSION_BASE
|
|
export LIBYANG_VERSION
|
|
export LIBYANG_SUBVERSION
|
|
|
|
LIBYANG = libyang_$(LIBYANG_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBYANG)_SRC_PATH = $(SRC_PATH)/libyang
|
|
# introduce artifical dependency between LIBYANG and FRR
|
|
# make sure LIBYANG is compile after FRR
|
|
$(LIBYANG)_AFTER = $(FRR)
|
|
SONIC_MAKE_DEBS += $(LIBYANG)
|
|
|
|
LIBYANG_DEV = libyang-dev_$(LIBYANG_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(eval $(call add_derived_package,$(LIBYANG),$(LIBYANG_DEV)))
|
|
|
|
LIBYANG_DBG = libyang-dbg_$(LIBYANG_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(eval $(call add_derived_package,$(LIBYANG),$(LIBYANG_DBG)))
|
|
|
|
LIBYANG_CPP = libyang-cpp_$(LIBYANG_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBYANG_CPP)_DEPENDS += $(LIBYANG)
|
|
$(eval $(call add_derived_package,$(LIBYANG),$(LIBYANG_CPP)))
|
|
|
|
LIBYANG_PY3 = python3-yang_$(LIBYANG_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBYANG_PY3)_DEPENDS += $(LIBYANG) $(LIBYANG_CPP)
|
|
$(eval $(call add_derived_package,$(LIBYANG),$(LIBYANG_PY3)))
|
|
|
|
LIBYANG_PY2 = python2-yang_$(LIBYANG_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBYANG_PY2)_DEPENDS += $(LIBYANG) $(LIBYANG_CPP)
|
|
$(eval $(call add_derived_package,$(LIBYANG),$(LIBYANG_PY2)))
|
|
|
|
$(eval $(call add_conflict_package,$(LIBYANG),$(LIBYANG1)))
|
|
$(eval $(call add_conflict_package,$(LIBYANG_DEV),$(LIBYANG1_DEV)))
|
|
|
|
export LIBYANG LIBYANG_DBG LIBYANG_DEV LIBYANG_CPP LIBYANG_PY3 LIBYANG_PY2
|