-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
T7026: Use vpp patches during build as they not applied
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,27 @@ name = "vyos-vpp-patches" | |
commit_id = "current" | ||
scm_url = "https://github.com/vyos/vyos-vpp-patches" | ||
build_cmd = "/bin/true" | ||
apply_patches = false | ||
|
||
[[packages]] | ||
name = "vpp" | ||
commit_id = "stable/2406" | ||
scm_url = "https://github.com/FDio/vpp" | ||
# Skip apply patches by build.py as we use them in build_cmd | ||
apply_patches = false | ||
|
||
pre_build_hook = """ | ||
mkdir -p ../patches/vpp/ | ||
rsync -av ../vyos-vpp-patches/patches/vpp/ ../patches/vpp/ | ||
""" | ||
|
||
build_cmd = """ | ||
# Patches for vpp should applied here | ||
for patch in ../patches/vpp/*.patch; do | ||
echo "I: build_cmd applying patch $patch..." | ||
git -c [email protected] -c user.name=vyos am "$patch" || { echo "Failed to apply patch $patch"; exit 1; } | ||
done | ||
make UNATTENDED=yes install-dep | ||
make pkg-deb | ||
cp build-root/*.deb ../ | ||
|