Skip to content

Commit 0eec5eb

Browse files
author
Arthi Sivanantham
committed
Merge branch 'master' into sonic_warmrestart
Signed-off-by: Arthi Sivanantham <[email protected]>
2 parents 12ccecf + 92d4bfe commit 0eec5eb

File tree

1,112 files changed

+58784
-8297
lines changed

Some content is hidden

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

1,112 files changed

+58784
-8297
lines changed

.azure-pipelines/azure-pipelines-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: centec-arm64
6767
pool: sonicbld_8c
68-
timeoutInMinutes: 2160
68+
timeoutInMinutes: 2880
6969
variables:
7070
PLATFORM_ARCH: arm64
7171

@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: marvell-armhf
8181
pool: sonicbld_8c
82-
timeoutInMinutes: 2160
82+
timeoutInMinutes: 2880
8383
variables:
8484
PLATFORM_ARCH: armhf
8585

.azure-pipelines/azure-pipelines-image-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
sudo modprobe overlay
4545
sudo apt-get install -y acl
4646
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
47-
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$(PLATFORM_AZP) PLATFORM_ARCH=$(PLATFORM_ARCH) configure
47+
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$(PLATFORM_AZP) PLATFORM_ARCH=$(PLATFORM_ARCH) $(BUILD_OPTIONS) configure
4848
displayName: 'Make configure'
4949
postSteps:
5050
- script: cp target -r $(Build.ArtifactStagingDirectory)/

.azure-pipelines/docker-sonic-slave.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pr:
2222
- sonic-slave-jessie
2323
- sonic-slave-stretch
2424
- sonic-slave-buster
25+
- sonic-slave-bullseye
2526

2627
parameters:
2728
- name: 'arches'
@@ -33,6 +34,7 @@ parameters:
3334
- name: 'dists'
3435
type: object
3536
default:
37+
- bullseye
3638
- buster
3739
- stretch
3840
- jessie
@@ -43,6 +45,11 @@ parameters:
4345
type: string
4446
default: sonicdev
4547

