Skip to content

Commit

Permalink
Copy .profile files to already existing hw_sku directories under devi…
Browse files Browse the repository at this point in the history
…ce/virtual (#18803)

Fix regression in sonic-swss dvs tests

Microsoft ADO (number only): 27817304

How I did it
Restore the .profile files back to already existing hw_sku directories under platform/virtual
copy lanemap.ini file in DPU_2P hwsku
  • Loading branch information
deepak-singhal0408 authored Apr 26, 2024
1 parent 6f86bc2 commit 018b3f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions device/virtual/x86_64-kvm_x86_64-r0/DPU-2P/lanemap.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eth1:0,1,2,3
eth2:4,5,6,7
4 changes: 4 additions & 0 deletions src/sonic-device-data/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
for d in `find -L ../../../device -maxdepth 3 -mindepth 3 -type d | grep -vE "(plugins|led-code|sonic_platform)"`; do \
# check if hwsku dir exists, if yes, then continue
if [ -d device/x86_64-kvm_x86_64-r0/$$(basename $$d) ]; then \
cp ./sai.vs_profile device/x86_64-kvm_x86_64-r0/$$(basename $$d)/sai.profile; \
cp ./sai_mlnx.vs_profile device/x86_64-kvm_x86_64-r0/$$(basename $$d)/sai_mlnx.profile; \
cp ./pai.vs_profile device/x86_64-kvm_x86_64-r0/$$(basename $$d)/pai.profile; \
cp ./fabriclanemap_vs.ini device/x86_64-kvm_x86_64-r0/$$(basename $$d)/fabriclanemap.ini; \
continue; \
fi; \
cp -Lr $$d device/x86_64-kvm_x86_64-r0/ ; \
Expand Down

0 comments on commit 018b3f0

Please sign in to comment.