a1d30e3aa0
Remove Python 2 package installation from the base image. For container builds, reference Python 2 packages only if we're not building for Bullseye. For libyang, don't build Python 2 bindings at all, since they don't seem to be used. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
23 lines
988 B
Plaintext
23 lines
988 B
Plaintext
|
|
SPATH := $($(SONIC_PLATFORM_COMMON_PY3)_SRC_PATH)
|
|
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-platform-common.mk rules/sonic-platform-common.dep
|
|
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
|
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files|grep -Ev "^sonic_sfp|^sonic_eeprom"))
|
|
|
|
ifeq ($(ENABLE_PY2_MODULES), y)
|
|
$(SONIC_PLATFORM_COMMON_PY2)_CACHE_MODE := GIT_CONTENT_SHA
|
|
$(SONIC_PLATFORM_COMMON_PY2)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
|
$(SONIC_PLATFORM_COMMON_PY2)_DEP_FILES := $(DEP_FILES)
|
|
$(SONIC_PLATFORM_COMMON_PY2)_SMDEP_FILES := $(SMDEP_FILES)
|
|
$(SONIC_PLATFORM_COMMON_PY2)_SMDEP_PATHS := $(SPATH)
|
|
endif
|
|
|
|
|
|
$(SONIC_PLATFORM_COMMON_PY3)_CACHE_MODE := GIT_CONTENT_SHA
|
|
$(SONIC_PLATFORM_COMMON_PY3)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
|
$(SONIC_PLATFORM_COMMON_PY3)_DEP_FILES := $(DEP_FILES)
|
|
$(SONIC_PLATFORM_COMMON_PY3)_SMDEP_FILES := $(SMDEP_FILES)
|
|
$(SONIC_PLATFORM_COMMON_PY3)_SMDEP_PATHS := $(SPATH)
|
|
|
|
|