Skip to content

Commit af13dcb

Browse files
authored
Merge branch 'sonic-net:master' into mab_control_changes
2 parents 656c69a + 07cd4ff commit af13dcb

File tree

1,070 files changed

+47741
-17335
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,070 files changed

+47741
-17335
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@ jobs:
9090
pool: sonicbld-armhf
9191
timeoutInMinutes: 2880
9292
variables:
93+
PLATFORM_NAME: marvell
9394
PLATFORM_ARCH: armhf
9495

9596
- name: marvell-arm64
9697
${{ if not(parameters.qemuOrCrossBuild) }}:
9798
pool: sonicbld-arm64
9899
timeoutInMinutes: 2880
99100
variables:
101+
PLATFORM_NAME: marvell
100102
PLATFORM_ARCH: arm64
101103

102104
- name: marvell

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
sudo modprobe overlay
5050
sudo apt-get install -y acl
5151
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
52-
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$(PLATFORM_AZP) PLATFORM_ARCH=$(PLATFORM_ARCH) $(BUILD_OPTIONS) configure
52+
[ -z "$PLATFORM_NAME" ] && PLATFORM_NAME=$(PLATFORM_AZP)
53+
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$PLATFORM_NAME PLATFORM_ARCH=$(PLATFORM_ARCH) $(BUILD_OPTIONS) configure
5354
displayName: 'Make configure'
5455
postSteps:
5556
- script: |

.azure-pipelines/official-build-cache.yml

+1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ stages:
4949
pool: sonicbld-armhf
5050
timeoutInMinutes: 1200
5151
variables:
52+
PLATFORM_NAME: marvell
5253
PLATFORM_ARCH: armhf

.github/workflows/semgrep.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- run: semgrep ci
2121
env:
22-
SEMGREP_RULES: p/default
22+
SEMGREP_RULES: |
23+
p/default
24+
r/python.lang.security.audit.dangerous-system-call-audit.dangerous-system-call-audit
25+
r/c.lang.security.insecure-use-strcat-fn.insecure-use-strcat-fn
26+
r/c.lang.security.insecure-use-string-copy-fn.insecure-use-string-copy-fn

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fsroot/
1212
fs.*
1313
target/
1414
*.deb
15+
*.udeb
1516
*.changes
1617
*.buildinfo
1718
*.tar
@@ -28,8 +29,13 @@ sonic-slave*/*.log
2829
# Autogenerated Dockerfiles
2930
sonic-slave*/Dockerfile
3031
sonic-slave*/Dockerfile.user
32+
sonic-slave*/Dockerfile.cleanup
3133
dockers/*/Dockerfile
34+
dockers/*/Dockerfile.cleanup
35+
dockers/*/Dockerfile-dbg.cleanup
3236
platform/*/docker-*/Dockerfile
37+
platform/*/docker-*/Dockerfile.cleanup
38+
platform/*/docker-*/Dockerfile-dbg.cleanup
3339

