@@ -54,7 +54,7 @@ OUT_IMAGE_TAG = $(OUT_IMAGE_VERSION)-$(OUT_DIST)
5454OUT_IMAGE = $(OUT_IMAGE_NAME ) :$(OUT_IMAGE_TAG )
5555
5656# #### Public rules #####
57- DISTRIBUTIONS := ubuntu18.04 ubuntu20.04 ubuntu22.04 signed_ubuntu20.04 signed_ubuntu22.04 rhel8 rhel9 flatcar fedora36 sles15.3 precompiled_rhcos
57+ DISTRIBUTIONS := ubuntu18.04 ubuntu20.04 ubuntu22.04 amzn2023 signed_ubuntu20.04 signed_ubuntu22.04 rhel8 rhel9 flatcar fedora36 sles15.3 precompiled_rhcos
5858PUSH_TARGETS := $(patsubst % , push-% , $(DISTRIBUTIONS ) )
5959BASE_FROM := jammy focal
6060PUSH_TARGETS := $(patsubst % , push-% , $(DISTRIBUTIONS ) )
@@ -92,6 +92,10 @@ pull-signed_ubuntu22.04%: DIST = ubuntu22.04
9292pull-signed_ubuntu22.04% : DRIVER_TAG = $(DRIVER_BRANCH )
9393pull-signed_ubuntu22.04% : IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
9494
95+ pull-signed_amzn2023% : DIST = amzn2023
96+ pull-signed_amzn2023% : DRIVER_TAG = $(DRIVER_BRANCH )
97+ pull-signed_amzn2023% : IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
98+
9599PLATFORM ?= linux/amd64
96100$(DRIVER_PULL_TARGETS ) : pull-% :
97101 $(DOCKER ) pull " --platform=$( PLATFORM) " " $( IMAGE) "
@@ -109,6 +113,10 @@ archive-signed_ubuntu22.04%: DIST = ubuntu22.04
109113archive-signed_ubuntu22.04% : DRIVER_TAG = $(DRIVER_BRANCH )
110114archive-signed_ubuntu22.04% : IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
111115
116+ archive-signed_amzn2023% : DIST = amzn2023
117+ archive-signed_amzn2023% : DRIVER_TAG = $(DRIVER_BRANCH )
118+ archive-signed_amzn2023% : IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
119+
112120$(DRIVER_ARCHIVE_TARGETS ) : archive-% :
113121 $(DOCKER ) save " $( IMAGE) " -o " archive.tar"
114122
@@ -130,6 +138,11 @@ push-signed_ubuntu22.04%: DRIVER_TAG = $(DRIVER_BRANCH)
130138push-signed_ubuntu22.04% : IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
131139push-signed_ubuntu22.04% : OUT_IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
132140
141+ push-signed_amzn2023% : DIST = amzn2023
142+ push-signed_amzn2023% : DRIVER_TAG = $(DRIVER_BRANCH )
143+ push-signed_amzn2023% : IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
144+ push-signed_amzn2023% : OUT_IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
145+
133146# $(DRIVER_BUILD_TARGETS) is in the form of build-$(DIST)-$(DRIVER_VERSION)
134147# Parse the target to set the required variables.
135148build-% : DIST = $(word 2,$(subst -, ,$@ ) )
@@ -175,6 +188,13 @@ build-signed_ubuntu22.04%: DRIVER_TAG = $(DRIVER_BRANCH)
175188build-signed_ubuntu22.04% : IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
176189build-signed_ubuntu22.04% : DOCKER_BUILD_ARGS = --build-arg KERNEL_VERSION="$(KERNEL_VERSION ) "
177190
191+ # amzn2023 Precompiled Driver
192+ build-signed_amzn2023% : DIST = amzn2023
193+ build-signed_amzn2023% : DRIVER_TAG = $(DRIVER_BRANCH )
194+ build-signed_amzn2023% : IMAGE_TAG = $(DRIVER_BRANCH ) -$(KERNEL_VERSION ) -$(DIST )
195+ build-signed_amzn2023% : DOCKER_BUILD_ARGS = --build-arg KERNEL_VERSION="$(KERNEL_VERSION ) "
196+ # build-signed_amzn2023%: DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
197+
178198# base is an image used to poll Canonical for the latest kernel version
179199build-base-% : DOCKERFILE = $(CURDIR ) /base/Dockerfile
180200build-base-% : TARGET = $(word 3,$(subst -, ,$@ ) )
0 commit comments