Skip to content

Commit

Permalink
Fix: build_dpdk.sh - git am command path (#1007)
Browse files Browse the repository at this point in the history
The `git am` command does use a path that drills down too little (does
not hit the `patches` folder) and fails the script entirely.

Fix by using a path relative to the position of the build_dpdk script.
  • Loading branch information
MateuszGrabuszynski authored Dec 13, 2024
1 parent a02bd00 commit 92248ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/build_dpdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

set -e

script_name=$(basename "$0")
script_path=$(readlink -qe "$0")
script_folder=${script_path/$script_name/}
cd "${script_folder}"

if [ -n "$1" ]; then
dpdk_ver=$1
else
Expand All @@ -24,7 +29,7 @@ git checkout v"$dpdk_ver"
git switch -c v"$dpdk_ver"

# apply the patches
git am ../patches/dpdk/"$dpdk_ver"/*.patch
git am ../../patches/dpdk/"$dpdk_ver"/*.patch

# build and install dpdk now
meson build
Expand Down

0 comments on commit 92248ec

Please sign in to comment.