2023-07-05 11:59:35 -05:00
|
|
|
# protobuf package
|
2023-12-05 19:51:14 -06:00
|
|
|
# Protobuf 3.21.12 has been released in bookworm, So we only need to build it
|
|
|
|
# in the bullseye environment.
|
|
|
|
ifeq ($(BLDENV),bullseye)
|
2023-07-05 11:59:35 -05:00
|
|
|
|
2023-12-05 19:51:14 -06:00
|
|
|
PROTOBUF_VERSION = 3.21.12
|
|
|
|
PROTOBUF_VERSION_FULL = $(PROTOBUF_VERSION)-3
|
2023-07-05 11:59:35 -05:00
|
|
|
|
2023-12-05 19:51:14 -06:00
|
|
|
export PROTOBUF_VERSION
|
|
|
|
export PROTOBUF_VERSION_FULL
|
2023-07-05 11:59:35 -05:00
|
|
|
|
2023-12-05 19:51:14 -06:00
|
|
|
PROTOBUF = libprotobuf32_$(PROTOBUF_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
|
|
|
$(PROTOBUF)_SRC_PATH = $(SRC_PATH)/protobuf
|
|
|
|
SONIC_MAKE_DEBS += $(PROTOBUF)
|
2023-07-05 11:59:35 -05:00
|
|
|
|
2023-12-05 19:51:14 -06:00
|
|
|
PROTOBUF_DEV = libprotobuf-dev_$(PROTOBUF_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
|
|
|
$(PROTOBUF_DEV)_DEPENDS = $(PROTOBUF) $(PROTOBUF_LITE)
|
|
|
|
$(eval $(call add_derived_package,$(PROTOBUF),$(PROTOBUF_DEV)))
|
2023-07-05 11:59:35 -05:00
|
|
|
|
2023-12-05 19:51:14 -06:00
|
|
|
PROTOBUF_LITE = libprotobuf-lite32_$(PROTOBUF_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
|
|
|
$(eval $(call add_derived_package,$(PROTOBUF),$(PROTOBUF_LITE)))
|
2023-07-05 11:59:35 -05:00
|
|
|
|
2023-12-05 19:51:14 -06:00
|
|
|
PROTOC32 = libprotoc32_$(PROTOBUF_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
|
|
|
$(PROTOC32)_RDEPENDS = $(PROTOBUF) $(PROTOBUF_LITE)
|
|
|
|
$(eval $(call add_derived_package,$(PROTOBUF),$(PROTOC32)))
|
2023-07-05 11:59:35 -05:00
|
|
|
|
2023-12-05 19:51:14 -06:00
|
|
|
PROTOBUF_COMPILER = protobuf-compiler_$(PROTOBUF_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
|
|
|
$(PROTOBUF_COMPILER)_DEPENDS = $(PROTOC32)
|
|
|
|
$(PROTOBUF_COMPILER)_RDEPENDS = $(PROTOC32)
|
|
|
|
$(eval $(call add_derived_package,$(PROTOBUF),$(PROTOBUF_COMPILER)))
|
2023-07-05 11:59:35 -05:00
|
|
|
|
2023-12-05 19:51:14 -06:00
|
|
|
PYTHON3_PROTOBUF = python3-protobuf_$(PROTOBUF_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
|
|
|
$(PYTHON3_PROTOBUF)_DEPENDS = $(PROTOBUF_DEV) $(PROTOBUF)
|
|
|
|
$(PYTHON3_PROTOBUF)_RDEPENDS = $(PROTOBUF)
|
|
|
|
$(eval $(call add_derived_package,$(PROTOBUF),$(PYTHON3_PROTOBUF)))
|
|
|
|
|
|
|
|
endif
|