Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions platform/mellanox/mlnx-sai.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 1 addition & 6 deletions platform/mellanox/mlnx-sai/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions platform/mellanox/mlnx-sai/SAI-Implementation
Submodule SAI-Implementation added at 52dbd2