Skip to content

Commit 4818259

Browse files
Merge remote-tracking branch 'upstream/master' into syslog_telemetry_shared
2 parents 65f42ed + 52c36cd commit 4818259

File tree

396 files changed

+12584
-14306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

396 files changed

+12584
-14306
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
variables:
2-
${{ if and(ge(variables['Build.SourceBranchName'], '202012'), le(variables['Build.SourceBranchName'], '299999')) }}:
2+
${{ if eq(variables['Build.Reason'],'PullRequest') }}:
3+
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([ "$(System.PullRequest.TargetBranch)" != "master" ] && echo deb,py2,py3,web,git,docker)'
4+
${{ elseif ne(variables['Build.SourceBranch'],'master') }}:
35
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
4-
${{ if or(lt(variables['Build.SourceBranchName'], '202012'), gt(variables['Build.SourceBranchName'], '299999')) }}:
6+
${{ else }}:
57
VERSION_CONTROL_OPTIONS: ''

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,9 @@
106106
[submodule "src/ptf-py3"]
107107
path = src/ptf-py3
108108
url = https://github.com/p4lang/ptf.git
109+
[submodule "src/dhcprelay"]
110+
path = src/dhcprelay
111+
url = https://github.com/sonic-net/sonic-dhcp-relay.git
112+
[submodule "src/sonic-host-services"]
113+
path = src/sonic-host-services
114+
url = https://github.com/sonic-net/sonic-host-services

Makefile.work

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
# * ENABLE_AUTO_TECH_SUPPORT: Enable the configuration for event-driven techsupport & coredump mgmt feature
4444
# * Default: y
4545
# * Values: y,n
46+
# * INCLUDE_BOOTCHART: Install SONiC bootchart
47+
# * Default: y
48+
# * Values: y,n
49+
# * ENABLE_BOOTCHART: Enable SONiC bootchart
50+
# * Default: n
51+
# * Values: y,n
4652
#
4753
###############################################################################
4854

@@ -98,6 +104,12 @@ ifeq ($(PLATFORM_ARCH),)
98104
override PLATFORM_ARCH = $(CONFIGURED_ARCH)
99105
endif
100106

107+
ifeq ($(CONFIGURED_ARCH),amd64)
108+
TARGET_BOOTLOADER = grub
109+
else
110+
TARGET_BOOTLOADER = uboot
111+
endif
112+
101113
ifeq ($(BLDENV), bullseye)
102114
SLAVE_DIR = sonic-slave-bullseye
103115
else ifeq ($(BLDENV), buster)
@@ -381,6 +393,8 @@ SONIC_BUILD_INSTRUCTION := make \
381393
ENABLE_AUTO_TECH_SUPPORT=$(ENABLE_AUTO_TECH_SUPPORT) \
382394
BUILD_MULTIASIC_KVM=$(BUILD_MULTIASIC_KVM) \
383395
ENABLE_ASAN=$(ENABLE_ASAN) \
396+
SONIC_INCLUDE_BOOTCHART=$(INCLUDE_BOOTCHART) \
397+
SONIC_ENABLE_BOOTCHART=$(ENABLE_BOOTCHART) \
384398
ENABLE_FIPS_FEATURE=$(ENABLE_FIPS_FEATURE) \
385399
ENABLE_FIPS=$(ENABLE_FIPS) \
386400
SONIC_SLAVE_DOCKER_DRIVER=$(SONIC_SLAVE_DOCKER_DRIVER) \

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ resources:
3737
ref: master
3838

3939
variables:
40-
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml
40+
- template: .azure-pipelines/azure-pipelines-repd-build-variables.yml@buildimage
4141
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
4242
- template: .azure-pipelines/template-variables.yml
4343
- ${{ else }}:
@@ -77,7 +77,7 @@ stages:
7777

7878
- stage: Test
7979
dependsOn: BuildVS
80-
condition: and(ne(stageDependencies.BuildVS.outputs['vs.SetVar.SKIP_VSTEST'], 'YES'), succeeded())
80+
condition: and(ne(stageDependencies.BuildVS.outputs['vs.SetVar.SKIP_VSTEST'], 'YES'), in(dependencies.BuildVS.result, 'Succeeded', 'SucceededWithIssues'))
8181
variables:
8282
- name: inventory
8383
value: veos_vtb

build_debian.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if [[ -d $FILESYSTEM_ROOT ]]; then
6565
fi
6666
mkdir -p $FILESYSTEM_ROOT
6767
mkdir -p $FILESYSTEM_ROOT/$PLATFORM_DIR
68-
mkdir -p $FILESYSTEM_ROOT/$PLATFORM_DIR/x86_64-grub
68+
mkdir -p $FILESYSTEM_ROOT/$PLATFORM_DIR/grub
6969
touch $FILESYSTEM_ROOT/$PLATFORM_DIR/firsttime
7070

7171
## ensure proc is mounted
@@ -162,7 +162,7 @@ if [ "$SONIC_ENABLE_SECUREBOOT_SIGNATURE" = "y" ]; then
162162
fi
163163

