Skip to content

Commit

Permalink
[Master]: Build script update
Browse files Browse the repository at this point in the history
Signed-off-by: Ravi Marvell <[email protected]>
  • Loading branch information
rck-innovium authored and radha-danda committed Apr 15, 2024
1 parent 121e8f7 commit 7b9625f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 13 deletions.
31 changes: 31 additions & 0 deletions files/master-bookworm/18678.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From 1d90c6c90545816eb1b182dbd46441ddbaef3fbb Mon Sep 17 00:00:00 2001
From: Saikrishna Arcot <[email protected]>
Date: Sun, 14 Apr 2024 23:38:08 -0700
Subject: [PATCH] Use the archive repo for Buster

Buster is EOL, and the backports section has been removed from the main
Debian repos. This also means that our default mirror (for non-snapshot
builds) is also affected.

Change to using archive.debian.org directly for Buster.

Signed-off-by: Saikrishna Arcot <[email protected]>
---
scripts/build_mirror_config.sh | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/scripts/build_mirror_config.sh b/scripts/build_mirror_config.sh
index d6042da13c1..971390d0045 100755
--- a/scripts/build_mirror_config.sh
+++ b/scripts/build_mirror_config.sh
@@ -25,6 +25,10 @@ if [ "$ARCHITECTURE" == "armhf" ]; then
DEFAULT_MIRROR_SECURITY_URLS=http://deb.debian.org/debian-security/
fi

+if [ "$DISTRIBUTION" == "buster" ]; then
+ DEFAULT_MIRROR_URLS=http://archive.debian.org/debian/
+fi
+
if [ "$MIRROR_SNAPSHOT" == y ]; then
if [ -f "$MIRROR_VERSION_FILE" ]; then
DEBIAN_TIMESTAMP=$(grep "^debian==" $MIRROR_VERSION_FILE | tail -n 1 | sed 's/.*==//')
25 changes: 12 additions & 13 deletions sonic_master_apply_patch_bookworm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@


#
# patch script for ARM64 Falcon and AC5X board
# patch script for Intel Falcon board
#

#
# CONFIGURATIONS:-
#

SONIC_COMMIT="29cf8032aff6843919708334f2e95aa373d961b4"
SONIC_COMMIT="006f4b209c919b41a7c1ebd0afdfe07885ef4cad"

#
# END of CONFIGURATIONS
Expand All @@ -24,22 +24,20 @@ LOG_FILE=patches_result.log
FULL_PATH=`pwd`

# Path for master patches
WGET_PATH="https://raw.githubusercontent.com/Marvell-switching/sonic-scripts/master/files/master-bullseye/"
WGET_PATH="https://raw.githubusercontent.com/Marvell-switching/sonic-scripts/master_04/files/master-bookworm/"

# Patches
SERIES="0001-Redis-timeout-WA.patch
18072.patch
0001-Fix-sonic-installer-error.patch
0001-Add-x86-platforms.patch
0001-Falcon-usb-disk-hung_task-WA.patch"
0001-Add-x86-platforms.patch
0001-Falcon-usb-disk-hung_task-WA.patch
18678.patch"

PATCHES=""

# Sub module patches
declare -a SUB_PATCHES=(SP1 SP2 SP3)
declare -a SUB_PATCHES=(SP1 SP2)
declare -A SP1=([NAME]="0001-SAI-switch-create-timeout-WA.patch" [DIR]="src/sonic-sairedis")
declare -A SP2=([NAME]="0001-marvell-ac5-Support-boards-with-more-that-4G-DDR.patch" [DIR]="src/sonic-linux-kernel")
declare -A SP3=([NAME]="0001-Marvell-pfc-detect-change.patch" [DIR]="src/sonic-swss")
declare -A SP2=([NAME]="0001-Marvell-pfc-detect-change.patch" [DIR]="src/sonic-swss")

log()
{
Expand All @@ -58,9 +56,10 @@ pre_patch_help()
log "<<Apply patches using patch script>>"
log "bash $0"

log "<<FOR ARM64>> make configure PLATFORM=marvell-arm64 PLATFORM_ARCH=arm64"
log "<<FOR ARM64>> make configure PLATFORM=marvell PLATFORM_ARCH=arm64"
log "<<FOR ARM64>> make target/sonic-marvell-arm64.bin"
log "<<FOR INTEL>> make configure PLATFORM=marvell"
log "make all"
log "<<FOR INTEL>> make target/sonic-marvell.bin"
}

apply_patch_series()
Expand Down Expand Up @@ -119,7 +118,7 @@ apply_submodule_patches()
apply_hwsku_changes()
{
# Download hwsku
wget --timeout=2 -c https://raw.githubusercontent.com/Marvell-switching/sonic-scripts/master/files/mrvl_sonic_hwsku_ezb.tgz
wget --timeout=2 -c https://raw.githubusercontent.com/Marvell-switching/sonic-scripts/master_04/files/mrvl_sonic_hwsku_ezb.tgz

rm -fr device/marvell/x86_64-marvell_db98cx8580_32cd-r0 || true
rm -rf device/marvell/x86_64-marvell_slm5401_54x-r0 || true
Expand Down

0 comments on commit 7b9625f

Please sign in to comment.