48+
variables:
49+
- ${{ if eq(variables['Build.SourceBranchName'], '202012' }}:
50+
- name: BUILD_OPTIONS
51+
value: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
52+
4653
stages:
4754
- stage: Build
4855
jobs:
@@ -81,7 +88,7 @@ stages:
8188
8289
echo ${{ arch }} > .arch
8390
84-
DOCKER_DATA_ROOT_FOR_MULTIARCH=/data/march/docker BLDENV=${{ dist }} make -f Makefile.work sonic-slave-build | tee $tmpfile
91+
DOCKER_DATA_ROOT_FOR_MULTIARCH=/data/march/docker BLDENV=${{ dist }} $(BUILD_OPTIONS) make -f Makefile.work sonic-slave-build | tee $tmpfile
8592
SLAVE_BASE_TAG=$(grep "^Checking sonic-slave-base image:" $tmpfile | awk -F ':' '{print $3}')
8693
SLAVE_TAG=$(grep "^Checking sonic-slave image:" $tmpfile | awk -F ':' '{print $3}')
8794
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
schedules:
7+
- cron: "0 */6 * * *"
8+
displayName: Build cache quickly
9+
branches:
10+
include:
11+
- master
12+
- 202012
13+
14+
trigger: none
15+
pr: none
16+
17+
stages:
18+
- stage: Build
19+
pool: sonicbld
20+
variables:
21+
CACHE_MODE: cache
22+
jobs:
23+
- template: azure-pipelines-build.yml
24+
parameters:
25+
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
26+
jobGroups:
27+
- name: vs
28+
- name: broadcom
29+
variables:
30+
swi_image: yes
31+
raw_image: yes
32+
docker_syncd_rpc_image: yes
33+
platform_rpc: brcm
34+
- name: mellanox
35+
variables:
36+
docker_syncd_rpc_image: yes
37+
platform_rpc: mlnx

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
- [ ] 201911
3030
- [ ] 202006
3131
- [ ] 202012
32+
- [ ] 202106
3233

3334
#### Description for the changelog
3435
<!--

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ platform/broadcom/sonic-platform-modules-dell/s6100/modules/dell_s6100_lpc.c
7474
platform/broadcom/sonic-platform-modules-dell/z9100/modules/dell_ich.c
7575
platform/broadcom/sonic-platform-modules-dell/z9100/modules/dell_mailbox.c
7676
platform/broadcom/sonic-platform-modules-dell/z9264f/sonic_platform/ipmihelper.py
77+
platform/cisco-8000
7778

7879
# buildinfo
7980
files/build/buildinfo

.gitmodules

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
[submodule "src/p4-hlir/p4-hlir"]
1717
path = platform/p4/p4-hlir/p4-hlir
1818
url = https://github.com/p4lang/p4-hlir
19-
[submodule "quagga"]
20-
path = src/sonic-quagga
21-
url = https://github.com/Azure/sonic-quagga
22-
branch = debian/0.99.24.1
2319
[submodule "sonic-dbsyncd"]
2420
path = src/sonic-dbsyncd
2521
url = https://github.com/Azure/sonic-dbsyncd
@@ -44,6 +40,9 @@
4440
[submodule "src/sonic-platform-daemons"]
4541
path = src/sonic-platform-daemons
4642
url = https://github.com/Azure/sonic-platform-daemons
43+
[submodule "src/sonic-platform-pde"]
44+
path = src/sonic-platform-pde
45+
url = https://github.com/Azure/sonic-platform-pdk-pde
4746
[submodule "src/sonic-frr/frr"]
4847
path = src/sonic-frr/frr
4948
url = https://github.com/Azure/sonic-frr.git
@@ -88,3 +87,10 @@
8887
[submodule "src/wpasupplicant/sonic-wpa-supplicant"]
8988
path = src/wpasupplicant/sonic-wpa-supplicant
9089
url = https://github.com/Azure/sonic-wpa-supplicant.git
90+
[submodule "platform/broadcom/saibcm-modules-dnx"]
91+
path = platform/broadcom/saibcm-modules-dnx
92+
url = https://github.com/Azure/saibcm-modules.git
93+
branch = sdk-6.5.22-gpl-dnx
94+
[submodule "platform/broadcom/sonic-platform-modules-nokia"]
95+
path = platform/broadcom/sonic-platform-modules-nokia
96+
url = https://github.com/nokia/sonic-platform.git

Makefile

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
NOJESSIE ?= 1
44
NOSTRETCH ?= 0
5+
NOBUSTER ?= 0
6+
NOBULLSEYE ?= 1
7+
8+
ifeq ($(NOJESSIE),0)
9+
BUILD_JESSIE=1
10+
endif
11+
12+
ifeq ($(NOSTRETCH),0)
13+
BUILD_STRETCH=1
14+
endif
15+
16+
ifeq ($(NOBUSTER),0)
17+
BUILD_BUSTER=1
18+
endif
19+
20+
ifeq ($(NOBULLSEYE),0)
21+
BUILD_BULLSEYE=1
22+
endif
23+
24+
PLATFORM_PATH := platform/$(if $(PLATFORM),$(PLATFORM),$(CONFIGURED_PLATFORM))
25+
PLATFORM_CHECKOUT := platform/checkout
26+
PLATFORM_CHECKOUT_FILE := $(PLATFORM_CHECKOUT)/$(PLATFORM).ini
27+
PLATFORM_CHECKOUT_CMD := $(shell if [ -f $(PLATFORM_CHECKOUT_FILE) ]; then PLATFORM_PATH=$(PLATFORM_PATH) j2 $(PLATFORM_CHECKOUT)/template.j2 $(PLATFORM_CHECKOUT_FILE); fi)
528

629
%::
730
@echo "+++ --- Making $@ --- +++"
@@ -11,7 +34,12 @@ endif
1134
ifeq ($(NOSTRETCH), 0)
1235
EXTRA_DOCKER_TARGETS=$(notdir $@) BLDENV=stretch make -f Makefile.work stretch
1336
endif
37+
ifeq ($(NOBUSTER), 0)
1438
BLDENV=buster make -f Makefile.work $@
39+
endif
40+
ifeq ($(NOBULLSEYE), 0)
41+
BLDENV=bullseye make -f Makefile.work $@
42+
endif
1543

1644
jessie:
1745
@echo "+++ Making $@ +++"
@@ -25,19 +53,38 @@ ifeq ($(NOSTRETCH), 0)
2553
make -f Makefile.work stretch
2654
endif
2755

56+
buster:
57+
@echo "+++ Making $@ +++"
58+
ifeq ($(NOBUSTER), 0)
59+
make -f Makefile.work buster
60+
endif
61+
2862
init:
2963
@echo "+++ Making $@ +++"
3064
make -f Makefile.work $@
3165

32-
clean configure reset showtag sonic-slave-build sonic-slave-bash :
66+
#
67+
# Function to invoke target $@ in Makefile.work with proper BLDENV
68+
#
69+
define make_work
3370
@echo "+++ Making $@ +++"
34-
ifeq ($(NOJESSIE), 0)
35-
make -f Makefile.work $@
36-
endif
37-
ifeq ($(NOSTRETCH), 0)
38-
BLDENV=stretch make -f Makefile.work $@
39-
endif
40-
BLDENV=buster make -f Makefile.work $@
71+
$(if $(BUILD_JESSIE),make -f Makefile.work $@,)
72+
$(if $(BUILD_STRETCH),BLDENV=stretch make -f Makefile.work $@,)
73+
$(if $(BUILD_BUSTER),BLDENV=buster make -f Makefile.work $@,)
74+
$(if $(BUILD_BULLSEYE),BLDENV=bullseye make -f Makefile.work $@,)
75+
endef
76+
77+
.PHONY: $(PLATFORM_PATH)
78+
79+
$(PLATFORM_PATH):
80+
@echo "+++ Cheking $@ +++"
81+
$(PLATFORM_CHECKOUT_CMD)
82+
83+
configure : $(PLATFORM_PATH)
84+
$(call make_work, $@)
85+
86+
clean reset showtag sonic-slave-build sonic-slave-bash :
87+
$(call make_work, $@)
4188

4289
# Freeze the versions, see more detail options: scripts/versions_manager.py freeze -h
4390
freeze:

Makefile.work

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ SHELL = /bin/bash
4747
USER := $(shell id -un)
4848
PWD := $(shell pwd)
4949
USER_LC := $(shell echo $(USER) | tr A-Z a-z)
50+
DOCKER_MACHINE := $(shell docker run --rm debian:buster uname -m)
5051

5152
comma := ,
5253

53-
ifeq ($(shell uname -m), aarch64)
54+
ifeq ($(DOCKER_MACHINE), aarch64)
5455
COMPILE_HOST_ARCH := arm64
55-
else ifeq ($(shell uname -m), armv7l)
56+
else ifeq ($(shell echo $(DOCKER_MACHINE) | grep -qE "armv7l|armv8l" && echo y),y)
5657
COMPILE_HOST_ARCH := armhf
5758
else
5859
COMPILE_HOST_ARCH := amd64
@@ -92,7 +93,9 @@ ifeq ($(PLATFORM_ARCH),)
9293
override PLATFORM_ARCH = $(CONFIGURED_ARCH)
9394
endif
9495

95-
ifeq ($(BLDENV), buster)
96+
ifeq ($(BLDENV), bullseye)
97+
SLAVE_DIR = sonic-slave-bullseye
98+
else ifeq ($(BLDENV), buster)
9699
SLAVE_DIR = sonic-slave-buster
97100
else ifeq ($(BLDENV), stretch)
98101
SLAVE_DIR = sonic-slave-stretch
@@ -247,6 +250,7 @@ SONIC_BUILD_INSTRUCTION := make \
247250
SONIC_IMAGE_VERSION=$(SONIC_IMAGE_VERSION) \
248251
ENABLE_DHCP_GRAPH_SERVICE=$(ENABLE_DHCP_GRAPH_SERVICE) \
249252
ENABLE_ZTP=$(ENABLE_ZTP) \
253+
INCLUDE_PDE=$(INCLUDE_PDE) \
250254
SHUTDOWN_BGP_ON_START=$(SHUTDOWN_BGP_ON_START) \
251255
INCLUDE_KUBERNETES=$(INCLUDE_KUBERNETES) \
252256
KUBERNETES_VERSION=$(KUBERNETES_VERSION) \
@@ -268,6 +272,7 @@ SONIC_BUILD_INSTRUCTION := make \
268272
HTTPS_PROXY=$(https_proxy) \
269273
NO_PROXY=$(no_proxy) \
270274
SONIC_INCLUDE_SYSTEM_TELEMETRY=$(INCLUDE_SYSTEM_TELEMETRY) \
275+
INCLUDE_DHCP_RELAY=$(INCLUDE_DHCP_RELAY) \
271276
SONIC_INCLUDE_RESTAPI=$(INCLUDE_RESTAPI) \
272277
TELEMETRY_WRITABLE=$(TELEMETRY_WRITABLE) \
273278
EXTRA_DOCKER_TARGETS=$(EXTRA_DOCKER_TARGETS) \
@@ -282,7 +287,7 @@ SONIC_BUILD_INSTRUCTION := make \
282287
.DEFAULT_GOAL := all
283288

284289
%::
285-
ifneq (,$(filter $(CONFIGURED_ARCH), armhf arm64))
290+
ifeq ($(MULTIARCH_QEMU_ENVIRON), y)
286291
@$(DOCKER_MULTIARCH_CHECK)
287292
ifneq ($(BLDENV), )
288293
@$(DOCKER_SERVICE_MULTIARCH_CHECK)
@@ -357,7 +362,7 @@ reset :
357362
if [ $$ans == y ]; then
358363
echo "Resetting local repository. Please wait...";
359364
$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) sudo rm -rf fsroot;
360-
if [[ "$(CONFIGURED_ARCH)" == "armhf" || "$(CONFIGURED_ARCH)" == "arm64" ]]; then
365+
if [ "$(MULTIARCH_QEMU_ENVIRON)" == y ] && [[ "$(CONFIGURED_ARCH)" == "armhf" || "$(CONFIGURED_ARCH)" == "arm64" ]]; then
361366
echo "Stopping march $(CONFIGURED_ARCH) docker"
362367
sudo kill -9 `sudo cat /var/run/march/docker.pid` || true
363368
sudo rm -f /var/run/march/docker.pid || true

0 commit comments

Comments
 (0)