forked from sonic-net/sonic-sairedis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install rdb-cli from librdb into syncd0 container
- Loading branch information
1 parent
963b958
commit 92d2f8f
Showing
4 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
SUBDIRS = meta lib vslib proxylib pyext | ||
|
||
if SYNCD | ||
SUBDIRS += syncd saiplayer saidump saidiscovery saisdkdump saiasiccmp tests unittest | ||
SUBDIRS += syncd saiplayer saidump rdb saidiscovery saisdkdump saiasiccmp tests unittest | ||
endif | ||
|
||
ACLOCAL_AMFLAGS = -I m4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
usr/bin/saidump | ||
usr/bin/rdb-cli | ||
usr/bin/saiplayer | ||
usr/bin/saisdkdump | ||
usr/bin/saidiscovery | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
bin_PROGRAMS = rdb-cli$(EXEEXT) | ||
rdb_cli_SOURCES = | ||
|
||
clone-repo: | ||
echo "Cloning repository..."; \ | ||
rm -rf librdb; \ | ||
git clone https://github.com/redis/librdb.git; \ | ||
cd librdb; \ | ||
git checkout b401df1e7025501c24f0c852aa32f6900fd888f7; \ | ||
cd .. | ||
|
||
update-submodules-and-build: clone-repo | ||
cd librdb && git submodule update --init --recursive && $(MAKE) -j4 | ||
cp ./librdb/bin/rdb-cli ./ | ||
rm -rf ./librdb | ||
|
||
rdb-cli$(EXEEXT): update-submodules-and-build | ||
|
||
clean-local: | ||
rm -rf ./librdb | ||
|
||
install: | ||
cp rdb-cli $(DESTDIR)/usr/bin/ |