Skip to content

Commit

Permalink
get_deps: Adding script to get dependencies for build
Browse files Browse the repository at this point in the history
Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
  • Loading branch information
Shuotian Cheng committed Mar 16, 2016
1 parent f93168f commit 8437ca9
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 18 deletions.
6 changes: 1 addition & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
SUBDIRS = common neighsyncd intfsyncd portsyncd orchagent
SUBDIRS = common fpmsyncd neighsyncd intfsyncd portsyncd orchagent

if TESTS
SUBDIRS += tests
endif

if FPM
SUBDIRS += fpmsyncd
endif
12 changes: 0 additions & 12 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ AC_SUBST(GTEST_PATH)
AM_CONDITIONAL(TESTS, test "x$with_gtest" != xnone)


AC_ARG_WITH(fpm,
[ --with-fpm=<dir> Compiles using qauggas fpm library],
AC_MSG_NOTICE(Using fpmi path from:$with_fpm), with_fpm="none")

FPM_PATH=
if test "x$with_fpm" != xnone; then
FPM_PATH=$with_fpm
fi
AC_SUBST(FPM_PATH)
AM_CONDITIONAL(FPM, test "x$with_fpm" != xnone)


CFLAGS_COMMON="-std=c++11 -Wall -fPIC -Wno-write-strings -I/usr/include/libnl3"
AC_SUBST(CFLAGS_COMMON)

Expand Down
2 changes: 1 addition & 1 deletion fpmsyncd/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INCLUDES = -I $(top_srcdir) -I $(FPM_PATH)
INCLUDES = -I $(top_srcdir)

bin_PROGRAMS = fpmsyncd

Expand Down
28 changes: 28 additions & 0 deletions get_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
#
# This script is to build the dependencies of SONiC-SWSS
#
# USAGE:
# ./get_deps.sh

mkdir deps
pushd deps

# Install REDIS HIREDIS
sudo apt-get install -y libjemalloc-dev
wget https://sonic-jenkins.westus.cloudapp.azure.com/job/redis-build/lastSuccessfulBuild/artifact/target/redis-tools_3.0.7-2_amd64.deb
wget https://sonic-jenkins.westus.cloudapp.azure.com/job/redis-build/lastSuccessfulBuild/artifact/target/redis-server_3.0.7-2_amd64.deb
wget https://sonic-jenkins.westus.cloudapp.azure.com/job/redis-build/lastSuccessfulBuild/artifact/target/redis-sentinel_3.0.7-2_amd64.deb

wget https://sonic-jenkins.westus.cloudapp.azure.com/job/hiredis-build/lastSuccessfulBuild/artifact/target/libhiredis0.13_0.13.3-2_amd64.deb
wget https://sonic-jenkins.westus.cloudapp.azure.com/job/hiredis-build/lastSuccessfulBuild/artifact/target/libhiredis-dev_0.13.3-2_amd64.deb
wget https://sonic-jenkins.westus.cloudapp.azure.com/job/hiredis-build/lastSuccessfulBuild/artifact/target/libhiredis-dbg_0.13.3-2_amd64.deb

sudo dpkg -i *.deb
popd

# TODO: Install SAI Implementation

# Get Quagga fpm.h
mkdir fpmsyncd/fpm
wget http://git.savannah.gnu.org/cgit/quagga.git/plain/fpm/fpm.h -O fpmsyncd/fpm/fpm.h

0 comments on commit 8437ca9

Please sign in to comment.