[mellanox] Make mellanox SAI-Implementation as submodule (#2711)

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
This commit is contained in:
Stepan Blyshchak 2019-03-28 18:44:15 +02:00 committed by lguohan
parent 357923d6ea
commit 8ebfc3a115
4 changed files with 6 additions and 9 deletions

3
.gitmodules vendored
View File

@ -62,3 +62,6 @@
[submodule "src/redis-dump-load"]
path = src/redis-dump-load
url = https://github.com/p/redis-dump-load.git
[submodule "platform/mellanox/mlnx-sai/SAI-Implementation"]
path = platform/mellanox/mlnx-sai/SAI-Implementation
url = https://github.com/Mellanox/SAI-Implementation

View File

@ -1,10 +1,8 @@
# Mellanox SAI
MLNX_SAI_REPO = https://github.com/Mellanox/SAI-Implementation.git
MLNX_SAI_VERSION = SAIRel1.13.7-master
MLNX_SAI_REVISION = 52dbd2f5e51cdb538b05f6c2f387b0fccbff9a8e
export MLNX_SAI_REPO MLNX_SAI_VERSION MLNX_SAI_REVISION
export MLNX_SAI_VERSION
MLNX_SAI = mlnx-sai_1.mlnx.$(MLNX_SAI_VERSION)_amd64.deb
$(MLNX_SAI)_SRC_PATH = $(PLATFORM_PATH)/mlnx-sai

View File

@ -5,14 +5,9 @@ SHELL = /bin/bash
MAIN_TARGET = mlnx-sai_1.mlnx.$(MLNX_SAI_VERSION)_amd64.deb
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# get sources
rm -rf SAI-Implementation
git clone $(MLNX_SAI_REPO) SAI-Implementation
# build
pushd SAI-Implementation
git checkout $(MLNX_SAI_REVISION)
pushd mlnx_sai
chmod a+x autogen.sh
debuild -e 'make_extra_flags="DEFS=-DACS_OS"' -us -uc -d -b
popd

@ -0,0 +1 @@
Subproject commit 52dbd2f5e51cdb538b05f6c2f387b0fccbff9a8e