[mellanox] Make mellanox SAI-Implementation as submodule (#2711)
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
This commit is contained in:
parent
357923d6ea
commit
8ebfc3a115
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -62,3 +62,6 @@
|
|||||||
[submodule "src/redis-dump-load"]
|
[submodule "src/redis-dump-load"]
|
||||||
path = src/redis-dump-load
|
path = src/redis-dump-load
|
||||||
url = https://github.com/p/redis-dump-load.git
|
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
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
# Mellanox SAI
|
# Mellanox SAI
|
||||||
|
|
||||||
MLNX_SAI_REPO = https://github.com/Mellanox/SAI-Implementation.git
|
|
||||||
MLNX_SAI_VERSION = SAIRel1.13.7-master
|
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 = mlnx-sai_1.mlnx.$(MLNX_SAI_VERSION)_amd64.deb
|
||||||
$(MLNX_SAI)_SRC_PATH = $(PLATFORM_PATH)/mlnx-sai
|
$(MLNX_SAI)_SRC_PATH = $(PLATFORM_PATH)/mlnx-sai
|
||||||
|
@ -5,14 +5,9 @@ SHELL = /bin/bash
|
|||||||
MAIN_TARGET = mlnx-sai_1.mlnx.$(MLNX_SAI_VERSION)_amd64.deb
|
MAIN_TARGET = mlnx-sai_1.mlnx.$(MLNX_SAI_VERSION)_amd64.deb
|
||||||
|
|
||||||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||||
# get sources
|
|
||||||
rm -rf SAI-Implementation
|
|
||||||
git clone $(MLNX_SAI_REPO) SAI-Implementation
|
|
||||||
|
|
||||||
# build
|
|
||||||
pushd SAI-Implementation
|
pushd SAI-Implementation
|
||||||
git checkout $(MLNX_SAI_REVISION)
|
|
||||||
pushd mlnx_sai
|
pushd mlnx_sai
|
||||||
|
|
||||||
chmod a+x autogen.sh
|
chmod a+x autogen.sh
|
||||||
debuild -e 'make_extra_flags="DEFS=-DACS_OS"' -us -uc -d -b
|
debuild -e 'make_extra_flags="DEFS=-DACS_OS"' -us -uc -d -b
|
||||||
popd
|
popd
|
||||||
|
1
platform/mellanox/mlnx-sai/SAI-Implementation
Submodule
1
platform/mellanox/mlnx-sai/SAI-Implementation
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 52dbd2f5e51cdb538b05f6c2f387b0fccbff9a8e
|
Loading…
Reference in New Issue
Block a user