Update slave.mk to assume a Bookworm base image
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This commit is contained in:
parent
b46f967474
commit
3bf2c54768
14
Makefile
14
Makefile
@ -4,7 +4,7 @@ NOJESSIE ?= 1
|
|||||||
NOSTRETCH ?= 1
|
NOSTRETCH ?= 1
|
||||||
NOBUSTER ?= 0
|
NOBUSTER ?= 0
|
||||||
NOBULLSEYE ?= 0
|
NOBULLSEYE ?= 0
|
||||||
NOBOOKWORM ?= 1
|
NOBOOKWORM ?= 0
|
||||||
|
|
||||||
override Q := @
|
override Q := @
|
||||||
ifeq ($(QUIET),n)
|
ifeq ($(QUIET),n)
|
||||||
@ -52,12 +52,12 @@ ifeq ($(NOBUSTER), 0)
|
|||||||
$(MAKE_WITH_RETRY) EXTRA_DOCKER_TARGETS=$(notdir $@) BLDENV=buster -f Makefile.work buster
|
$(MAKE_WITH_RETRY) EXTRA_DOCKER_TARGETS=$(notdir $@) BLDENV=buster -f Makefile.work buster
|
||||||
endif
|
endif
|
||||||
ifeq ($(NOBULLSEYE), 0)
|
ifeq ($(NOBULLSEYE), 0)
|
||||||
$(MAKE_WITH_RETRY) BLDENV=bullseye -f Makefile.work $@
|
$(MAKE_WITH_RETRY) EXTRA_DOCKER_TARGETS=$(notdir $@) BLDENV=bullseye -f Makefile.work bullseye
|
||||||
endif
|
endif
|
||||||
ifeq ($(NOBOOKWORM), 0)
|
ifeq ($(NOBOOKWORM), 0)
|
||||||
$(MAKE_WITH_RETRY) BLDENV=bullseye -f Makefile.work $@
|
$(MAKE_WITH_RETRY) BLDENV=bookworm -f Makefile.work $@
|
||||||
endif
|
endif
|
||||||
BLDENV=bullseye $(MAKE) -f Makefile.work docker-cleanup
|
BLDENV=bookworm $(MAKE) -f Makefile.work docker-cleanup
|
||||||
|
|
||||||
jessie:
|
jessie:
|
||||||
@echo "+++ Making $@ +++"
|
@echo "+++ Making $@ +++"
|
||||||
@ -77,6 +77,12 @@ ifeq ($(NOBUSTER), 0)
|
|||||||
$(MAKE) -f Makefile.work buster
|
$(MAKE) -f Makefile.work buster
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
bullseye:
|
||||||
|
@echo "+++ Making $@ +++"
|
||||||
|
ifeq ($(NOBUSTER), 0)
|
||||||
|
$(MAKE) -f Makefile.work bullseye
|
||||||
|
endif
|
||||||
|
|
||||||
init:
|
init:
|
||||||
@echo "+++ Making $@ +++"
|
@echo "+++ Making $@ +++"
|
||||||
$(MAKE) -f Makefile.work $@
|
$(MAKE) -f Makefile.work $@
|
||||||
|
@ -78,7 +78,8 @@ SONIC_COMMON_DPKG_LIST := debian/control debian/changelog debian/rules \
|
|||||||
SONIC_COMMON_BASE_FILES_LIST := sonic-slave-jessie/Dockerfile.j2 sonic-slave-jessie/Dockerfile.user.j2 \
|
SONIC_COMMON_BASE_FILES_LIST := sonic-slave-jessie/Dockerfile.j2 sonic-slave-jessie/Dockerfile.user.j2 \
|
||||||
sonic-slave-stretch/Dockerfile.j2 sonic-slave-stretch/Dockerfile.user.j2 \
|
sonic-slave-stretch/Dockerfile.j2 sonic-slave-stretch/Dockerfile.user.j2 \
|
||||||
sonic-slave-buster/Dockerfile.j2 sonic-slave-buster/Dockerfile.user.j2 \
|
sonic-slave-buster/Dockerfile.j2 sonic-slave-buster/Dockerfile.user.j2 \
|
||||||
sonic-slave-bullseye/Dockerfile.j2 sonic-slave-bullseye/Dockerfile.user.j2
|
sonic-slave-bullseye/Dockerfile.j2 sonic-slave-bullseye/Dockerfile.user.j2 \
|
||||||
|
sonic-slave-bookworm/Dockerfile.j2 sonic-slave-bookworm/Dockerfile.user.j2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -314,7 +314,7 @@ SONIC_SLAVE_DOCKER_DRIVER ?= vfs
|
|||||||
GZ_COMPRESS_PROGRAM ?= gzip
|
GZ_COMPRESS_PROGRAM ?= gzip
|
||||||
|
|
||||||
# SONIC_OS_VERSION - sonic os version
|
# SONIC_OS_VERSION - sonic os version
|
||||||
SONIC_OS_VERSION ?= 11
|
SONIC_OS_VERSION ?= 12
|
||||||
|
|
||||||
# PIP timeout for http connection
|
# PIP timeout for http connection
|
||||||
PIP_HTTP_TIMEOUT ?= 60
|
PIP_HTTP_TIMEOUT ?= 60
|
||||||
|
33
slave.mk
33
slave.mk
@ -41,6 +41,8 @@ BUSTER_DEBS_PATH = $(TARGET_PATH)/debs/buster
|
|||||||
BUSTER_FILES_PATH = $(TARGET_PATH)/files/buster
|
BUSTER_FILES_PATH = $(TARGET_PATH)/files/buster
|
||||||
BULLSEYE_DEBS_PATH = $(TARGET_PATH)/debs/bullseye
|
BULLSEYE_DEBS_PATH = $(TARGET_PATH)/debs/bullseye
|
||||||
BULLSEYE_FILES_PATH = $(TARGET_PATH)/files/bullseye
|
BULLSEYE_FILES_PATH = $(TARGET_PATH)/files/bullseye
|
||||||
|
BOOKWORM_DEBS_PATH = $(TARGET_PATH)/debs/bookworm
|
||||||
|
BOOKWORM_FILES_PATH = $(TARGET_PATH)/files/bookworm
|
||||||
DBG_IMAGE_MARK = dbg
|
DBG_IMAGE_MARK = dbg
|
||||||
DBG_SRC_ARCHIVE_FILE = $(TARGET_PATH)/sonic_src.tar.gz
|
DBG_SRC_ARCHIVE_FILE = $(TARGET_PATH)/sonic_src.tar.gz
|
||||||
BUILD_WORKDIR = /sonic
|
BUILD_WORKDIR = /sonic
|
||||||
@ -62,12 +64,12 @@ ifeq ($(CONFIGURED_ARCH),arm64)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
IMAGE_DISTRO := bullseye
|
IMAGE_DISTRO := bookworm
|
||||||
IMAGE_DISTRO_DEBS_PATH = $(TARGET_PATH)/debs/$(IMAGE_DISTRO)
|
IMAGE_DISTRO_DEBS_PATH = $(TARGET_PATH)/debs/$(IMAGE_DISTRO)
|
||||||
IMAGE_DISTRO_FILES_PATH = $(TARGET_PATH)/files/$(IMAGE_DISTRO)
|
IMAGE_DISTRO_FILES_PATH = $(TARGET_PATH)/files/$(IMAGE_DISTRO)
|
||||||
|
|
||||||
# Python 2 packages will not be available in Bullseye
|
# Python 2 packages will not be available in Bullseye and newer
|
||||||
ifeq ($(BLDENV),bullseye)
|
ifneq ($(filter bullseye bookworm,$(BLDENV)),)
|
||||||
ENABLE_PY2_MODULES = n
|
ENABLE_PY2_MODULES = n
|
||||||
else
|
else
|
||||||
ENABLE_PY2_MODULES = y
|
ENABLE_PY2_MODULES = y
|
||||||
@ -111,11 +113,13 @@ configure :
|
|||||||
$(Q)mkdir -p $(STRETCH_DEBS_PATH)
|
$(Q)mkdir -p $(STRETCH_DEBS_PATH)
|
||||||
$(Q)mkdir -p $(BUSTER_DEBS_PATH)
|
$(Q)mkdir -p $(BUSTER_DEBS_PATH)
|
||||||
$(Q)mkdir -p $(BULLSEYE_DEBS_PATH)
|
$(Q)mkdir -p $(BULLSEYE_DEBS_PATH)
|
||||||
|
$(Q)mkdir -p $(BOOKWORM_DEBS_PATH)
|
||||||
$(Q)mkdir -p $(FILES_PATH)
|
$(Q)mkdir -p $(FILES_PATH)
|
||||||
$(Q)mkdir -p $(JESSIE_FILES_PATH)
|
$(Q)mkdir -p $(JESSIE_FILES_PATH)
|
||||||
$(Q)mkdir -p $(STRETCH_FILES_PATH)
|
$(Q)mkdir -p $(STRETCH_FILES_PATH)
|
||||||
$(Q)mkdir -p $(BUSTER_FILES_PATH)
|
$(Q)mkdir -p $(BUSTER_FILES_PATH)
|
||||||
$(Q)mkdir -p $(BULLSEYE_FILES_PATH)
|
$(Q)mkdir -p $(BULLSEYE_FILES_PATH)
|
||||||
|
$(Q)mkdir -p $(BOOKWORM_FILES_PATH)
|
||||||
$(Q)mkdir -p $(PYTHON_DEBS_PATH)
|
$(Q)mkdir -p $(PYTHON_DEBS_PATH)
|
||||||
$(Q)mkdir -p $(PYTHON_WHEELS_PATH)
|
$(Q)mkdir -p $(PYTHON_WHEELS_PATH)
|
||||||
$(Q)mkdir -p $(DPKG_ADMINDIR_PATH)
|
$(Q)mkdir -p $(DPKG_ADMINDIR_PATH)
|
||||||
@ -1035,6 +1039,10 @@ $(foreach DOCKER_IMAGE,$(SONIC_BUSTER_DOCKERS), $(eval $(DOCKER_IMAGE)_DEBS_PATH
|
|||||||
$(foreach DOCKER_IMAGE,$(SONIC_BUSTER_DOCKERS), $(eval $(DOCKER_IMAGE)_FILES_PATH := $(BUSTER_FILES_PATH)))
|
$(foreach DOCKER_IMAGE,$(SONIC_BUSTER_DOCKERS), $(eval $(DOCKER_IMAGE)_FILES_PATH := $(BUSTER_FILES_PATH)))
|
||||||
$(foreach DOCKER_IMAGE,$(SONIC_BUSTER_DBG_DOCKERS), $(eval $(DOCKER_IMAGE)_DEBS_PATH := $(BUSTER_DEBS_PATH)))
|
$(foreach DOCKER_IMAGE,$(SONIC_BUSTER_DBG_DOCKERS), $(eval $(DOCKER_IMAGE)_DEBS_PATH := $(BUSTER_DEBS_PATH)))
|
||||||
$(foreach DOCKER_IMAGE,$(SONIC_BUSTER_DBG_DOCKERS), $(eval $(DOCKER_IMAGE)_FILES_PATH := $(BUSTER_FILES_PATH)))
|
$(foreach DOCKER_IMAGE,$(SONIC_BUSTER_DBG_DOCKERS), $(eval $(DOCKER_IMAGE)_FILES_PATH := $(BUSTER_FILES_PATH)))
|
||||||
|
$(foreach DOCKER_IMAGE,$(SONIC_BULLSEYE_DOCKERS), $(eval $(DOCKER_IMAGE)_DEBS_PATH := $(BULLSEYE_DEBS_PATH)))
|
||||||
|
$(foreach DOCKER_IMAGE,$(SONIC_BULLSEYE_DOCKERS), $(eval $(DOCKER_IMAGE)_FILES_PATH := $(BULLSEYE_FILES_PATH)))
|
||||||
|
$(foreach DOCKER_IMAGE,$(SONIC_BULLSEYE_DBG_DOCKERS), $(eval $(DOCKER_IMAGE)_DEBS_PATH := $(BULLSEYE_DEBS_PATH)))
|
||||||
|
$(foreach DOCKER_IMAGE,$(SONIC_BULLSEYE_DBG_DOCKERS), $(eval $(DOCKER_IMAGE)_FILES_PATH := $(BULLSEYE_FILES_PATH)))
|
||||||
|
|
||||||
ifeq ($(BLDENV),jessie)
|
ifeq ($(BLDENV),jessie)
|
||||||
DOCKER_IMAGES := $(SONIC_JESSIE_DOCKERS)
|
DOCKER_IMAGES := $(SONIC_JESSIE_DOCKERS)
|
||||||
@ -1054,8 +1062,15 @@ ifeq ($(BLDENV),buster)
|
|||||||
BUSTER_DOCKER_IMAGES = $(filter $(SONIC_BUSTER_DOCKERS),$(DOCKER_IMAGES_FOR_INSTALLERS) $(EXTRA_DOCKER_TARGETS) $(SONIC_PACKAGES_LOCAL))
|
BUSTER_DOCKER_IMAGES = $(filter $(SONIC_BUSTER_DOCKERS),$(DOCKER_IMAGES_FOR_INSTALLERS) $(EXTRA_DOCKER_TARGETS) $(SONIC_PACKAGES_LOCAL))
|
||||||
BUSTER_DBG_DOCKER_IMAGES = $(filter $(SONIC_BUSTER_DBG_DOCKERS),$(DOCKER_IMAGES_FOR_INSTALLERS) $(EXTRA_DOCKER_TARGETS) $(SONIC_PACKAGES_LOCAL))
|
BUSTER_DBG_DOCKER_IMAGES = $(filter $(SONIC_BUSTER_DBG_DOCKERS),$(DOCKER_IMAGES_FOR_INSTALLERS) $(EXTRA_DOCKER_TARGETS) $(SONIC_PACKAGES_LOCAL))
|
||||||
else
|
else
|
||||||
DOCKER_IMAGES = $(filter-out $(SONIC_JESSIE_DOCKERS) $(SONIC_STRETCH_DOCKERS) $(SONIC_BUSTER_DOCKERS),$(SONIC_DOCKER_IMAGES))
|
ifeq ($(BLDENV),bullseye)
|
||||||
DOCKER_DBG_IMAGES = $(filter-out $(SONIC_JESSIE_DBG_DOCKERS) $(SONIC_STRETCH_DBG_DOCKERS) $(SONIC_BUSTER_DBG_DOCKERS), $(SONIC_DOCKER_DBG_IMAGES))
|
DOCKER_IMAGES := $(SONIC_BULLSEYE_DOCKERS)
|
||||||
|
DOCKER_DBG_IMAGES := $(SONIC_BULLSEYE_DBG_DOCKERS)
|
||||||
|
BULLSEYE_DOCKER_IMAGES = $(filter $(SONIC_BULLSEYE_DOCKERS),$(DOCKER_IMAGES_FOR_INSTALLERS) $(EXTRA_DOCKER_TARGETS) $(SONIC_PACKAGES_LOCAL))
|
||||||
|
BULLSEYE_DBG_DOCKER_IMAGES = $(filter $(SONIC_BULLSEYE_DBG_DOCKERS),$(DOCKER_IMAGES_FOR_INSTALLERS) $(EXTRA_DOCKER_TARGETS) $(SONIC_PACKAGES_LOCAL))
|
||||||
|
else
|
||||||
|
DOCKER_IMAGES = $(filter-out $(SONIC_JESSIE_DOCKERS) $(SONIC_STRETCH_DOCKERS) $(SONIC_BUSTER_DOCKERS) $(SONIC_BULLSEYE_DOCKERS),$(SONIC_DOCKER_IMAGES))
|
||||||
|
DOCKER_DBG_IMAGES = $(filter-out $(SONIC_JESSIE_DBG_DOCKERS) $(SONIC_STRETCH_DBG_DOCKERS) $(SONIC_BUSTER_DBG_DOCKERS) $(SONIC_BULLSEYE_DBG_DOCKERS), $(SONIC_DOCKER_DBG_IMAGES))
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -1227,11 +1242,12 @@ DOCKER_LOAD_TARGETS = $(addsuffix -load,$(addprefix $(TARGET_PATH)/, \
|
|||||||
$(DOCKER_IMAGES) \
|
$(DOCKER_IMAGES) \
|
||||||
$(DOCKER_DBG_IMAGES)))
|
$(DOCKER_DBG_IMAGES)))
|
||||||
|
|
||||||
ifeq ($(BLDENV),bullseye)
|
ifeq ($(BLDENV),bookworm)
|
||||||
DOCKER_LOAD_TARGETS += $(addsuffix -load,$(addprefix $(TARGET_PATH)/, \
|
DOCKER_LOAD_TARGETS += $(addsuffix -load,$(addprefix $(TARGET_PATH)/, \
|
||||||
$(SONIC_JESSIE_DOCKERS) \
|
$(SONIC_JESSIE_DOCKERS) \
|
||||||
$(SONIC_STRETCH_DOCKERS) \
|
$(SONIC_STRETCH_DOCKERS) \
|
||||||
$(SONIC_BUSTER_DOCKERS)))
|
$(SONIC_BUSTER_DOCKERS) \
|
||||||
|
$(SONIC_BULLSEYE_DOCKERS)))
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -1651,6 +1667,9 @@ clean :: .platform clean-logs clean-versions $$(SONIC_CLEAN_DEBS) $$(SONIC_CLEAN
|
|||||||
|
|
||||||
all : .platform $$(addprefix $(TARGET_PATH)/,$$(SONIC_ALL))
|
all : .platform $$(addprefix $(TARGET_PATH)/,$$(SONIC_ALL))
|
||||||
|
|
||||||
|
bullseye : $$(addprefix $(TARGET_PATH)/,$$(BULLSEYE_DOCKER_IMAGES)) \
|
||||||
|
$$(addprefix $(TARGET_PATH)/,$$(BULLSEYE_DBG_DOCKER_IMAGES))
|
||||||
|
|
||||||
buster : $$(addprefix $(TARGET_PATH)/,$$(BUSTER_DOCKER_IMAGES)) \
|
buster : $$(addprefix $(TARGET_PATH)/,$$(BUSTER_DOCKER_IMAGES)) \
|
||||||
$$(addprefix $(TARGET_PATH)/,$$(BUSTER_DBG_DOCKER_IMAGES))
|
$$(addprefix $(TARGET_PATH)/,$$(BUSTER_DBG_DOCKER_IMAGES))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user