3440
# Autogenerated manifest files
3541
dockers/*/*manifest*

.gitmodules

+7-4
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,12 @@
115115
[submodule "src/sonic-dash-api"]
116116
path = src/sonic-dash-api
117117
url = https://github.com/sonic-net/sonic-dash-api.git
118-
[submodule "platform/marvell-arm64/mrvl-prestera"]
119-
path = platform/marvell-arm64/mrvl-prestera
118+
[submodule "platform/marvell/mrvl-prestera"]
119+
path = platform/marvell/mrvl-prestera
120120
url = https://github.com/Marvell-switching/mrvl-prestera.git
121-
[submodule "platform/marvell-arm64/sonic-platform-marvell"]
122-
path = platform/marvell-arm64/sonic-platform-marvell
121+
[submodule "platform/marvell/sonic-platform-marvell"]
122+
path = platform/marvell/sonic-platform-marvell
123123
url = https://github.com/Marvell-switching/sonic-platform-arm64.git
124+
[submodule "platform/innovium/sonic-platform-marvell"]
125+
path = platform/innovium/sonic-platform-marvell
126+
url = https://github.com/Marvell-switching/sonic-platform-marvell

Makefile.work

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
# * value to anything will enable it
6262
# * Default: unset
6363
# * Value: y
64-
#
64+
# * SONIC_PTF_ENV_PY_VER: Python version for PTF image
65+
# * Default: mixed
66+
# * Values: mixed,py3
6567
###############################################################################
6668

6769
SHELL = /bin/bash
@@ -592,6 +594,7 @@ SONIC_BUILD_INSTRUCTION := $(MAKE) \
592594
SONIC_OS_VERSION=$(SONIC_OS_VERSION) \
593595
PIP_HTTP_TIMEOUT=$(PIP_HTTP_TIMEOUT) \
594596
LEGACY_SONIC_MGMT_DOCKER=$(LEGACY_SONIC_MGMT_DOCKER) \
597+
SONIC_PTF_ENV_PY_VER=$(SONIC_PTF_ENV_PY_VER) \
595598
$(SONIC_OVERRIDE_BUILD_VARS)
596599

597600
.PHONY: sonic-slave-build sonic-slave-bash init reset

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ make target/sonic-[ASIC_VENDER]-armhf.bin
204204
_example:_
205205

206206
```shell
207-
make configure PLATFORM=marvell-armhf PLATFORM_ARCH=armhf
207+
make configure PLATFORM=marvell PLATFORM_ARCH=armhf
208208
make target/sonic-marvell-armhf.bin
209209
```
210210

@@ -215,7 +215,7 @@ using cross-compilation, run the following commands:
215215
# Execute make configure once to configure ASIC and ARCH for cross-compilation build
216216

217217
NOJESSIE=1 NOSTRETCH=1 BLDENV=buster CROSS_BLDENV=1 \
218-
make configure PLATFORM=marvell-armhf PLATFORM_ARCH=armhf
218+
make configure PLATFORM=marvell PLATFORM_ARCH=armhf
219219

220220
# Execute Arm32 build using cross-compilation environment
221221

@@ -234,7 +234,7 @@ make configure PLATFORM=[ASIC_VENDOR] PLATFORM_ARCH=arm64
234234

235235
# example:
236236

237-
make configure PLATFORM=marvell-arm64 PLATFORM_ARCH=arm64
237+
make configure PLATFORM=marvell PLATFORM_ARCH=arm64
238238
```
239239

240240
**NOTE**:

azure-pipelines.yml

+2
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ stages:
7979
- name: marvell-arm64
8080
pool: sonicbld-arm64
8181
variables:
82+
PLATFORM_NAME: marvell
8283
PLATFORM_ARCH: arm64
8384
- name: marvell-armhf
8485
pool: sonicbld-armhf
8586
timeoutInMinutes: 1200
8687
variables:
88+
PLATFORM_NAME: marvell
8789
PLATFORM_ARCH: armhf
8890
INCLUDE_RESTAPI: y
8991

build_debian.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,11 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
402402
auditd \
403403
linux-perf \
404404
resolvconf \
405-
lsof \
406-
sysstat \
407-
xxd \
408-
zstd
405+
lsof \
406+
sysstat \
407+
xxd \
408+
wireless-regdb \
409+
zstd
409410

410411
# Have systemd create the auditd log directory
411412
sudo mkdir -p ${FILESYSTEM_ROOT}/etc/systemd/system/auditd.service.d
@@ -781,7 +782,7 @@ if [[ $TARGET_BOOTLOADER == uboot ]]; then
781782
## Overwriting the initrd image with uInitrd
782783
sudo LANG=C chroot $FILESYSTEM_ROOT mv /boot/u${INITRD_FILE} /boot/$INITRD_FILE
783784
else
784-
sudo cp -v $PLATFORM_DIR/${sonic_asic_platform}-${CONFIGURED_ARCH}/sonic_fit.its $FILESYSTEM_ROOT/boot/
785+
sudo cp -v $PLATFORM_DIR/$CONFIGURED_PLATFORM/sonic_fit.its $FILESYSTEM_ROOT/boot/
785786
sudo LANG=C chroot $FILESYSTEM_ROOT mkimage -f /boot/sonic_fit.its /boot/sonic_${CONFIGURED_ARCH}.fit
786787
fi
787788
fi

build_image.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ set -x -e
99
CONFIGURED_ARCH=$([ -f .arch ] && cat .arch || echo amd64)
1010

1111
if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
12-
. ./onie-image-${CONFIGURED_ARCH}.conf
12+
if [ -r ./platform/${CONFIGURED_PLATFORM}/onie-image-${CONFIGURED_ARCH}.conf ]; then
13+
. ./platform/${CONFIGURED_PLATFORM}/onie-image-${CONFIGURED_ARCH}.conf
14+
else
15+
. ./onie-image-${CONFIGURED_ARCH}.conf
16+
fi
1317
else
1418
. ./onie-image.conf
1519
fi
@@ -82,10 +86,14 @@ generate_onie_installer_image()
8286
done
8387
done
8488

89+
platform_conf_file="platform/$TARGET_MACHINE/platform_${CONFIGURED_ARCH}.conf"
90+
if [ ! -f $platform_conf_file ]; then
91+
platform_conf_file="platform/$TARGET_MACHINE/platform.conf"
92+
fi
8593
## Generate an ONIE installer image
8694
## Note: Don't leave blank between lines. It is single line command.
8795
./onie-mk-demo.sh $CONFIGURED_ARCH $TARGET_MACHINE $TARGET_PLATFORM-$TARGET_MACHINE-$ONIEIMAGE_VERSION \
88-
installer platform/$TARGET_MACHINE/platform.conf $output_file OS $IMAGE_VERSION $ONIE_IMAGE_PART_SIZE \
96+
installer $platform_conf_file $output_file OS $IMAGE_VERSION $ONIE_IMAGE_PART_SIZE \
8997
$INSTALLER_PAYLOAD $SECURE_UPGRADE_SIGNING_CERT $SECURE_UPGRADE_DEV_SIGNING_KEY
9098
}
9199

device/arista/x86_64-arista_7060px5_64s/sensors.conf

+16-2
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,30 @@ chip "tmp464-i2c-19-48"
1111
label temp1 "Board sensor"
1212
label temp2 "TH4 exhaust temp sensor"
1313
label temp3 "Inlet temp sensor"
14+
ignore temp4
15+
ignore temp5
16+
ignore temp6
17+
ignore temp7
18+
ignore temp8
19+
ignore temp9
1420

1521
chip "dps800-i2c-22-58"
1622
label temp1 "Power supply 1 hotspot sensor"
1723
label temp2 "Power supply 1 inlet temp sensor"
18-
ignore temp3 "Power supply 1 exhaust temp sensor"
24+
ignore temp3
25+
26+
ignore fan2
27+
ignore fan3
28+
ignore fan4
1929

2030
chip "dps800-i2c-23-58"
2131
label temp1 "Power supply 2 hotspot sensor"
2232
label temp2 "Power supply 2 inlet temp sensor"
23-
label temp3 "Power supply 2 exhaust temp sensor"
33+
ignore temp3
34+
35+
ignore fan2
36+
ignore fan3
37+
ignore fan4
2438

2539
chip "lm73-i2c-24-48"
2640
label temp1 "Front panel temp sensor"

0 commit comments

Comments
 (0)