Makefile: Use ?= for initial variable definitions(part 2)

:= is not capable of accepting values(for variables) from execution
environment. Therefore replace := with ?= for completeness.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
This commit is contained in:
Anoop C S 2024-07-02 11:51:43 +05:30 committed by mergify[bot]
parent 3e480cd9ae
commit 83cd6ac097
1 changed files with 15 additions and 15 deletions

View File

@ -18,50 +18,50 @@ ifeq ($(CONTAINER_CMD),)
endif
ifeq ($(CEPH_VERSION),octopus)
CEPH_TAG := v15
CEPH_TAG ?= v15
endif
ifeq ($(CEPH_VERSION),pacific)
CEPH_TAG := v16
CEPH_TAG ?= v16
endif
ifeq ($(CEPH_VERSION),quincy)
CEPH_TAG := v17
CEPH_TAG ?= v17
endif
ifeq ($(CEPH_VERSION),reef)
CEPH_TAG := v18
CEPH_TAG ?= v18
endif
ifeq ($(CEPH_VERSION),squid)
CEPH_TAG := v19
CEPH_TAG ?= v19
endif
# pre-<codename> indicates we want to consume pre-release versions of ceph from
# the ceph ci. This way we can start testing on ceph versions before they hit
# quay.io/ceph/ceph
ifeq ($(CEPH_VERSION),pre-quincy)
CEPH_TAG := quincy
CEPH_IMG := quay.ceph.io/ceph-ci/ceph
CEPH_TAG ?= quincy
CEPH_IMG ?= quay.ceph.io/ceph-ci/ceph
GO_CEPH_VERSION := quincy
BUILD_TAGS := quincy,ceph_pre_quincy
endif
ifeq ($(CEPH_VERSION),pre-pacific)
CEPH_TAG := pacific
CEPH_IMG := quay.ceph.io/ceph-ci/ceph
CEPH_TAG ?= pacific
CEPH_IMG ?= quay.ceph.io/ceph-ci/ceph
GO_CEPH_VERSION := pacific
BUILD_TAGS := pacific,ceph_pre_pacific
endif
ifeq ($(CEPH_VERSION),pre-reef)
CEPH_TAG := reef
CEPH_IMG := quay.ceph.io/ceph-ci/ceph
CEPH_TAG ?= reef
CEPH_IMG ?= quay.ceph.io/ceph-ci/ceph
GO_CEPH_VERSION := reef
BUILD_TAGS := reef,ceph_pre_reef
endif
ifeq ($(CEPH_VERSION),pre-squid)
CEPH_TAG := squid
CEPH_IMG := quay.ceph.io/ceph-ci/ceph
CEPH_TAG ?= squid
CEPH_IMG ?= quay.ceph.io/ceph-ci/ceph
GO_CEPH_VERSION := squid
BUILD_TAGS := squid,ceph_pre_squid
endif
ifeq ($(CEPH_VERSION),main)
CEPH_TAG := main
CEPH_IMG := quay.ceph.io/ceph-ci/ceph
CEPH_TAG ?= main
CEPH_IMG ?= quay.ceph.io/ceph-ci/ceph
GO_CEPH_VERSION := main
BUILD_TAGS := main,ceph_main
endif