Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ sudo tee $FILESYSTEM_ROOT/etc/sonic/sonic_version.yml > /dev/null <<EOF
build_version: '${SONIC_IMAGE_VERSION}'
debian_version: '$(cat $FILESYSTEM_ROOT/etc/debian_version)'
kernel_version: '$kversion'
base_os_compatibility_version: ${BASE_OS_COMPATIBILITY_VERSION}
asic_type: $sonic_asic_platform
commit_id: '$(git rev-parse --short HEAD)'
build_date: $(date -u)
Expand Down
1 change: 1 addition & 0 deletions platform/vs/sonic-version/build_sonic_version.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
tee $1 > /dev/null <<EOF
build_version: '$sonic_version'
asic_type: $sonic_asic_platform
base_os_compatibility_version: ${BASE_OS_COMPATIBILITY_VERSION}
commit_id: '$(git rev-parse --short HEAD)'
build_date: $(date -u)
build_number: ${BUILD_NUMBER:-0}
Expand Down
6 changes: 6 additions & 0 deletions rules/base-os-compatibility-version.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Define SONiC base OS compatibility version.
# SONiC packages dependning on specific SONiC base image features (kernel change, etc.)
# may define a dependency on specific version pattern.

BASE_OS_COMPATIBILITY_VERSION = 1.0.0

1 change: 1 addition & 0 deletions slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export CONFIGURED_ARCH
export PYTHON_WHEELS_PATH
export IMAGE_DISTRO
export IMAGE_DISTRO_DEBS_PATH
export BASE_OS_COMPATIBILITY_VERSION

###############################################################################
## Utility rules
Expand Down