@@ -18,10 +18,10 @@ DIST_DIR ?= $(CURDIR)/dist
18
18
19
19
# Supported OSs by architecture
20
20
AMD64_TARGETS := ubuntu20.04 ubuntu18.04 ubuntu16.04 debian10 debian9
21
- X86_64_TARGETS := centos7 centos8 rhel7 rhel8 amazonlinux2 opensuse-leap15.1
21
+ X86_64_TARGETS := fedora35 centos7 centos8 rhel7 rhel8 amazonlinux2 opensuse-leap15.1
22
22
PPC64LE_TARGETS := ubuntu18.04 ubuntu16.04 centos7 centos8 rhel7 rhel8
23
23
ARM64_TARGETS := ubuntu20.04 ubuntu18.04
24
- AARCH64_TARGETS := centos8 rhel8 amazonlinux2
24
+ AARCH64_TARGETS := fedora35 centos8 rhel8 amazonlinux2
25
25
26
26
# By default run all native docker-based targets
27
27
docker-native :
@@ -145,6 +145,15 @@ RPM_TOOLKIT_REV = $(if $(TOOLKIT_TAG),0.1.$(TOOLKIT_TAG),1)
145
145
--rhel% : ARTIFACTS_DIR = $(DIST_DIR ) /rhel$(VERSION ) /$(ARCH )
146
146
--rhel8% : BASEIMAGE = quay.io/centos/centos:stream8
147
147
148
+ # private fedora target (actually built on centos)
149
+ --fedora% : OS := centos
150
+ --fedora% : PKG_VERS = $(LIB_VERSION )
151
+ --fedora% : PKG_REV = $(RPM_PKG_REV )
152
+ --fedora% : MIN_TOOLKIT_PKG_VERSION = $(RPM_TOOLKIT_VERSION ) -$(RPM_TOOLKIT_REV )
153
+ --fedora% : VERSION = $(patsubst fedora% -$(ARCH ) ,% ,$(TARGET_PLATFORM ) )
154
+ --fedora% : ARTIFACTS_DIR = $(DIST_DIR ) /fedora$(VERSION ) /$(ARCH )
155
+ --fedora% : BASEIMAGE = quay.io/centos/centos:stream8
156
+
148
157
PLATFORM_ARGS ?= --platform=linux/$(ARCH )
149
158
ifneq ($(strip $(ADD_DOCKER_PLATFORM_ARGS ) ) ,)
150
159
DOCKER_PLATFORM_ARGS = $(PLATFORM_ARGS )
@@ -159,7 +168,7 @@ docker-build-%:
159
168
--build-arg BASEIMAGE=" $( BASEIMAGE) " \
160
169
--build-arg GOLANG_VERSION=" $( GOLANG_VERSION) " \
161
170
--build-arg TOOLKIT_VERSION=" $( MIN_TOOLKIT_PKG_VERSION) " \
162
- --build-arg PKG_NAME=" $( LIB_NAME) " \
171
+ --build-arg PKG_NAME=" $( LIB_NAME) " \
163
172
--build-arg PKG_VERS=" $( PKG_VERS) " \
164
173
--build-arg PKG_REV=" $( PKG_REV) " \
165
174
--tag $(BUILDIMAGE ) \
0 commit comments