Skip to content

Commit

Permalink
Fix bare-metal build
Browse files Browse the repository at this point in the history
 - Improve DPDK build process, by using the --prefix flag
 - Do not install libgflags, since we use a submodule for that
  • Loading branch information
anujkaliaiitd committed Jul 8, 2024
1 parent d75561b commit 098e8d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Pulling from GHCR requires an auth token:
```bash
# Install packages required to try out Machnet
sudo apt-get update
sudo apt-get install -y docker.io net-tools driverctl libgflags-dev uuid-dev
sudo apt-get install -y docker.io net-tools driverctl uuid-dev

# Reboot like below to allow non-root users to run Docker
sudo usermod -aG docker $USER && sudo reboot
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
echo 'APT::Install-Suggests "0";' | sudo tee -a /etc/apt/apt.conf.d/00-docker
echo 'APT::Install-Recommends "0";' | sudo tee -a /etc/apt/apt.conf.d/00-docker
sudo apt-get update
sudo apt-get install --no-install-recommends -y git build-essential cmake meson pkg-config libudev-dev libnl-3-dev libnl-route-3-dev python3-dev python3-docutils python3-pyelftools libnuma-dev ca-certificates autoconf libgflags-dev libgflags2.2 libhugetlbfs-dev pciutils libunwind-dev uuid-dev nlohmann-json3-dev
sudo apt-get install --no-install-recommends -y git build-essential cmake meson pkg-config libudev-dev libnl-3-dev libnl-route-3-dev python3-dev python3-docutils python3-pyelftools libnuma-dev ca-certificates autoconf libhugetlbfs-dev pciutils libunwind-dev uuid-dev nlohmann-json3-dev
sudo apt-get --purge -y remove rdma-core librdmacm1 ibverbs-providers libibverbs-dev libibverbs1
sudo rm -rf /var/lib/apt/lists/*
displayName: 'Set timezone and Install dependencies'
Expand Down
11 changes: 7 additions & 4 deletions docs/INTERNAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Dockerfile.

```bash
# On latest Ubuntu:
sudo apt -y install cmake libgflags-dev pkg-config nlohmann-json3-dev ninja-build gcc-10 g++-10 doxygen graphviz python3-pip meson libhugetlbfs-dev libnl-3-dev libnl-route-3-dev
sudo apt -y install cmake pkg-config nlohmann-json3-dev ninja-build gcc-10 g++-10 doxygen graphviz python3-pip meson libhugetlbfs-dev libnl-3-dev libnl-route-3-dev
pip3 install pyelftools
```

Expand Down Expand Up @@ -41,11 +41,14 @@ ldconfig

### Build DPDK

We use DPDK v21.11 LTS, like so:
Download and extract DPDK 23.11, then:

```bash
export RTE_SDK=/path/to/dpdk-21.11/
cd ${RTE_SDK} && meson build && cd build && ninja && DESTDIR=${PWD}/install ninja install
cd dpdk-23.11
meson build --prefix=${PWD}/build/install/usr/local
ninja -C build
ninja -C build install
export PKG_CONFIG_PATH="${PWD}/build/install/usr/local/lib/pkgconfig"
```

### Build Machnet
Expand Down

0 comments on commit 098e8d8

Please sign in to comment.