Skip to content

Commit 8ebfc3a

Browse files
stepanblyschaklguohan
authored andcommitted
[mellanox] Make mellanox SAI-Implementation as submodule (#2711)
Signed-off-by: Stepan Blyschak <[email protected]>
1 parent 357923d commit 8ebfc3a

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@
6262
[submodule "src/redis-dump-load"]
6363
path = src/redis-dump-load
6464
url = https://github.com/p/redis-dump-load.git
65+
[submodule "platform/mellanox/mlnx-sai/SAI-Implementation"]
66+
path = platform/mellanox/mlnx-sai/SAI-Implementation
67+
url = https://github.com/Mellanox/SAI-Implementation

platform/mellanox/mlnx-sai.mk

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Mellanox SAI
22

3-
MLNX_SAI_REPO = https://github.com/Mellanox/SAI-Implementation.git
43
MLNX_SAI_VERSION = SAIRel1.13.7-master
5-
MLNX_SAI_REVISION = 52dbd2f5e51cdb538b05f6c2f387b0fccbff9a8e
64

7-
export MLNX_SAI_REPO MLNX_SAI_VERSION MLNX_SAI_REVISION
5+
export MLNX_SAI_VERSION
86

97
MLNX_SAI = mlnx-sai_1.mlnx.$(MLNX_SAI_VERSION)_amd64.deb
108
$(MLNX_SAI)_SRC_PATH = $(PLATFORM_PATH)/mlnx-sai

platform/mellanox/mlnx-sai/Makefile

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ SHELL = /bin/bash
55
MAIN_TARGET = mlnx-sai_1.mlnx.$(MLNX_SAI_VERSION)_amd64.deb
66

77
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
8-
# get sources
9-
rm -rf SAI-Implementation
10-
git clone $(MLNX_SAI_REPO) SAI-Implementation
11-
12-
# build
138
pushd SAI-Implementation
14-
git checkout $(MLNX_SAI_REVISION)
159
pushd mlnx_sai
10+
1611
chmod a+x autogen.sh
1712
debuild -e 'make_extra_flags="DEFS=-DACS_OS"' -us -uc -d -b
1813
popd

0 commit comments

Comments
 (0)