Skip to content

Commit

Permalink
Install rdb-cli from librdb into syncd0 container
Browse files Browse the repository at this point in the history
  • Loading branch information
JunhongMao committed Aug 2, 2024
1 parent 963b958 commit 37e5b26
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
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
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ AC_OUTPUT(Makefile
syncd/tests/Makefile
saiplayer/Makefile
saidump/Makefile
rdb/Makefile
saisdkdump/Makefile
saidiscovery/Makefile
saiasiccmp/Makefile
Expand Down
1 change: 1 addition & 0 deletions debian/syncd.install
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
Expand Down
22 changes: 22 additions & 0 deletions rdb/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 ./

rdb-cli$(EXEEXT): update-submodules-and-build

clean-local:
rm -rf ./librdb

install:
cp rdb-cli $(DESTDIR)/usr/bin/

0 comments on commit 37e5b26

Please sign in to comment.