164164
echo '[INFO] Signing SONiC linux kernel image'
165-
K=$FILESYSTEM_ROOT/boot/vmlinuz-${LINUX_KERNEL_VERSION}-amd64
165+
K=$FILESYSTEM_ROOT/boot/vmlinuz-${LINUX_KERNEL_VERSION}-${CONFIGURED_ARCH}
166166
sbsign --key $SIGNING_KEY --cert $SIGNING_CERT --output /tmp/${K##*/} ${K}
167167
sudo cp -f /tmp/${K##*/} ${K}
168168
fi
@@ -392,11 +392,17 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
392392
systemd-sysv \
393393
ntp
394394

395-
if [[ $CONFIGURED_ARCH == amd64 ]]; then
395+
if [[ $TARGET_BOOTLOADER == grub ]]; then
396+
if [[ $CONFIGURED_ARCH == amd64 ]]; then
397+
GRUB_PKG=grub-pc-bin
398+
elif [[ $CONFIGURED_ARCH == arm64 ]]; then
399+
GRUB_PKG=grub-efi-arm64-bin
400+
fi
401+
396402
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y download \
397-
grub-pc-bin
403+
$GRUB_PKG
398404

399-
sudo mv $FILESYSTEM_ROOT/grub-pc-bin*.deb $FILESYSTEM_ROOT/$PLATFORM_DIR/x86_64-grub
405+
sudo mv $FILESYSTEM_ROOT/grub*.deb $FILESYSTEM_ROOT/$PLATFORM_DIR/grub
400406
fi
401407

402408
## Disable kexec supported reboot which was installed by default
@@ -572,7 +578,7 @@ fi
572578
## Update initramfs
573579
sudo chroot $FILESYSTEM_ROOT update-initramfs -u
574580
## Convert initrd image to u-boot format
575-
if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
581+
if [[ $TARGET_BOOTLOADER == uboot ]]; then
576582
INITRD_FILE=initrd.img-${LINUX_KERNEL_VERSION}-${CONFIGURED_ARCH}
577583
if [[ $CONFIGURED_ARCH == armhf ]]; then
578584
INITRD_FILE=initrd.img-${LINUX_KERNEL_VERSION}-armmp

build_image.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ generate_onie_installer_image()
8484

8585
## Generate an ONIE installer image
8686
## Note: Don't leave blank between lines. It is single line command.
87-
./onie-mk-demo.sh $TARGET_PLATFORM $TARGET_MACHINE $TARGET_PLATFORM-$TARGET_MACHINE-$ONIEIMAGE_VERSION \
87+
./onie-mk-demo.sh $CONFIGURED_ARCH $TARGET_MACHINE $TARGET_PLATFORM-$TARGET_MACHINE-$ONIEIMAGE_VERSION \
8888
installer platform/$TARGET_MACHINE/platform.conf $output_file OS $IMAGE_VERSION $ONIE_IMAGE_PART_SIZE \
8989
$ONIE_INSTALLER_PAYLOAD
9090
}
@@ -111,7 +111,7 @@ if [ "$IMAGE_TYPE" = "onie" ]; then
111111
mkdir -p `dirname $OUTPUT_ONIE_IMAGE`
112112
sudo rm -f $OUTPUT_ONIE_IMAGE
113113

114-
generate_device_list "./installer/$TARGET_PLATFORM/platforms_asic"
114+
generate_device_list "./installer/platforms_asic"
115115

116116
generate_onie_installer_image
117117

@@ -125,7 +125,7 @@ elif [ "$IMAGE_TYPE" = "raw" ]; then
125125
mkdir -p `dirname $OUTPUT_RAW_IMAGE`
126126
sudo rm -f $OUTPUT_RAW_IMAGE
127127

128-
generate_device_list "./installer/$TARGET_PLATFORM/platforms_asic"
128+
generate_device_list "./installer/platforms_asic"
129129

130130
generate_onie_installer_image "$tmp_output_onie_image"
131131

@@ -159,7 +159,7 @@ elif [ "$IMAGE_TYPE" = "raw" ]; then
159159

160160
elif [ "$IMAGE_TYPE" = "kvm" ]; then
161161

162-
generate_device_list "./installer/$TARGET_PLATFORM/platforms_asic"
162+
generate_device_list "./installer/platforms_asic"
163163

164164
generate_onie_installer_image
165165
# Generate single asic KVM image

device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C32/config.bcm.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
1010
l3_alpm_hit_skip=1
1111
sai_adjust_acl_drop_in_rx_drop=1
12+
sai_verify_incoming_chksum=0
1213
{{ map_prio }}
1314
host_as_route_disable=1
1415
use_all_splithorizon_groups=1

device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/config.bcm.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
1010
l3_alpm_hit_skip=1
1111
sai_adjust_acl_drop_in_rx_drop=1
12+
sai_verify_incoming_chksum=0
1213
{{ map_prio }}
1314
host_as_route_disable=1
1415
use_all_splithorizon_groups=1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../common/profiles/th/gen/BALANCED
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../common/profiles/th/gen/RDMA-CENTRIC

0 commit comments

Comments
 (0)