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