Skip to content

Commit

Permalink
Update setup guides to include DEPEND_INSTALL env var
Browse files Browse the repository at this point in the history
Signed-off-by: bharticemk <[email protected]>
  • Loading branch information
bharticemk committed Aug 29, 2023
1 parent 5100087 commit f1ef8f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions docs/guides/setup/dpdk-setup-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ pip3 install -r requirements.txt
git clone --recursive https://github.com/ipdk-io/networking-recipe.git ipdk.recipe
cd ipdk.recipe
export IPDK_RECIPE=`pwd`
export DEPEND_INSTALL=<absolute path for installing dependencies>
export SDE_INSTALL=<absolute path for p4 sde install built in previous step>
cd $IPDK_RECIPE/setup
cmake -B build -DCMAKE_INSTALL_PREFIX=<dependency install path> [-DUSE_SUDO=ON]
cmake -B build -DCMAKE_INSTALL_PREFIX=$DEPEND_INSTALL [-DUSE_SUDO=ON]
cmake --build build [-j<njobs>]
```
Expand All @@ -39,11 +41,6 @@ config.
### Build Networking Recipe
#### Set environment variables

- export DEPEND_INSTALL=`absolute path for installing dependencies`
- export SDE_INSTALL=`absolute path for p4 sde install built in previous step`

```bash
cd $IPDK_RECIPE
mkdir install
Expand Down
9 changes: 3 additions & 6 deletions docs/guides/setup/es2k-setup-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ development system. A common install location is '/opt/p4/p4sde`.
git clone --recursive https://github.com/ipdk-io/networking-recipe.git ipdk.recipe
cd ipdk.recipe
export IPDK_RECIPE=`pwd`
export DEPEND_INSTALL=<absolute path for installing dependencies>
export SDE_INSTALL=<absolute path for p4 sde install built in previous step>
cd $IPDK_RECIPE/setup
cmake -B build -DCMAKE_INSTALL_PREFIX=<dependency install path> [-DUSE_SUDO=ON]
cmake -B build -DCMAKE_INSTALL_PREFIX=$DEPEND_INSTALL [-DUSE_SUDO=ON]
cmake --build build [-j<njobs>]
```
Expand All @@ -36,11 +38,6 @@ config.
### Build P4 Control Plane
#### Set environment variables

- export DEPEND_INSTALL=`absolute path for installing dependencies`
- export SDE_INSTALL=`absolute path for p4 sde install built in previous step`

```bash
cd $IPDK_RECIPE
mkdir install
Expand Down

0 comments on commit f1ef8f5

Please sign in to comment.